Public Member Functions | |
cob_trajectory_controller () | |
void | executeTrajectory (const pr2_controllers_msgs::JointTrajectoryGoalConstPtr &goal) |
void | operationmode_callback (const std_msgs::StringPtr &message) |
void | run () |
bool | srvCallback_Stop (cob_srvs::Trigger::Request &req, cob_srvs::Trigger::Response &res) |
void | state_callback (const pr2_controllers_msgs::JointTrajectoryControllerStatePtr &message) |
Private Attributes | |
std::string | action_name_ |
actionlib::SimpleActionServer < pr2_controllers_msgs::JointTrajectoryAction > | as_ |
ros::Subscriber | controller_state_ |
std::string | current_operation_mode_ |
bool | executing_ |
std::vector< double > | joint_distance_ |
ros::Publisher | joint_pos_pub_ |
ros::Publisher | joint_vel_pub_ |
ros::NodeHandle | n_ |
ros::Subscriber | operation_mode_ |
std::vector< double > | q_current |
ros::ServiceClient | srvClient_SetOperationMode |
ros::ServiceServer | srvServer_Stop_ |
std::vector< double > | startposition_ |
trajectory_msgs::JointTrajectory | traj_ |
genericArmCtrl * | traj_generator_ |
int | watchdog_counter |
Definition at line 77 of file cob_trajectory_controller.cpp.
cob_trajectory_controller::cob_trajectory_controller | ( | ) | [inline] |
Definition at line 97 of file cob_trajectory_controller.cpp.
void cob_trajectory_controller::executeTrajectory | ( | const pr2_controllers_msgs::JointTrajectoryGoalConstPtr & | goal | ) | [inline] |
Definition at line 144 of file cob_trajectory_controller.cpp.
void cob_trajectory_controller::operationmode_callback | ( | const std_msgs::StringPtr & | message | ) | [inline] |
Definition at line 132 of file cob_trajectory_controller.cpp.
void cob_trajectory_controller::run | ( | ) | [inline] |
Definition at line 197 of file cob_trajectory_controller.cpp.
bool cob_trajectory_controller::srvCallback_Stop | ( | cob_srvs::Trigger::Request & | req, | |
cob_srvs::Trigger::Response & | res | |||
) | [inline] |
Definition at line 119 of file cob_trajectory_controller.cpp.
void cob_trajectory_controller::state_callback | ( | const pr2_controllers_msgs::JointTrajectoryControllerStatePtr & | message | ) | [inline] |
Definition at line 136 of file cob_trajectory_controller.cpp.
std::string cob_trajectory_controller::action_name_ [private] |
Definition at line 88 of file cob_trajectory_controller.cpp.
actionlib::SimpleActionServer<pr2_controllers_msgs::JointTrajectoryAction> cob_trajectory_controller::as_ [private] |
Definition at line 87 of file cob_trajectory_controller.cpp.
ros::Subscriber cob_trajectory_controller::controller_state_ [private] |
Definition at line 83 of file cob_trajectory_controller.cpp.
std::string cob_trajectory_controller::current_operation_mode_ [private] |
Definition at line 89 of file cob_trajectory_controller.cpp.
bool cob_trajectory_controller::executing_ [private] |
Definition at line 90 of file cob_trajectory_controller.cpp.
std::vector<double> cob_trajectory_controller::joint_distance_ [private] |
Definition at line 94 of file cob_trajectory_controller.cpp.
ros::Publisher cob_trajectory_controller::joint_pos_pub_ [private] |
Definition at line 81 of file cob_trajectory_controller.cpp.
ros::Publisher cob_trajectory_controller::joint_vel_pub_ [private] |
Definition at line 82 of file cob_trajectory_controller.cpp.
ros::NodeHandle cob_trajectory_controller::n_ [private] |
Definition at line 80 of file cob_trajectory_controller.cpp.
ros::Subscriber cob_trajectory_controller::operation_mode_ [private] |
Definition at line 84 of file cob_trajectory_controller.cpp.
std::vector<double> cob_trajectory_controller::q_current [private] |
Definition at line 94 of file cob_trajectory_controller.cpp.
ros::ServiceClient cob_trajectory_controller::srvClient_SetOperationMode [private] |
Definition at line 86 of file cob_trajectory_controller.cpp.
ros::ServiceServer cob_trajectory_controller::srvServer_Stop_ [private] |
Definition at line 85 of file cob_trajectory_controller.cpp.
std::vector<double> cob_trajectory_controller::startposition_ [private] |
Definition at line 94 of file cob_trajectory_controller.cpp.
trajectory_msgs::JointTrajectory cob_trajectory_controller::traj_ [private] |
Definition at line 93 of file cob_trajectory_controller.cpp.
Definition at line 92 of file cob_trajectory_controller.cpp.
int cob_trajectory_controller::watchdog_counter [private] |
Definition at line 91 of file cob_trajectory_controller.cpp.