MoveIt! Robot Arm Control - Problem Summary and Solutions

Tip: After the article is written, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right


foreword

This article is to learn the practice of ROS robot development - MoveIt! The problems and solutions encountered in the control part of the robotic arm are used as my own notes to avoid stepping on such problems. I have referred to many blog posts, so I will not list them.
ROS version:
There is a problem in the kinetic process Try it: sudo apt-get update

1. Create a robotic arm model

code show as below:

roslaunch marm_description view_arm.launch 

Question 1
insert image description here
solution
This is a problem caused by the missing joint_state_publisher package. The code is as follows:

sudo apt-get install ros-kinetic-joint-state-publisher

Question 2
insert image description heresolution
joint_state_publisher_gui is a newly updated package. You need to replace the previous joint_state_publisher with joint_state_publisher_gui. The code is as follows:

sudo apt-get install ros-kinetic-joint-state-publisher-gui

accomplish
insert image description here
insert image description here

2. Start MoveIt!

code show as below:

roslaunch marm_moveit_config demo.launch 

Question 1
insert image description here
solution
code show as below:

sudo apt install ros-kinetic-moveit-ros-planning-interface

Question 2
insert image description here
solution
This kind of error is because some packages are not installed completely when installing moveit, you can install moveit again, the code is as follows:

sudo apt-get install ros-kinetic-moveit

accomplish
insert image description here

3. Run the ArbotiX node

code show as below:

roslaunch marm_description  fake_arm.launch 

Question 1
insert image description here
solution
Install arbotix_python, the code is as follows:

sudo apt-get install ros-kinetic-arbotix

accomplish
insert image description here

4. Work space planning

code show as below:

roslaunch marm_planning arm_planning.launch 
rosrun marm_planning moveit_ik_demo.py

Question 1
insert image description here
solution
code show as below:

sudo apt-get install ros-kinetic-genpy

accomplish
insert image description here

5. Start the robot simulation environment

code show as below:

roslaunch marm_gazebo arm_gazebo_control.launch
rosrun marm_planning moveit_ik_demo.py

Question 1
insert image description here
solution
Go to the file directory ~/hh_ws/src/marm_description/urdf, open the file with the .xacro suffix, and add it in the corresponding location, as shown in the following figure.

 <legacyModeNS>true</legacyModeNS>

insert image description hereQuestion 2
insert image description here
solution
This problem can be ignored, reference link: address .

accomplish
insert image description here

6. Moveit controls the Gazebo robotic arm

code show as below:

roslaunch marm_gazebo arm_bringup_moveit.launch

Question 1
it is good solution

Detailed steps reference link: click here

7. Other

Question 1
Copy the marm_planning function package to your own workspace, and compile the following similar problems:
insert image description here solution
The above cmake error indicates that the package with the same name is installed or the environment is changed. Generally, the function package is not installed. The code is as follows:

sudo apt-get install ros-kinetic-arbotix

Question 2
Copy the marm_gazebo function package to your own workspace, and compile the following similar problems:
insert image description here

solution
The reason for the analysis is the same as that of question 1, and the code is as follows:

sudo apt-get install ros-kinetic-gazebo-plugins

Summarize

The recording process is difficult, I feel it is helpful, I hope to like and support!

Guess you like

Origin blog.csdn.net/qq_50598558/article/details/114447566