1. MoveIt configuration1.1.Start the program1.2. Configuration processClick 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 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-effect joints1.2.6. Establish ROS controller1.2.7. Add simulation1.2.9. Add author information, if you don't add it, you can't generate1.2.10. 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
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:
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].
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.
Planning Group is one of the core of MoveIt. Click [Add Group] to add a planning group
If there is no [trac-ik] in the system, execute the following command to install it.
xxxxxxxxxx
sudo apt-get install ros-melodic-trac-ik*
Group Name: Create group name, set to [arm_group].
Kinematic Solver: Here we choose [trac_ik]
Kinematics solution tool, this is responsible for solving forward kinematics (Forward Kinematics) and inverse kinematics (IK). Generally, we use KDL, The Kinematics and Dynamics Library. This is a kinematics and dynamics library, which can better 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, and even you can develop a new Solver yourself and insert it.
Kin. Search Resolution: Sampling density of joint space
Kin. Search TImeout: The solution time, if the equipment performance is insufficient or there is no solution within the specified time during the actual application process, the time can be increased; for example, set it to [0.1], [0.01].
Click [Add Kin.Chain] to add a joint chain.
Click [Expand All], select Base Link as [base_footprint], and select Tip Link as [arm_link5]; click [save] to save.
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.
Select the link of the gripper part, click [>], the right side is automatically added, and click [Save] to save.
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]
Add [down]pose
Add [init]pose
Add [close]pose
Add [open]pose
Select [End Effectors], set as shown below
Select [ROS Control], click to automatically add follow joint track
Select [Simulation], click [Generate URDF]
1.2.8. Add and build 3D information (optional)
Select [3D Perception], select [Point Cloud].
Select [Author Information] and add the following content.
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].
Open the just created folder[x3plus_moveit_config], we found that there are two folders config and launch.
Enter the workspace where the configuration file is located and execute the following command
xxxxxxxxxx
cd ~/transbot_ws # enter work space
catkin_make # compile
source devel/setup.bash # Update system environment
roslaunch transbot_se_moveit_config demo.launch # start moveIT
Examples are as follows