其他分享
首页 > 其他分享> > ROS与UR3机械臂的仿真与实时控制

ROS与UR3机械臂的仿真与实时控制

作者:互联网

基本配置:Ubuntu18.04+ROS melodic

1. 源码下载

cd ~/catkin_ws/src
git clone -b kinetic-devel https://github.com/ros-industrial/universal_robot.git
git clone https://github.com/woo-rookie/ur_modern_driver.git
#原版本有报错
#将universal_robot下的ur_driver替换为上面下载的ur_modern_driver

2. 项目依赖安装

cd ..
rosdep update
rosdep install --from-paths --ignore-src --rosdistro melodic
catkin_make
source devel/setup.bash

3. 仿真

#启动gazebo
roslaunch ur_gazebo ur3.launch
#一个片段表示一个终端
#启动运动规划
roslaunch ur3_moveit_config ur3_moveit_planning_execution.launch sim:=true
#报错的话 执行下source ~/catkin_ws/devel/setup.bash
#启动rviz可视化
roslaunch ur3_moveit_config moveit_rviz.launch config:=true

4. 实时控制

#启动driver
roslaunch ur_modern_driver ur3_bringup.launch robot_ip:=ip
#ip为UR3机械臂本体的静态地址
#启动运动规划
roslaunch ur3_moveit_config ur3_moveit_planning_execution.launch
#报错的话 执行下source ~/catkin_ws/devel/setup.bash
#启动rviz可视化
roslaunch ur3_moveit_config moveit_rviz.launch config:=true

标签:roslaunch,ROS,launch,UR3,driver,ur3,实时控制,config,moveit
来源: https://blog.csdn.net/weixin_48395629/article/details/115519198