Classes | Public Member Functions | Public Attributes | Private Member Functions
TeleopCOB Class Reference

Implementation of teleoperation node. More...

List of all members.

Classes

struct  base_module_struct
struct  combined_joints_struct
struct  joint_module

Public Member Functions

void check_joy_config ()
void getConfigurationFromParameters ()
void init ()
 Initializes node to get parameters, subscribe to topics.
void joint_states_cb (const sensor_msgs::JointState::ConstPtr &joint_states_msg)
 Executes the callback from the joint_states topic. (published by joint state driver)
void joy_cb (const sensor_msgs::Joy::ConstPtr &joy_msg)
 Executes the callback from the joystick topic.
void setInitValues ()
 Sets initial values for target velocities.
 TeleopCOB ()
 Constructor for TeleopCOB class.
void update ()
 Main routine for updating all components.
void update_base ()
 Routine for updating the base commands.
void update_joint_modules ()
 ~TeleopCOB ()
 Destructor for TeleopCOB class.

Public Attributes

int arm_joint12_button_
int arm_joint34_button_
int arm_joint56_button_
int arm_joint7_button_
int axis_vth_
int axis_vx_
int axis_vy_
struct
TeleopCOB::base_module_struct 
base_module_
bool base_safety_
int base_safety_button_
struct
TeleopCOB::combined_joints_struct 
combined_joints_
int deadman_button_
bool got_init_values_
bool has_base_module_
std::vector< double > joint_init_values_
std::map< std::string,
joint_module
joint_modules_
std::vector< std::string > joint_names_
ros::Subscriber joint_states_sub_
bool joy_active_
int joy_num_axes_
int joy_num_buttons_
ros::Subscriber joy_sub_
int left_right_
int lower_neck_button_
ros::NodeHandle n_
int recover_base_button_
int run_button_
double run_factor_
double run_factor_param_
int stop_base_button_
bool stopped_
double time_for_init_
int tray_button_
int up_down_
int upper_neck_button_

Private Member Functions

bool assign_base_module (XmlRpc::XmlRpcValue)
bool assign_joint_module (std::string, XmlRpc::XmlRpcValue)

Detailed Description

Implementation of teleoperation node.

Sends direct commands to different components

Definition at line 85 of file cob_teleop.cpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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] }

Parameters:
mod_structconfiguration object struct
Returns:
true no check is currently performed TODO check

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 }

Parameters:
mod_structconfiguration object struct
Returns:
true if the configuration object hols a joint module config, else false

Definition at line 207 of file cob_teleop.cpp.

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.

Parameters:
msgJointState

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

Parameters:
joy_msgJoy

Definition at line 486 of file cob_teleop.cpp.

Sets initial values for target velocities.

Definition at line 424 of file cob_teleop.cpp.

Main routine for updating all components.

Definition at line 856 of file cob_teleop.cpp.

Routine for updating the base commands.

Definition at line 949 of file cob_teleop.cpp.

Definition at line 908 of file cob_teleop.cpp.


Member Data Documentation

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.

Definition at line 127 of file cob_teleop.cpp.

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.

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.


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


cob_teleop
Author(s): Florian Weisshardt
autogenerated on Thu Aug 27 2015 12:42:51