Develop Universal Robot (UR) in ROS: From Install to Demo
来源:互联网 发布:three.js 全景图切换 编辑:程序博客网 时间:2024/06/05 06:22
OS: Ubuntu 16.04.02 LTS x64
ROS: Kinetic
Robot: UR5
- Download Source Codes
- Download universal_robot source codes
- Download ros_control package
- Download ur_modern_driver
- Replace the file ur_hardware_interfacecpp
- Run a Demo
Download Source Codes
To begin with, create a new workspace or jump to your workspace.
mkdir -p ur_ws/srccd src
Download universal_robot source codes
You can download the source codes here.
git clone https://github.com/ros-industrial/universal_robot.git
This step may take some time.
Download ros_control package
The ros_control package is necessary when run your codes in a real hardware. To install it you can follow this website. Basic steps are given:
sudo apt-get install ros-kinetic-ros-control ros-kinetic-ros-controllerscd ur_ws/srcwstool initwstool merge https://raw.github.com/ros-controls/ros_control/kinetic-devel/ros_control.rosinstallwstool updatecd ..rosdep install --from-paths . --ignore-src --rosdistro kinetic -y
Download ur_modern_driver
There is a package named ur_driver in package universal_robot. However, it is of no use currently. The ur_modern_driver is the essential alternative. You can download it here.
cd src/universal_robotgit clone https://github.com/ThomasTimm/ur_modern_driver
Replace the file ur_hardware_interface.cpp
In Kinetic devel, there is also a small bug existing when build the workspace. To fix it, what you need to do is just replace the ur_hardware_interface.cpp with this one of the same name:
git clone https://github.com/philthinker/ur_hardware_interface
Finally, build it:
cd ../..catkin_makesource devel/setup.bash
Run a Demo
We focus on the simulation setup only. A demo is given by the source codes.
To bring up the simulated robot in Gazebo, run:
roslaunch ur_gazebo ur5.launch
For setting up the MoveIt! nodes to allow motion planning run:
roslaunch ur5_moveit_config ur5_moveit_planning_execution.launch sim:=true
For starting up RViz with a configuration including the MoveIt! Motion Planning plugin run:
roslaunch ur5_moveit_config moveit_rviz.launch config:=true
For efficiency, you can alternatively run:
roslaunch ur_gazebo ur5.launch limited:=trueroslaunch ur5_moveit_config ur5_moveit_planning_execution.launch sim:=true limited:=trueroslaunch ur5_moveit_config moveit_rviz.launch config:=true
There is also a simple demo:
roslaunch ur5_moveit_config demo.launch
- Develop Universal Robot (UR) in ROS: From Install to Demo
- ROS: How to develop catkin packages from an IDE
- Working tutorial to install AIR native extensions in Flash Develop 4
- in salesforce how to run batch from develop console and schedule job apex job
- Develop ROS in MATLAB (Matlab Robotics Toolkit): Hello_world
- Develop Leap Motion in ROS Kinetic: Hello World
- How to develop TTS applicaiton in C#
- Develop Leap Motion in Ubuntu 16.04.02 LTS: SDK install
- Edison install ROS in two method
- ROS No transform from [sth] to [sth]
- move the ur robot based on urscript
- How to install Java 3d robot simulator
- ROS install
- to install perl in eclipse
- Unable to install breakpoint in...
- Unable to install breakpoint in
- Google to Android Developers: 'Do Not Develop in the Open'
- how to develop programs in linux(cs50 appliance)?
- Vmware vRealize Autostation 蓝图简介
- 使用jQuery实现Ajax
- 5.依赖倒转原则
- 快速排序的三种实现方式以及非递归版本
- 个人学习总结的部分java小知识与面试题(三)
- Develop Universal Robot (UR) in ROS: From Install to Demo
- python virtualenv activate文件分析
- 6.装饰模式
- Java中递归实现复制文件夹和文件
- PHP解决网页乱码问题
- Java注解自定义注解
- 马农???(穷举+哈希)
- Android应用开发的基本流程
- log4j学习demo