5. MoveIt Cartesian path

This lesson takes MoveIT simulation as an example. If you need to set up the real machine and simulation to be synchronized, please see the lesson [02, MoveIt Precautions and Controlling the Real Machine]. ! ! ! be safe! ! !

The effect demonstration is a virtual machine and other main control running conditions (related to the main control performance, depending on the actual situation).

5.1, Introduction

The Cartesian coordinate system is the collective name for the Cartesian coordinate system and the oblique coordinate system. A Cartesian path is actually a line connecting any two points in space.

img

5.2, Start

Start MoveIT

<PI5 needs to open another terminal to enter the same docker container

image-20240408144126098

Start Cartesian Path Node

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

img

The python code does not have a similar trajectory to C++, but you can view the end description and open it as shown in the figure below.

img

5.3, source code

5.3.1, py file

Set a specific location

Add waypoint

waypoint planning

5.3.2, C++ files

Set a specific location

Add waypoint

waypoint planning