ros Moveit学习记录(一) MoveIt Setup Assistant

ros MoveIt Setup Assistant 记录

    • [1. 准备工作](#1. 准备工作)
    • [2. 使用记录](#2. 使用记录)
      • [a. 打开Moveit! Setup Assistant](#a. 打开Moveit! Setup Assistant)
      • [b. *Create New Moveit Configuration* -> 填入`urdf.xacro`的地址](#b. Create New Moveit Configuration -> 填入urdf.xacro的地址)
      • [c. Self-Collisions:全选了即可](#c. Self-Collisions:全选了即可)
      • [d. Define Virtual Joints](#d. Define Virtual Joints)
      • [e. Define Planning Groups](#e. Define Planning Groups)
      • [f. Define Robot Poses](#f. Define Robot Poses)
      • [g. 我的没有 End-Effector,因此`End Effectors`略过。](#g. 我的没有 End-Effector,因此End Effectors略过。)
      • [h. franka panda不需要Add Passive Joints。](#h. franka panda不需要Add Passive Joints。)
      • [i. Controllers](#i. Controllers)
      • [j. Simulation 和 3D Perception 默认即可](#j. Simulation 和 3D Perception 默认即可)
      • [g. Generate Configuration Files](#g. Generate Configuration Files)
    • 结果

最近在学习Moveit。记录一下Moveit Setup Assistant使用过程。

MoveIt Setup Assistant 是一个图形用户界面,用于为任何机器人配置MoveIt使用。它的主要功能是为您的机器人生成Semantic Robot Description Format(SRDF)文件。此外,它还生成其他必要的配置文件,以便与MoveIt pipeline 一起使用。

1. 准备工作

安装moveit (我的ROS版本是 Noetic)

bash 复制代码
sudo apt-get install ros-noetic-moveit

官方的安装有些复杂,应该这样就可以了。

以franka为例,下载它的description,主要包括 URDF文件和franka部件的meshes。

bash 复制代码
sudo apt install ros-noetic-franka-description

新建一个workspace

bash 复制代码
mkdir -p ~/ws_test/src
cd ~/ws_test/src
catkin_init_workspace

2. 使用记录

a. 打开Moveit! Setup Assistant

bash 复制代码
roslaunch moveit_setup_assistant setup_assistant.launch

b. Create New Moveit Configuration -> 填入urdf.xacro的地址

noetic的地址在这里:
/opt/ros/noetic/share/franka_description/robots/panda/panda.urdf.xacro
我的这个默认就没有爪子,后续我会记录爪子的补全过程。

如果找不到可以 find / -name franka_description

c. Self-Collisions:全选了即可

d. Define Virtual Joints

如下图所示

e. Define Planning Groups

f. Define Robot Poses

g. 我的没有 End-Effector,因此End Effectors略过。

h. franka panda不需要Add Passive Joints。

i. Controllers

忘记截图。
Add Controller->命名arm_position_controller-> 选择controller type position_controllers/JointPositionController->Add Planning Group Joints -> Save

j. Simulation 和 3D Perception 默认即可

g. Generate Configuration Files

此处我的地址设置有误,若设为/root/ws_test/src/moveit_test_no_gripper会更好。

结果

可以看到ws_test下生成了文件夹

此时运行rviz会出错

bash 复制代码
roslaunch moveit_setup_assistant setup_assistant.launch

moveit_test_no_gripper移到srccatkin_buildsource devel/setup.bash再次运行就可以成功了。

相关推荐
nandycooh4 天前
Ubuntu22.04.5安装ROS2教程(使用鱼香ROS工具)
ubuntu·ros
奔跑的花短裤4 天前
ROS2安装
ros·ros2·ros1
liiiuzy7 天前
fastlio2建图与重定位 neotic ubuntu20.04
ros·雷达建图·fastlio2
FateRing10 天前
ros2的turtlebot3_gazebo仿真加深度相机
ros·gazebo
老黄编程13 天前
Gazebo Classic 11 与 Gazebo Harmonic(Gazebo Sim) 的功能对比总结
ros·gazebo
kyle~13 天前
虚拟仪器LabView(VI)
c++·python·ros·labview
BestOrNothing_201513 天前
Ubuntu 一键安装 ROS 全流程( 鱼香ROS 一键脚本)
linux·ubuntu·ros·ros环境搭建·鱼香ros·一键安装ros
老黄编程14 天前
旧版 gazebo11 和 新版Gazebo Jetty差异性比较
ros·gazebo
老黄编程14 天前
Gazebo Jetty vs Gazebo Harmonic 差异性分析
ros·jetty·harmonic
Mr.Winter`14 天前
深度强化学习 | 基于PPO算法的移动机器人路径跟踪(附Pytorch实现)
人工智能·pytorch·深度学习·机器学习·机器人·自动驾驶·ros