ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Universal robot v3.x hardware_interface error

asked 2018-11-08 07:13:55 -0500

ricktiggelaar gravatar image

updated 2018-11-08 07:25:08 -0500

gvdhoorn gravatar image

Hello,

I'm trying to connected to a real UR5 robot. After following the tutorial I got the UR package ( https://github.com/ros-industrial/uni... ). In the tutorail it says that a robot with version higher than 3 needs another UR driver. I got that package ( https://github.com/ros-industrial/ur_... ). When I catkin_make, I got this error:

/home/ricktiggelaar/Documents/ROS/src/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/ricktiggelaar/Documents/ROS/src/ur_modern_driver/src/ur_hardware_interface.cpp:180:22: error: ‘const struct hardware_interface::ControllerInfo’ has no member named ‘hardware_interface’

Also when I run roslaunch ur_bringup ur5_bringup.launch robot_ip:=192.168.1.102

It does say connected to robot but when I echo /joint_state I don't get anything. It says something about the hardware interface. I'm running ROS Melodic on ubuntu 18.04. Does someone know what to do?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2018-11-08 07:26:36 -0500

gvdhoorn gravatar image

updated 2018-11-08 07:31:34 -0500

The master branch of ros-industrial/ur_modern_driver is not compatible with Melodic (not with Kinetic either).

You'll need to try the kinetic-devel branch.

Also:

Also when I run roslaunch ur_bringup ur5_bringup.launch robot_ip:=192.168.1.102

It does say connected to robot but when I echo /joint_state I don't get anything.

You cannot use ur_bringup with ur_modern_driver. ur_bringup will start the old version of the driver, which is not compatible with CB3 and newer controllers.

The launch files in ur_modern_driver/launch should be used.


Edit:

After following the tutorial I got the UR package [..]

that is not really tutorial btw. It's just the readme of the repository.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-11-08 07:13:55 -0500

Seen: 573 times

Last updated: Nov 08 '18