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

Connecting to a hokuyo laser separate from the robot

asked 2013-02-20 09:32:04 -0500

cf.morales46 gravatar image

updated 2014-01-28 17:15:20 -0500

ngrennan gravatar image


Im trying to connect to a hokuyo range finder that is connected to a pioneer p3dx robot. My problem is that the robot does not have an onboard computer I can access, so I usually connect to it using ip/port combination. I can connect to the robot using ROSARIA but when it comes to communicating with the laser, I'm not certain on how to provide the port to the hokuyo_node, because its not located on a local port (e.g /dev/....) but an external one (e.g ip/port)

I would really appreciate if someone could enlighten me on how to make this work.

Thanks in advance!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-05-20 10:40:13 -0500

Pranav Bhatkhande gravatar image


There is a problem with the hoyuko_node; it cannot support the ethernet devices yet. Instead use the urg_node (this supports ethernet) .. you can find it online

Install this node; after that connect the lidar via ethernet cable with your computer. You must ensure that you're on the same subnet as the LIDAR. (you can change this in the settings for your computer). For example, if you're lidar has the ip address, make sure your computer is set to something like

the launch the node as rosrun urg_node urg_node _ip_address:=""; it will start streaming data (again, if it does not, check your IP address). If you cannot find it in settings, you can change it manually in /etc/network/interfaces.

Then check using rostopic list .. you will see scans like /first /last and /most_intense.

After this, fire up rviz, set the fixed frame to /laser, add LaserScan and set its topic to /first etc..

Hope this helps


edit flag offensive delete link more

answered 2013-02-21 12:49:11 -0500

Claudio gravatar image

I suppose you're using something like an old Hokuyo UTM-30LX-EW (ethernet).

The hokuyo page says it should work with any SCIP 2.0 laser. Does your model use that protocol?

Since your laser is natively ethernet, you could try sourcing the original document and see if there is any hint at a way to get serial output (serial2tcp converter).

Otherwise you could look into using a standalone serial2tcp converter and see if the remote side is compatible (link1 link2 link3 link4 link5).

edit flag offensive delete link more

Question Tools



Asked: 2013-02-20 09:32:04 -0500

Seen: 1,457 times

Last updated: May 20 '13