使用MoveIt!控制Gazebo仿真环境中的UR 10机械臂

该博客详细介绍了如何使用ROS-Industrial的universal robot meta-package在Gazebo仿真环境中配置和控制UR 10机械臂。首先,下载并启动Gazebo以显示UR10。接着,通过xacro命令将urdf.xacro转换为静态urdf文件以配置MoveIt!。然后,创建并编辑控制器和关节名称的yaml文件,更新launch文件以连接到Gazebo。最后,利用rviz界面进行MoveIt!的测试和操作。
摘要由CSDN通过智能技术生成

参考资料:https://www.youtube.com/watch?v=j6bBxfD_bYs

1. 下载ROS-Industrial universal robot meta-package

cd ~/catkin_ws/src
git clone https://github.com/ros-industrial/universal_robot.git
cd ~/catkin_ws
catkin_make

2. 启动Gazebo

cd ~/catkin_ws/src/universal_robot/ur_gazebo/launch
roslaunch ur10.launch

此时Gazebo将启动,并且能够看到ur10机械臂

3. 配置MoveIt!

roslaunch moveit_setup_assistant setup_assistant.launch

第一个标签下面需要选择机械臂的urdf文件,注意/catkin_ws/src/universal_robot/ur_description/urdf/文件夹中只有xacro文件,因此先使用xacro命令将ur10.urdf.xacro转换为静态urdf文件。

cd ~/catkin_ws/src/universal_robot/ur_description/urdf/
rosrun xacro xacro.py ur10.urdf.xacro > ur10
  • 1
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值