0
$\begingroup$

Rosanswers logo

I can specify start and goal to plan a projectory. but I want specify some middle points between start and goal.

I only know that the computeCartesianPath can do that. but It isn't good for use.

How to specify the middle points when plan projectory using moveit?

advance thank for any help.


Originally posted by clark_txh on ROS Answers with karma: 51 on 2017-01-04

Post score: 0


Original comments

Comment by NEngelhard on 2017-01-04:
"but It isn't good for use." Why?

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Hi Clark,

MoveIt! does not support intermediate waypoints for joint space planning. The easiest way to do it is to plan separate paths: first to the middle waypoint, and then from there on to the final waypoint.If you both plan them before starting the execution, don't forget to set the start_state of the second segment so as to match the final state of the first segment.

You can then execute these trajectories in order, but if you want to turn them into one path, you can. To do this, you should merge the waypoints of both trajectories and re-run the time parameterization on the new trajectory.

With moveit_commander, this can be done with the retime_trajectory function. In C++, it's a little more involved but certainly possible. Have a look here to see how it's done.


Originally posted by rbbg with karma: 1823 on 2017-01-05

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.