29 #ifndef _SR_JOINT_TRAJECTORY_ACTION_CONTROLLER_H_ 30 #define _SR_JOINT_TRAJECTORY_ACTION_CONTROLLER_H_ 38 #include <control_msgs/FollowJointTrajectoryAction.h> 92 double &position,
double &velocity,
double &acceleration);
97 void commandCB(
const trajectory_msgs::JointTrajectoryConstPtr &msg);
101 bool getPosition(std::string joint_name,
double &position);
void commandCB(const trajectory_msgs::JointTrajectoryConstPtr &msg)
static void sampleSplineWithTimeBounds(const std::vector< double > &coefficients, double duration, double time, double &position, double &velocity, double &acceleration)
ros::Publisher sr_hand_target_pub
std::map< std::string, unsigned int > jointPubIdxMap
bool getPosition(std::string joint_name, double &position)
std::vector< double > coef
actionlib::SimpleActionServer< control_msgs::FollowJointTrajectoryAction > JTAS
ros::Publisher sr_arm_target_pub
ros::Publisher desired_joint_state_pusblisher
JointTrajectoryActionController()
std::map< std::string, std::string > jointControllerMap
std::vector< double > qdd
std::map< std::string, unsigned int > joint_state_idx_map
boost::shared_ptr< JTAS > action_server
std::vector< ros::Publisher > controller_publishers
std::vector< Spline > splines
ros::Subscriber command_sub
std::vector< Segment > SpecifiedTrajectory
std::vector< std::string > joint_names_
ros::ServiceClient joint_state_client
void execute_trajectory(const control_msgs::FollowJointTrajectoryGoalConstPtr &goal)
std::map< std::string, double > joint_state_map