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

How to install hokuyo_node/urg_node on kinetic?

asked 2016-09-07 00:03:08 -0600

Shay gravatar image

updated 2016-09-08 02:37:08 -0600

Hi,

I bought a Hokuyo URG-04LX-UG01 lidar today, but I can't use it with ROS kinetic.

Untill now hokuyo_node wiki still doesn't have a kinetic release. The newest release is for jade.

So I tried to install hokuyo_node from source. Firstly I cloned hokuyo_node source from github to my local directory ~/catkin_ws/src. Then I did catkin_make. The result is as follow:

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
Could not find a package configuration file provided by "driver_base" with
any of the following names:

driver_baseConfig.cmake
driver_base-config.cmake

Add the installation prefix of "driver_base" to CMAKE_PREFIX_PATH or set
"driver_base_DIR" to a directory containing one of the above files.  If
"driver_base" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
hokuyo_node/CMakeLists.txt:13 (find_package)


-- Could not find the required component 'driver_base'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "driver_base" with
any of the following names:

driver_baseConfig.cmake
driver_base-config.cmake

Add the installation prefix of "driver_base" to CMAKE_PREFIX_PATH or set
"driver_base_DIR" to a directory containing one of the above files.  If
"driver_base" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
hokuyo_node/CMakeLists.txt:13 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/shay/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/shay/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

It seems that I need the driver_base package. But kinetic doesn't have a driver_base. As driver_base had been deprecated.

Is there anyone uses hokuyo lidar on Kinetic? Any help would be appreciated, Thx. :)


EDIT

Thanks to @130s, I tried urg_node just now. urg_node also hasn't been released to Kinetic, So I tried to intall it from source. I cloned urg_node source from github to my local directory ~/catkin_ws/src. Then I did catkin_make. The result is as follow:

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "urg_c" with any of
  the following names:

    urg_cConfig.cmake
    urg_c-config.cmake

  Add the installation prefix of "urg_c" to CMAKE_PREFIX_PATH or set
  "urg_c_DIR" to a directory containing one of the above files.  If "urg_c"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  urg_node/CMakeLists.txt:7 (find_package)


-- Could not find the required component 'urg_c'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "urg_c" with any of ...
(more)
edit retag flag offensive close merge delete

Comments

I also had to clone and build laser_proc and urg_c packages

cd ~/catkin_ws/src
git clone https://github.com/ros-perception/laser_proc.git
git clone https://github.com/ros-dirvers/urg_c.git
cd ..
catkin_make
KevinNickels gravatar image KevinNickels  ( 2017-05-11 14:46:12 -0600 )edit

@KevinNickels, there is a typo in the repo clone link, should be:

git clone https://github.com/ros-drivers/urg_c.git

kasptom gravatar image kasptom  ( 2019-05-22 19:16:14 -0600 )edit

5 Answers

Sort by ยป oldest newest most voted
3

answered 2016-09-08 02:16:25 -0600

You will need to install and compile driver_base from sources too

git clone https://github.com/ros-drivers/driver_common.git

First compile driver_common and then you should be able to compile hokuyo_node

edit flag offensive delete link more

Comments

1

Yeah, I make it! Thanks a lot.

Shay gravatar image Shay  ( 2016-09-08 02:26:58 -0600 )edit
1

answered 2016-09-08 01:08:58 -0600

130s gravatar image

These days the hokuyo_node wiki page recommends urg_node package. And it's still true that urg_node hasn't been released into Kinetic, for which I requested.

One advantage despite it's the probably more maintained package with more updates, urg_node is BSD while hokuyo_node is LGPL.

edit flag offensive delete link more

Comments

Thanks, I tried urg_node and edit and question. It seems that I have to go back to jade temporarily and wait for urg_node and hokuyo_node to release to Kinetic.

Shay gravatar image Shay  ( 2016-09-08 02:18:30 -0600 )edit
0

answered 2016-09-07 21:46:50 -0600

kennedywai gravatar image

They skipped the Kinetic edition. http://wiki.ros.org/hokuyo_node

edit flag offensive delete link more

Comments

They didn't skip Kinetic, but haven't update to the newest distro Kinetic. My question is how can I use it in my Kinetic as I said. Thanks.

Shay gravatar image Shay  ( 2016-09-08 00:45:19 -0600 )edit

I CAN'T use my UST-10LX in the Kinetic neithet with hoyuko_node nor urg_node.error is:cannot open the Ethernet.the IP are both 192.168.0.11 in both launch file and computering.it is ok in ros indigo,but Kinetic doesn't work.

yueweiliang gravatar image yueweiliang  ( 2016-11-02 09:12:31 -0600 )edit
0

answered 2018-09-07 04:16:57 -0600

lzheng gravatar image

I am pretty new to ROS and i also use the kinetic version. Did anyone succeed in using Hokuyo on ROS Kinetic ?

edit flag offensive delete link more

Comments

Please open a new question instead of asking a question in an answer section (that's not how this forum is designed. Your question wouldn't get much attention by doing this).

130s gravatar image 130s  ( 2018-09-08 17:24:04 -0600 )edit
0

answered 2019-04-26 12:56:56 -0600

  1. cd ~/catkin_ws/src
  2. git clone https://github.com/ros-drivers/hokuyo...
  3. cd ~/catkin_ws && catkin_make

#if have error -- Install dependency of all packages in the workspace

  1. rosdep install --from-paths src --ignore-src -r -y
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-09-07 00:03:08 -0600

Seen: 14,150 times

Last updated: Sep 08 '16