Universial Robot (4):Ubuntu 16.04+ROS Kinetic+MoveIt!+Gazebo+Real Robot配置全過程
阿新 • • 發佈:2019-01-28
本文所講的內容已經全都在Ubuntu 16.04+ROS Kinetic上實現,如有疑問,可以留言交流~
轉載:http://blog.csdn.net/wangjiankun_ls/article/details/64441905
1.首先建立Catkin工作空間,下載所需資料:
- mkdir -p /tmp/ws/src
- cd /tmp/ws/src
- git clone https://github.com/ros-industrial/universal_robot.git
- cd /tmp/ws
- rosdep update
- rosdep install --from-paths src --ignore-src
- catkin_make
- source devel/setup.bash
2.執行Gazebo模擬,開啟新的終端,執行:
- roslaunch ur_gazebo ur5.launch limited:=true
- roslaunch ur5_moveit_config ur5_moveit_planning_execution.launch sim:=true limited:=true
- roslaunch ur5_moveit_config moveit_rviz.launch config:=true
3.執行真實機器人,關閉掉原來的終端,開啟新的終端,執行:
- roslaunch ur_bringup ur5_bringup.launch limited:=true robot_ip:=IP_OF_THE_ROBOT [reverse_port:=REVERSE_PORT]
- roslaunch ur5_moveit_config ur5_moveit_planning_execution.launch limited:=true
- roslaunch ur5_moveit_config moveit_rviz.launch config:=true
4.有時步驟3會出問題,建議使用ur_modern_driver替換掉ur_driver,下載地址:https://github.com/ThomasTimm/ur_modern_driver