Implementation of teleoperation node. More...
Implementation of teleoperation node.
Sends direct commands to different components
Definition at line 85 of file cob_teleop.cpp.
Constructor for TeleopCOB class.
Definition at line 336 of file cob_teleop.cpp.
Destructor for TeleopCOB class.
Definition at line 360 of file cob_teleop.cpp.
bool TeleopCOB::assign_base_module | ( | XmlRpc::XmlRpcValue | mod_struct | ) | [private] |
Tries to read base module configurations from XmlRpcValue object. A base module is supposed to contain vectors 3 element vectors (x,y,th) with max acceleration and velocity. Example: struct { max_velocity: [0.3, 0.2, 0.3], max_acceleration: [0.5, 0.5, 0.7] }
mod_struct | configuration object struct |
Definition at line 277 of file cob_teleop.cpp.
bool TeleopCOB::assign_joint_module | ( | std::string | mod_name, |
XmlRpc::XmlRpcValue | mod_struct | ||
) | [private] |
Tries to read joint module configurations from XmlRpcValue object. If the module is a joint module, it contains a joint name array. A typical joint module has the following configuration structure: struct { joint_names: ['head_pan_joint','head_tilt_joint'], joint_step: 0.075 }
mod_struct | configuration object struct |
Definition at line 207 of file cob_teleop.cpp.
void TeleopCOB::check_joy_config | ( | ) |
Definition at line 162 of file cob_teleop.cpp.
void TeleopCOB::init | ( | ) |
Initializes node to get parameters, subscribe to topics.
Definition at line 367 of file cob_teleop.cpp.
void TeleopCOB::joint_states_cb | ( | const sensor_msgs::JointState::ConstPtr & | joint_states_msg | ) |
Executes the callback from the joint_states topic. (published by joint state driver)
Only used to get the initaial joint positions.
msg | JointState |
Definition at line 454 of file cob_teleop.cpp.
void TeleopCOB::joy_cb | ( | const sensor_msgs::Joy::ConstPtr & | joy_msg | ) |
Executes the callback from the joystick topic.
Gets the configuration
joy_msg | Joy |
Definition at line 486 of file cob_teleop.cpp.
void TeleopCOB::setInitValues | ( | ) |
Sets initial values for target velocities.
Definition at line 424 of file cob_teleop.cpp.
void TeleopCOB::update | ( | void | ) |
Main routine for updating all components.
Definition at line 856 of file cob_teleop.cpp.
void TeleopCOB::update_base | ( | ) |
Routine for updating the base commands.
Definition at line 949 of file cob_teleop.cpp.
void TeleopCOB::update_joint_modules | ( | ) |
Definition at line 908 of file cob_teleop.cpp.
Definition at line 117 of file cob_teleop.cpp.
Definition at line 118 of file cob_teleop.cpp.
Definition at line 119 of file cob_teleop.cpp.
Definition at line 120 of file cob_teleop.cpp.
Definition at line 116 of file cob_teleop.cpp.
Definition at line 116 of file cob_teleop.cpp.
Definition at line 116 of file cob_teleop.cpp.
Definition at line 126 of file cob_teleop.cpp.
Definition at line 125 of file cob_teleop.cpp.
Definition at line 125 of file cob_teleop.cpp.
Definition at line 134 of file cob_teleop.cpp.
Definition at line 109 of file cob_teleop.cpp.
std::vector<double> TeleopCOB::joint_init_values_ |
Definition at line 143 of file cob_teleop.cpp.
std::map<std::string,joint_module> TeleopCOB::joint_modules_ |
Definition at line 98 of file cob_teleop.cpp.
std::vector<std::string> TeleopCOB::joint_names_ |
Definition at line 142 of file cob_teleop.cpp.
Definition at line 132 of file cob_teleop.cpp.
Definition at line 126 of file cob_teleop.cpp.
Definition at line 112 of file cob_teleop.cpp.
Definition at line 111 of file cob_teleop.cpp.
Definition at line 131 of file cob_teleop.cpp.
Definition at line 122 of file cob_teleop.cpp.
Definition at line 114 of file cob_teleop.cpp.
Definition at line 130 of file cob_teleop.cpp.
Definition at line 125 of file cob_teleop.cpp.
Definition at line 125 of file cob_teleop.cpp.
double TeleopCOB::run_factor_ |
Definition at line 127 of file cob_teleop.cpp.
double TeleopCOB::run_factor_param_ |
Definition at line 127 of file cob_teleop.cpp.
Definition at line 125 of file cob_teleop.cpp.
Definition at line 126 of file cob_teleop.cpp.
double TeleopCOB::time_for_init_ |
Definition at line 135 of file cob_teleop.cpp.
Definition at line 115 of file cob_teleop.cpp.
Definition at line 122 of file cob_teleop.cpp.
Definition at line 114 of file cob_teleop.cpp.