ur_modern_driver: roslaunch is not working
Hi all,
please help me with this problem, I have been trying many things but no success:
I have ubuntu 16.04 and ROS kinetic (downloaded through steps). I created the catkin workspace (link).
Then in the catkin_ws/src I did:
git clone https://github.com/ros-industrial/ur_modern_driver.git
but then when I made catkin_make: it gave this final error: “Invoking “make -j2 -l2” failed” when I read the errors before it said:
"error: ‘const struct hardware_interface::ControllerInfo’ has no member named ‘hardware_interface’"
I tried to complete running the ur by: roscore (it works correct) and
roslaunch ur_modern_driver ur5_bringup.launch robot_ip:="
it gives this error:
"ERROR: cannot launch node of type [ur_modern_driver/ur_driver]: can't locate node [ur_driver] in package [ur_modern_driver]"
What should I do? Any help is appreciated.
Thanks in advance
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (10 by maintainers)
The detailed steps to work with ROS and UR (using ROS kinetic and ubuntu 16.04, or ROS indigo and ubuntu 14.04): (it may be obvious but it was a problem for me)
1- download ubuntu 16.04 (or ubuntu 14.04) http://releases.ubuntu.com/16.04.5/ (ubuntu-16.04.5-desktop-amd64.iso )
2- install ROS kinetic (or ROS indigo) http://wiki.ros.org/kinetic/Installation/Ubuntu (all the steps from 1.1 to 1.7, using Desktop-Full Install version)
3- source:
$ source /opt/ros/kinetic/setup.bash4- create catkin_ws (src), as:
$ source devel/setup.bash$ echo $ROS_PACKAGE_PATHshould gives: /home/youruser/catkin_ws/src:/opt/ros/kinetic/share5- write those:
6- then in new terminal:
roscore7- in another new terminal (pc ip: 10.1.1.5, robot ip: 10.1.1.4):
source catkin_ws/devel/setup.bashroslaunch ur_modern_driver ur5_bringup.launch robot_ip:=10.1.1.48- in another new terminal:
source devel/setup.bashrosrun ur_modern_driver test_move.py… note: in every new terminal you should ‘source devel/setup.bash’ or you can add that to a file:sudo nano ~/.bashrcgo to the end of it, you will find this line:source /opt/ros/indigo/setup.bashafter it you should add this line:source ~/catkin_ws/devel/setup.bashpress ctrl+o to save and press enter then ctrl+x to exit
close the terminal then open it again …
Thanks for @gavanderhoorn and @miguelprada for their help.
Also, if you follow the steps in your last comment, @BigHopes, the
catkin_makein step 6 must’ve failed. You should switch tokinetic-develbranch in ur_modern_driver for the driver to build succesfully against ROS kinetic.TL;DR;
5.5 Switch to kinetic-devel branch: