ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to pass a JointTrajectory ?

asked 2020-04-18 06:03:53 -0600

Jiawenxing gravatar image

Hello! I want to pass a joint Trajectory form my Motion Planning Response to FollowJointTrajectoryGoal. How can I make it. They both have the member trajectory_msgs/JointTrajectory, how can I pass the JointTrajectory.

I just found the DisplayTrajectory has a method to pass the parameter, but FollowJointTrajectoryGoal didn't.

  moveit_msgs::DisplayTrajectory display_trajectory;

  display_trajectory.trajectory.push_back(response.trajectory);
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-04-20 11:09:23 -0600

Jiawenxing gravatar image

control_msgs::FollowJointTrajectoryGoal Execu_goal; Execu_goal.trajectory = my_plan.trajectory_.joint_trajectory;

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-04-18 06:03:53 -0600

Seen: 107 times

Last updated: Apr 20 '20