36 #include <manipulation_msgs/JointTraj.h> 50 ros::Node *node =
new ros::Node(
"test_arm_trajectory_controller");
58 manipulation_msgs::JointTraj
cmd;
63 cmd.set_points_size(num_points);
65 for(
int i=0; i<num_points; i++)
66 cmd.points[i].set_positions_size(num_joints);
68 cmd.points[0].positions[0] = 0.0;
69 cmd.points[0].positions[1] = 0.0;
70 cmd.points[0].positions[2] = 0.0;
71 cmd.points[0].positions[3] = -0.0;
72 cmd.points[0].positions[4] = 0.0;
73 cmd.points[0].positions[5] = 0.0;
74 cmd.points[0].positions[6] = 0.0;
75 cmd.points[0].positions[7] = -2.0;
76 cmd.points[0].positions[8] = 0.0;
77 cmd.points[0].positions[9] = -0.0;
78 cmd.points[0].time = 0.0;
80 node->advertise<manipulation_msgs::JointTraj>(
"base/trajectory_controller/command",1);
82 node->publish(
"base/trajectory_controller/command",cmd);
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
void finalize(int donecare)