Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
SingleJointPositionNode Class Reference

Public Member Functions

void goalCB (GoalHandle gh)
 
 SingleJointPositionNode (const ros::NodeHandle &n)
 

Private Types

typedef SJPAS::GoalHandle GoalHandle
 
typedef actionlib::ActionServer< pr2_controllers_msgs::SingleJointPositionAction > SJPAS
 

Private Member Functions

void cancelCB (GoalHandle gh)
 
void controllerStateCB (const pr2_controllers_msgs::JointTrajectoryControllerStateConstPtr &msg)
 
void watchdog (const ros::TimerEvent &e)
 

Private Attributes

SJPAS action_server_
 
GoalHandle active_goal_
 
ros::ServiceClient cli_query_traj_
 
ros::Subscriber command_sub_
 
double goal_threshold_
 
bool has_active_goal_
 
std::string joint_
 
pr2_controllers_msgs::JointTrajectoryControllerStateConstPtr last_controller_state_
 
double max_accel_
 
ros::NodeHandle node_
 
ros::Publisher pub_controller_command_
 
ros::Subscriber sub_controller_state_
 
ros::Timer watchdog_timer_
 

Detailed Description

Definition at line 45 of file single_joint_position_action.cpp.

Member Typedef Documentation

Definition at line 49 of file single_joint_position_action.cpp.

typedef actionlib::ActionServer<pr2_controllers_msgs::SingleJointPositionAction> SingleJointPositionNode::SJPAS
private

Definition at line 48 of file single_joint_position_action.cpp.

Constructor & Destructor Documentation

SingleJointPositionNode::SingleJointPositionNode ( const ros::NodeHandle n)
inline

Definition at line 51 of file single_joint_position_action.cpp.

Member Function Documentation

void SingleJointPositionNode::cancelCB ( GoalHandle  gh)
inlineprivate

Definition at line 200 of file single_joint_position_action.cpp.

void SingleJointPositionNode::controllerStateCB ( const pr2_controllers_msgs::JointTrajectoryControllerStateConstPtr &  msg)
inlineprivate

Definition at line 216 of file single_joint_position_action.cpp.

void SingleJointPositionNode::goalCB ( GoalHandle  gh)
inline
Todo:
Use max_accel_ to compute the velocity correctly.

Definition at line 90 of file single_joint_position_action.cpp.

void SingleJointPositionNode::watchdog ( const ros::TimerEvent e)
inlineprivate

Definition at line 166 of file single_joint_position_action.cpp.

Member Data Documentation

SJPAS SingleJointPositionNode::action_server_
private

Definition at line 162 of file single_joint_position_action.cpp.

GoalHandle SingleJointPositionNode::active_goal_
private

Definition at line 164 of file single_joint_position_action.cpp.

ros::ServiceClient SingleJointPositionNode::cli_query_traj_
private

Definition at line 159 of file single_joint_position_action.cpp.

ros::Subscriber SingleJointPositionNode::command_sub_
private

Definition at line 158 of file single_joint_position_action.cpp.

double SingleJointPositionNode::goal_threshold_
private

Definition at line 153 of file single_joint_position_action.cpp.

bool SingleJointPositionNode::has_active_goal_
private

Definition at line 163 of file single_joint_position_action.cpp.

std::string SingleJointPositionNode::joint_
private

Definition at line 151 of file single_joint_position_action.cpp.

pr2_controllers_msgs::JointTrajectoryControllerStateConstPtr SingleJointPositionNode::last_controller_state_
private

Definition at line 215 of file single_joint_position_action.cpp.

double SingleJointPositionNode::max_accel_
private

Definition at line 152 of file single_joint_position_action.cpp.

ros::NodeHandle SingleJointPositionNode::node_
private

Definition at line 155 of file single_joint_position_action.cpp.

ros::Publisher SingleJointPositionNode::pub_controller_command_
private

Definition at line 156 of file single_joint_position_action.cpp.

ros::Subscriber SingleJointPositionNode::sub_controller_state_
private

Definition at line 157 of file single_joint_position_action.cpp.

ros::Timer SingleJointPositionNode::watchdog_timer_
private

Definition at line 160 of file single_joint_position_action.cpp.


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


single_joint_position_action
Author(s): Stuart Glaser
autogenerated on Wed Jun 5 2019 19:34:16