1. MoveIt configuration1.1.Start the program1.2. Configuration process1.2.1. Load URDF model1.2.2. Create collision exemption matrix1.2.3. Create a motion planning group1.2.3.1. Add robotic arm planning group1.2.3.2. Add gripper planning group1.2.4. Create preset poses (Robot Poses)1.2.5. Set end influence joints1.2.6. Create ROS controller1.2.7. Add author information. If you don’t add it, it will not be generated.1.2.8. Generate configuration file1.3. Detailed explanation of MoveIt configuration package1.3.1、config folder1.3.2. launch folder1.4. Configuration verification
Start the roscore
roscore
Start the MoveIT
xxxxxxxxxx
rosrun moveit_setup_assistant moveit_setup_assistant
If an 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:
If you are loading the model generation configuration for the first time, click [Create New MoveIt Configuration Package]; if you are modifying the generated configuration file, click [Edit Existing MoveIt Configuration Package].
Click the [Browse] button, find the URDF model file, and click [Load Files] in the lower right corner to load it.
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 requires a lot of spatial geometry calculations. But for rigid-body robots, collisions between some joints are impossible, such as adjacent limbs. The purpose of generating self-collision here is to tell us which joints will not collide with each other. In the subsequent collision detection algorithm, the detection between these joints can be directly skipped to improve detection efficiency.
After the model is loaded, select [Self-Collisions] and click the [Generate Collision Matrix] button.
Planning Group is one of the core parts of MoveIt. Click [Add Group] to add a planning group
Group Name:Create a group name and set it to [arm_group].
Kinematic Solver: Here we choose [kdl]
Kinematics solving tool, this is responsible for solving forward kinematics (Forward Kinematics) and inverse kinematics (IK). Generally we choose KDL, The Kinematics and Dynamics Library. This is a kinematics and dynamics library that can well solve the forward and inverse kinematics problems of single-chain mechanical structures with more than 6 degrees of freedom.
Of course, you can also use other IK Solver, such as SRV or IK_FAST, or you can even develop a new Solver yourself and insert it.
Kin. Search Resolution: Sampling density of joint space
Kin. Search TImeout: Solving time. If the equipment performance is insufficient or there is no solution within the specified time in the actual application process, the time can be increased; for example, set to [0.1], [0.01].
Group Default Planner:You can choose RRT or None.
Click [Add Joints] to add joints.
Select arm_joint1 to arm_joint5, and then click >, as shown in the figure below,
Click save to complete adding the robotic arm group, as shown in the figure below.
Double-click arm_group to view,
Click [Add Group] to add a gripper planning group.
Create a group name and set it to [grip_group]. There is no need to set up a kinematic solver; click [Add Links] to add the gripper link.
Select the connecting rod of the clamping jaw part, click [>], the right side will be added automatically, and click [Save] to save.
The settings are as shown in the picture below,
Select [Robot Poses] and click [Add pose] to add a pose.
Add the robot arm posture, and set the posture name Pose Name to [up]
Add [down] gesture
Add [init] gesture
Add the gripper [close] posture
Add the gripper [open] posture
Select [End Effectors] and set as shown below
Click Save to save and exit. The settings are completed as shown in the figure below.
Select [Controllers], click Add Controller,
Then,Controller Name:arm_position_controller,Controller Type choose position_controllers/JointTrajectoryController
Click Add Planning Group Joints, select arm_group, click >, and click save to save.
The final configuration is shown in the figure below,
Select [Author Information] and add the following content.
Select [Configuration Files], click [Browse], select the [x3plus_moveit_config] folder (the folder must be empty), and click the [Generate Package] button to generate the configuration file. After completion, click [Exit Setup Assistant].
After the generation is completed, click Exit Setup Assistant to exit the configuration.
Open the [x3plus_moveit_config] folder we just created, and we find that there are two folders: config and launch.
Enter the workspace where the configuration file is located and execute the following command
xxxxxxxxxx
cd ~/yahboomcar_ws # Enter the work space
catkin_make # Compiling
source devel/setup.bash # Update system environment
roslaunch arm_moveit_demo x3plus_moveit_demo.launch sim:=true # Start up moveIT
Examples are as follows