2018-01-02:Using UR robot with MoveIt

Getting Started with a Universal Robot and ROS-Industrial


universal_robot

  • This stack is part of the ROS-Industrial program. It currently contains packages that provide nodes for communication with Universal's industrial robot controllers, URDF models for various robot arms and associated MoveIt packages.

cd ~/Desktop/catkin_ws/src
git clone -b kinetic-devel https://github.com/ros-industrial/universal_robot.git
cd ..
# checking dependencies
rosdep install --from-paths src --ignore-src --rosdistro kinetic
catkin_make
source devel/setup.bash

Now we have build the package successfully.


Next step, if we want to use it on UR5/UR10 Robot entity , we have to do the following:

  • Firstly, we need tyo download ur_modern_driver
cd
git clone https://github.com/ThomasTimm/ur_modern_driver.git

Or you can download it directly from the repository and rename it with ur_modern_driver

編譯ur_modern_driver的時(shí)候出現(xiàn)錯(cuò)誤:

/home/liuqiang/Desktop/catkin_ur_robot/src/universal_robot/ur_modern_driver/src/ur_hardware_interface.cpp: In member function ‘bool ros_control_ur::UrHardwareInterface::canSwitch(const std::__cxx11::list<hardware_interface::ControllerInfo>&, const std::__cxx11::list<hardware_interface::ControllerInfo>&) const’:
/home/liuqiang/Desktop/catkin_ur_robot/src/universal_robot/ur_modern_driver/src/ur_hardware_interface.cpp:180:22: error: ‘const struct hardware_interface::ControllerInfo’ has no member named ‘hardware_interface’
   if (controller_it->hardware_interface

解決方法詳見修改后的源碼:
https://github.com/LiuQiangBlog/ur_modern_driver


?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容