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] = 2.0;
69 cmd.points[0].positions[1] = 0.0;
70 cmd.points[0].positions[2] = 0.0;
71 cmd.points[0].time = 0.0;
73 node->advertise<manipulation_msgs::JointTraj>(
"base/trajectory_controller/command",1);
75 node->publish(
"base/trajectory_controller/command",cmd);
void finalize(int donecare)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)