1. MoveIt configuration

1.1.Start the program

Start the roscore

Start the MoveIT

1.2. Configuration process

1.2.1. Load the URDF model

If the error [Model not found] is reported when loading the model, exit MoveIt-->Enter the workspace-->Compile (sudo apt update)-->Update the environment (source devel/setup.bash)-->Start the MoveIt configuration again . The interface after startup is as follows:

0001

If loading the model generation configuration for the first time, Click [Create New MoveIt Configuration Package]; If modifying the generated configuration file, Click [Edit Existing MoveIt Configuration Package].

0002

Click the [Browse] button, find the URDF model file, and click [Load Files] in the lower right corner to load.

1.2.2. Create a collision-free inspection matrix

Collision detection is a very complex computational process. For multi-joint robotic arms or humanoid robots, the mechanical structure is complex and there are many joints, and collision detection needs to involve a lot of spatial geometric calculations. But for rigid body robots, some joints are impossible to collide with, such as limbs that are already adjacent. The purpose of generating self-collision here is to tell us which joints will not collide. In the subsequent collision detection algorithm, the detection between these joints can be directly skipped to improve the detection efficiency.

After the model is loaded, select [Self-Collisions] and click the [Generate Collision Matrix] button.

0003

1.2.3. Create a motion planning group

Planning Group is one of the core of MoveIt. Click [Add Group] to add a planning group

0004

1.2.3.1. Add robotic arm planning group

If there is no [trac-ik] in the system, execute the following command to install it.

Click [Add Kin.Chain] to add a joint chain.

0005

Click [Expand All], select Base Link as [base_footprint], and select Tip Link as [arm_link5]; click [save] to save.

0006

1.2.3.2. Add gripper planning group

Click [Add Group] to add gripper planning group.

The creation group name is set to [gripper_group], no need to set the kinematics solver; click [Add Links] to add the gripper link.

0007

Select the link of the gripper part, click [>], the right side is automatically added, and click [Save] to save.

0008

1.2.4. Create preset poses (Robot Poses)

Select [Robot Poses] and then click [Add pose] to add poses.

Add the robot arm pose, the pose name Pose Name is set to [up]

0009

Add [down]pose

0010

Add [init]pose

0011

Add [close]pose

0012

Add [open]pose

0013

1.2.5. Set end-effect joints

Select [End Effectors], set as shown below

0014

1.2.6. Establish ROS controller

Select [ROS Control], click to automatically add follow joint track

0014

1.2.7. Add simulation

Select [Simulation], click [Generate URDF]

0015

1.2.8. Add and build 3D information (optional)

Select [3D Perception], select [Point Cloud].

0016

1.2.9. Add author information, if you don't add it, you can't generate

Select [Author Information] and add the following content.

0017

1.2.10. Generate configuration file

Select[Configuration Files],click[Browse],select the folder[x3plus_moveit_config] (the folder must be empty), and click the [Generate Package] button to generate the configuration file. When finished, click [Exit Setup Assistant].

0018

1.3. Detailed explanation of MoveIt configuration package

Open the just created folder[x3plus_moveit_config], we found that there are two folders config and launch.

1.3.1. Config folder

1.3.2、launch folder

1.4. Configuration Verification

Enter the workspace where the configuration file is located and execute the following command

Examples are as follows

0019