8.Trajectory planning

1. Start up

Start MoveIT

Start trajectory planning node

To view the trajectory, you need to add the [MarkerArray] plug-in and select the [/rviz_visual_tools] topic.

Given three reachable target points of the robotic arm, MoveIT will plan three feasible trajectories based on the target points, and then merge the three trajectories into one continuous trajectory.

2. Code

Set three reachable target points (you can have several target points, they must be reachable).

Plan each trajectory

Trajectory merge

Track display

Execute trajectory planning