Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
thormang3::ActionEditor Class Reference

#include <action_editor.h>

Public Types

enum  MirrorCommandType { LeftToRight = 1, RightToLeft = 2, SwitchEach = 3 }
 
enum  MirrorTargetType { UpperBody = 1, LowerBody = 2, AllBody = 3 }
 

Public Member Functions

int _getch ()
 
 ActionEditor ()
 
bool askSave ()
 
void beginCommandMode ()
 
void clearCache ()
 
void clearCmd ()
 
void copyCmd (int index)
 
void deleteStepCmd (int index)
 
void drawEnding ()
 
void drawIntro ()
 
void drawName ()
 
void drawPage ()
 
void drawStep (int index)
 
void drawStepLine (bool erase)
 
void endCommandMode ()
 
int getValue ()
 
void goCmd (int index)
 
void goToCursor (int col, int row)
 
void helpCmd ()
 
bool initializeActionEditor (std::string robot_file_path, std::string init_file_path, std::string offset_file_path)
 
void insertStepCmd (int index)
 
int kbhit ()
 
void listCmd ()
 
void mirrorStepCmd (int index, int mirror_type, int target_type)
 
void moveDownCursor ()
 
void moveLeftCursor ()
 
void moveRightCursor ()
 
void moveStepCmd (int src, int dst)
 
void moveUpCursor ()
 
void nameCmd ()
 
void newCmd ()
 
void nextCmd ()
 
void pageCmd (int index)
 
void playCmd ()
 
void playCmd (int mp3_index)
 
void playCmd (const char *file_path)
 
void prevCmd ()
 
void printCmd (const char *message)
 
void readStep ()
 
void saveCmd ()
 
void setValue (int value)
 
void setValueFromCache ()
 
void setValueUpDown (int offset)
 
void speedCmd ()
 
void storeValueToCache ()
 
void timeCmd ()
 
void toggleTorque ()
 
void turnOnOffCmd (bool on, int num_param, int *list)
 
void writeStepCmd (int index)
 
 ~ActionEditor ()
 

Public Attributes

int screen_col_
 
int screen_row_
 

Private Member Functions

int convert4095ToMirror (int id, int w4095)
 
int convert4095ToPositionValue (int id, int w4095)
 
int convertPositionValueTo4095 (int id, int PositionValue)
 
bool loadMirrorJoint ()
 
bool loadMp3Path (int mp3_index, std::string &path)
 
void resetSTDin ()
 
void setSTDin ()
 

Private Attributes

int accel_row_
 
int addr_col_
 
int addr_row_
 
bool begin_command_mode_
 
int cache_value_
 
int ccwslope_col_
 
int cmd_col_
 
int cmd_row_
 
robotis_framework::RobotisControllerctrl_
 
int curr_col_
 
int curr_row_
 
int cwslope_col_
 
std::string default_editor_script_path_
 
bool edited_
 
ros::Publisher enable_ctrl_module_pub_
 
int exit_row_
 
int first_joint_row_
 
std::map< int, std::string > joint_id_to_name_
 
std::map< int, int > joint_id_to_row_index_
 
std::map< std::string, int > joint_name_to_id_
 
std::map< int, int > joint_row_index_to_id_
 
int last_joint_row_
 
std::map< int, int > lower_body_mirror_joints_lr_
 
std::map< int, int > lower_body_mirror_joints_rl_
 
int max_joint_name_length_
 
std::string mirror_joint_file_path_
 
int name_col_
 
int name_row_
 
struct termios oldterm new_term
 
int next_row_
 
int num_of_dxls_
 
int old_col_
 
int old_row_
 
action_file_define::Page page_
 
int page_idx_
 
int page_num_row_
 
int pagenum_col_
 
int pageparam_col_
 
int pause_row_
 
int play_count_row_
 
ros::Publisher play_sound_pub_
 
int play_time_row_
 
std::map< std::string, dynamixel::GroupSyncWrite * > port_to_sync_write_go_cmd_
 
robotis_framework::Robotrobot_
 
action_file_define::Step step_
 
int step_num_row_
 
int stp0_col_
 
int stp1_col_
 
int stp2_col_
 
int stp3_col_
 
int stp4_col_
 
int stp5_col_
 
int stp6_col_
 
int stp7_col_
 
int time_row_
 
std::map< int, int > upper_body_mirror_joints_lr_
 
std::map< int, int > upper_body_mirror_joints_rl_
 

Detailed Description

Definition at line 48 of file action_editor.h.

Member Enumeration Documentation

Enumerator
LeftToRight 
RightToLeft 
SwitchEach 

Definition at line 51 of file action_editor.h.

Enumerator
UpperBody 
LowerBody 
AllBody 

Definition at line 57 of file action_editor.h.

Constructor & Destructor Documentation

ActionEditor::ActionEditor ( )

Definition at line 28 of file action_editor.cpp.

ActionEditor::~ActionEditor ( )

Definition at line 85 of file action_editor.cpp.

Member Function Documentation

int ActionEditor::_getch ( )

Definition at line 90 of file action_editor.cpp.

bool ActionEditor::askSave ( )

Definition at line 791 of file action_editor.cpp.

void ActionEditor::beginCommandMode ( )

Definition at line 1147 of file action_editor.cpp.

void ActionEditor::clearCache ( )

Definition at line 1141 of file action_editor.cpp.

void ActionEditor::clearCmd ( )

Definition at line 773 of file action_editor.cpp.

int ActionEditor::convert4095ToMirror ( int  id,
int  w4095 
)
private

Definition at line 358 of file action_editor.cpp.

int ActionEditor::convert4095ToPositionValue ( int  id,
int  w4095 
)
private

Definition at line 346 of file action_editor.cpp.

int ActionEditor::convertPositionValueTo4095 ( int  id,
int  PositionValue 
)
private

Definition at line 352 of file action_editor.cpp.

void ActionEditor::copyCmd ( int  index)

Definition at line 1661 of file action_editor.cpp.

void ActionEditor::deleteStepCmd ( int  index)

Definition at line 1538 of file action_editor.cpp.

void ActionEditor::drawEnding ( )

Definition at line 457 of file action_editor.cpp.

void ActionEditor::drawIntro ( )

Definition at line 429 of file action_editor.cpp.

void ActionEditor::drawName ( )

Definition at line 642 of file action_editor.cpp.

void ActionEditor::drawPage ( )

Definition at line 465 of file action_editor.cpp.

void ActionEditor::drawStep ( int  index)

Definition at line 565 of file action_editor.cpp.

void ActionEditor::drawStepLine ( bool  erase)

Definition at line 657 of file action_editor.cpp.

void ActionEditor::endCommandMode ( )

Definition at line 1156 of file action_editor.cpp.

int ActionEditor::getValue ( )

Definition at line 1006 of file action_editor.cpp.

void ActionEditor::goCmd ( int  index)

Definition at line 1682 of file action_editor.cpp.

void ActionEditor::goToCursor ( int  col,
int  row 
)

Definition at line 145 of file action_editor.cpp.

void ActionEditor::helpCmd ( )

Definition at line 1162 of file action_editor.cpp.

bool ActionEditor::initializeActionEditor ( std::string  robot_file_path,
std::string  init_file_path,
std::string  offset_file_path 
)

below code must be changed

Definition at line 259 of file action_editor.cpp.

void ActionEditor::insertStepCmd ( int  index)

Definition at line 1577 of file action_editor.cpp.

int ActionEditor::kbhit ( void  )

Definition at line 103 of file action_editor.cpp.

void ActionEditor::listCmd ( )

Definition at line 1341 of file action_editor.cpp.

bool ActionEditor::loadMirrorJoint ( )
private

Definition at line 391 of file action_editor.cpp.

bool ActionEditor::loadMp3Path ( int  mp3_index,
std::string &  path 
)
private

Definition at line 363 of file action_editor.cpp.

void ActionEditor::mirrorStepCmd ( int  index,
int  mirror_type,
int  target_type 
)

Definition at line 1440 of file action_editor.cpp.

void ActionEditor::moveDownCursor ( )

Definition at line 178 of file action_editor.cpp.

void ActionEditor::moveLeftCursor ( )

Definition at line 204 of file action_editor.cpp.

void ActionEditor::moveRightCursor ( )

Definition at line 230 of file action_editor.cpp.

void ActionEditor::moveStepCmd ( int  src,
int  dst 
)

Definition at line 1621 of file action_editor.cpp.

void ActionEditor::moveUpCursor ( )

Definition at line 157 of file action_editor.cpp.

void ActionEditor::nameCmd ( )

Definition at line 1830 of file action_editor.cpp.

void ActionEditor::newCmd ( )

Definition at line 1675 of file action_editor.cpp.

void ActionEditor::nextCmd ( )

Definition at line 1204 of file action_editor.cpp.

void ActionEditor::pageCmd ( int  index)

Definition at line 1214 of file action_editor.cpp.

void ActionEditor::playCmd ( )

Definition at line 1248 of file action_editor.cpp.

void ActionEditor::playCmd ( int  mp3_index)

Definition at line 1253 of file action_editor.cpp.

void thormang3::ActionEditor::playCmd ( const char *  file_path)
void ActionEditor::prevCmd ( )

Definition at line 1209 of file action_editor.cpp.

void ActionEditor::printCmd ( const char *  message)

Definition at line 779 of file action_editor.cpp.

void ActionEditor::readStep ( )

Definition at line 714 of file action_editor.cpp.

void ActionEditor::resetSTDin ( )
private

Definition at line 140 of file action_editor.cpp.

void ActionEditor::saveCmd ( )

Definition at line 1821 of file action_editor.cpp.

void ActionEditor::setSTDin ( )
private

Definition at line 130 of file action_editor.cpp.

void ActionEditor::setValue ( int  value)

Definition at line 814 of file action_editor.cpp.

void ActionEditor::setValueFromCache ( )

Definition at line 1123 of file action_editor.cpp.

void ActionEditor::setValueUpDown ( int  offset)

Definition at line 808 of file action_editor.cpp.

void ActionEditor::speedCmd ( )

Definition at line 1241 of file action_editor.cpp.

void ActionEditor::storeValueToCache ( )

Definition at line 1118 of file action_editor.cpp.

void ActionEditor::timeCmd ( )

Definition at line 1234 of file action_editor.cpp.

void ActionEditor::toggleTorque ( )

Definition at line 1080 of file action_editor.cpp.

void ActionEditor::turnOnOffCmd ( bool  on,
int  num_param,
int *  list 
)

Definition at line 1405 of file action_editor.cpp.

void ActionEditor::writeStepCmd ( int  index)

Definition at line 1516 of file action_editor.cpp.

Member Data Documentation

int thormang3::ActionEditor::accel_row_
private

Definition at line 206 of file action_editor.h.

int thormang3::ActionEditor::addr_col_
private

Definition at line 188 of file action_editor.h.

int thormang3::ActionEditor::addr_row_
private

Definition at line 202 of file action_editor.h.

bool thormang3::ActionEditor::begin_command_mode_
private

Definition at line 165 of file action_editor.h.

int thormang3::ActionEditor::cache_value_
private

Definition at line 209 of file action_editor.h.

int thormang3::ActionEditor::ccwslope_col_
private

Definition at line 186 of file action_editor.h.

int thormang3::ActionEditor::cmd_col_
private

Definition at line 176 of file action_editor.h.

int thormang3::ActionEditor::cmd_row_
private

Definition at line 198 of file action_editor.h.

robotis_framework::RobotisController* thormang3::ActionEditor::ctrl_
private

Definition at line 147 of file action_editor.h.

int thormang3::ActionEditor::curr_col_
private

Definition at line 169 of file action_editor.h.

int thormang3::ActionEditor::curr_row_
private

Definition at line 170 of file action_editor.h.

int thormang3::ActionEditor::cwslope_col_
private

Definition at line 185 of file action_editor.h.

std::string thormang3::ActionEditor::default_editor_script_path_
private

Definition at line 160 of file action_editor.h.

bool thormang3::ActionEditor::edited_
private

Definition at line 166 of file action_editor.h.

ros::Publisher thormang3::ActionEditor::enable_ctrl_module_pub_
private

Definition at line 141 of file action_editor.h.

int thormang3::ActionEditor::exit_row_
private

Definition at line 208 of file action_editor.h.

int thormang3::ActionEditor::first_joint_row_
private

Definition at line 193 of file action_editor.h.

std::map<int, std::string> thormang3::ActionEditor::joint_id_to_name_
private

Definition at line 150 of file action_editor.h.

std::map<int, int> thormang3::ActionEditor::joint_id_to_row_index_
private

Definition at line 151 of file action_editor.h.

std::map<std::string, int> thormang3::ActionEditor::joint_name_to_id_
private

Definition at line 153 of file action_editor.h.

std::map<int, int> thormang3::ActionEditor::joint_row_index_to_id_
private

Definition at line 152 of file action_editor.h.

int thormang3::ActionEditor::last_joint_row_
private

Definition at line 194 of file action_editor.h.

std::map<int, int> thormang3::ActionEditor::lower_body_mirror_joints_lr_
private

Definition at line 158 of file action_editor.h.

std::map<int, int> thormang3::ActionEditor::lower_body_mirror_joints_rl_
private

Definition at line 157 of file action_editor.h.

int thormang3::ActionEditor::max_joint_name_length_
private

Definition at line 192 of file action_editor.h.

std::string thormang3::ActionEditor::mirror_joint_file_path_
private

Definition at line 161 of file action_editor.h.

int thormang3::ActionEditor::name_col_
private

Definition at line 187 of file action_editor.h.

int thormang3::ActionEditor::name_row_
private

Definition at line 200 of file action_editor.h.

struct termios oldterm thormang3::ActionEditor::new_term
private

Definition at line 140 of file action_editor.h.

int thormang3::ActionEditor::next_row_
private

Definition at line 207 of file action_editor.h.

int thormang3::ActionEditor::num_of_dxls_
private

Definition at line 174 of file action_editor.h.

int thormang3::ActionEditor::old_col_
private

Definition at line 171 of file action_editor.h.

int thormang3::ActionEditor::old_row_
private

Definition at line 172 of file action_editor.h.

action_file_define::Page thormang3::ActionEditor::page_
private

Definition at line 144 of file action_editor.h.

int thormang3::ActionEditor::page_idx_
private

Definition at line 167 of file action_editor.h.

int thormang3::ActionEditor::page_num_row_
private

Definition at line 201 of file action_editor.h.

int thormang3::ActionEditor::pagenum_col_
private

Definition at line 189 of file action_editor.h.

int thormang3::ActionEditor::pageparam_col_
private

Definition at line 190 of file action_editor.h.

int thormang3::ActionEditor::pause_row_
private

Definition at line 196 of file action_editor.h.

int thormang3::ActionEditor::play_count_row_
private

Definition at line 203 of file action_editor.h.

ros::Publisher thormang3::ActionEditor::play_sound_pub_
private

Definition at line 142 of file action_editor.h.

int thormang3::ActionEditor::play_time_row_
private

Definition at line 205 of file action_editor.h.

std::map<std::string, dynamixel::GroupSyncWrite *> thormang3::ActionEditor::port_to_sync_write_go_cmd_
private

Definition at line 163 of file action_editor.h.

robotis_framework::Robot* thormang3::ActionEditor::robot_
private

Definition at line 148 of file action_editor.h.

int thormang3::ActionEditor::screen_col_

Definition at line 126 of file action_editor.h.

int thormang3::ActionEditor::screen_row_

Definition at line 127 of file action_editor.h.

action_file_define::Step thormang3::ActionEditor::step_
private

Definition at line 145 of file action_editor.h.

int thormang3::ActionEditor::step_num_row_
private

Definition at line 204 of file action_editor.h.

int thormang3::ActionEditor::stp0_col_
private

Definition at line 178 of file action_editor.h.

int thormang3::ActionEditor::stp1_col_
private

Definition at line 179 of file action_editor.h.

int thormang3::ActionEditor::stp2_col_
private

Definition at line 180 of file action_editor.h.

int thormang3::ActionEditor::stp3_col_
private

Definition at line 181 of file action_editor.h.

int thormang3::ActionEditor::stp4_col_
private

Definition at line 182 of file action_editor.h.

int thormang3::ActionEditor::stp5_col_
private

Definition at line 183 of file action_editor.h.

int thormang3::ActionEditor::stp6_col_
private

Definition at line 184 of file action_editor.h.

int thormang3::ActionEditor::stp7_col_
private

Definition at line 177 of file action_editor.h.

int thormang3::ActionEditor::time_row_
private

Definition at line 197 of file action_editor.h.

std::map<int, int> thormang3::ActionEditor::upper_body_mirror_joints_lr_
private

Definition at line 156 of file action_editor.h.

std::map<int, int> thormang3::ActionEditor::upper_body_mirror_joints_rl_
private

Definition at line 155 of file action_editor.h.


The documentation for this class was generated from the following files:


thormang3_action_editor
Author(s): Kayman , SCH , Jay Song
autogenerated on Mon Jun 10 2019 15:37:46