ur3+robotiq 2f 140 configure moveit

ur3+robotiq 2f 140 configure moveit

Reference link 1
Reference link 2
Official configuration movit tutorial

Build environment:

ubuntu: 20.04
ros: Nonetic
sensor: robotiq_ft300
gripper: robotiq_2f_140_gripper
UR: UR3
reasense: D435i

The rviz and gazebo simulation environment of ur3, force sensor, robotiq gripper, realsense are configured through the following blogs

ubuntu20.04 configures the simulation environment of the UR robot arm
ur3+robotiq ft sensor+robotiq 2f 140 configures the rviz simulation environment
ur3+robotiq ft sensor+robotiq 2f 140 configures the gazebo simulation environment
ur3+robotiq ft sensor+robotiq 2f 140+realsense d435i configures rviz ,
add robotiq 2f 140 gripper_controller controller in gazebo simulation environment gazebo simulation environment

Let's configure the moveit of the ur3 robotic arm and gripper

run command

roslaunch moveit_setup_assistant setup_assistant.launch

insert image description here

Choose to create a new movit configuration file, and import the previously prepared description file. I importeduniversal_robot/ur_description/urdf/ur3_ft_gripper_realsense.xacro

insert image description here

Select Generate Collision Matrix

insert image description here

Configure virtual joints

Here I have not configured virtual joints, skip

Create planning group

Click Add Groupto add group

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-UJHGTzHQ-1677226598177)(https://cdn.jsdelivr.net/gh/FinnJob/blog-pic/img /20230224151358.png)]

  • Add the ur3 robot arm planning group, the relevant configuration is as follows

insert image description here

Click Add Joints, add joints as follows, after adding joints, select chainand clickedit select

insert image description here

The configuration is as shown below

insert image description here

final configuration

insert image description here

  • Add robotiq 2f 140 gripper planning group, the relevant configuration is as follows

insert image description here

Click Add Jointsto add the joint as shown below

insert image description here

Define robot pose
  • set home

20230224153629

  • Set the robotic arm to stand up

insert image description here

  • Set to open the gripper open

insert image description here

  • Set clamp jaw graspp

insert image description here

final save

insert image description here

Set up the end effector

insert image description here

Set useless joints

That is, some passive joints, the ones without drivers, do not need it to publish joint_state. Select some passive joints of the gripper

insert image description here

controller settings

Directly click the automatic generation in the upper left corner, and the generated group name plus controller

insert image description here

add information

You can write whatever you want, every addition is not generated

insert image description here

generate configuration file

Select the path to store the configuration file and click Generate

insert image description here

After the configuration file is generated, there are many things that are wrong, and the bug needs to be manually corrected
  • bug1
Error [parser.cc:488] parse as old deprecated model file failed.
Error Code 4 Msg: Required attribute[filename] in element[plugin] is not specified in SDF.
Error Code 8 Msg: Error reading element <plugin>
Error Code 8 Msg: Error reading element <model>
Error Code 8 Msg: Error reading element <sdf>

Solution:

Check the end of your urdf model file to see if it is missing "filename="libgazebo_ros_control.so", I am missing this and report an error, probably because the gazebo_ros_control plugin does not inherit libgazebo_ros_control.so

My urdf file is in the generated configuration file ur3_gripper_moveit_config/config/gazebo_ur3_robot_ft_gripper.urdf, and then added in it, as shown below

insert image description here

Display of results
  • show rviz

run command

cd ~/catkin_ws
source devel/setup.bash
roslaunch ur3_gripper_moveit_config demo.launch

insert image description here

Select the robotic arm or gripper, you can do path planning in rviz

  • Show rviz and gazebo

run command

cd ~/catkin_ws
source devel/setup.bash
roslaunch ur3_gripper_moveit_config demo_gazebo.launch

insert image description here

insert image description here

It can be seen that the robotic arm has been dancing in gazebo, the reason is unknown

Guess you like

Origin blog.csdn.net/weixin_48319333/article/details/129203384