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再次运行就可以成功了。

相关推荐
liiiuzy6 天前
基于move_base的机器狗定位与导航
ros
Mr.Winter`7 天前
运动规划实战案例 | 基于采样的MPC控制(MPPI)算法(附ROS C++/Python仿真)
c++·人工智能·机器人·自动驾驶·ros·路径规划·具身智能
滴啦嘟啦哒9 天前
【机械臂】【基本驱动】三、对于夹取物体bug的最新解决
深度学习·bug·ros
滴啦嘟啦哒12 天前
【机械臂】【基本驱动】二、在gazebo中实现机械臂运动学逆解及物体夹取
深度学习·ros
Sereinc.Y12 天前
【移动机器人运动规划(ROS)】03_ROS话题-服务-动作
c++·动态规划·ros·slam
花花少年12 天前
快速体验ROS通信之服务(Service)机制
ros·service机制
疯狂的doctor15 天前
conda和ros2 humble共存,rclpy引入失败
conda·ros
程序员龙一18 天前
百度Apollo Cyber RT底层原理解析
自动驾驶·ros·apollo·cyber rt
再遇当年18 天前
ubuntu22.04安装中文输入法且与ros2与clion不冲突
ubuntu·ros·输入法·中文输入法·fcitx5
明月满西楼19 天前
在Ubuntu 20.04实现ROS1 Noetic 与 ROS2 Foxy 多版本共存及切换
ubuntu·ros·noetic·foxy