ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Convert network Lidar data to LaserScan

asked 2016-03-15 12:21:29 -0500

andythepandy93 gravatar image

Hi there!

I am trying to stream data back from my Parrot AR Drone 2.0, which has a LIDAR attached, to my PC (which has ROS running) in order to run Hector Slam.

I currently have code running on the quad which is reading the Lidar (connected to the USB port on the quad) data and streaming this to my PC using netcat. This is all working well and I can see the data coming in on my desktop. I now need a way to listen to this data and convert it into the LaserScan messages that Hector Slam uses.

I am very new to ROS and although have learnt a lot already, I do not know how to do this and can't seem to find any similar posts made here. I may well just be searching for the wrong things but any help would be greatly appreciated!

Cheers, Andy

PC - Ubuntu 14.04 AR Drone - BusyBox I think

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-16 02:00:35 -0500

mgruhler gravatar image

Well, you would need to write a driver listening to the network stream and publishing the lidar data as a LaserScan message.

Basically, this is a simple program (ROS node), that reads this data, puts it in a member of the type sensor_msgs::LaserScan, publishes this data, and this is it.

Check out this question here about writing hardware drivers....

edit flag offensive delete link more


Great, thanks for the info. Will give that a read

andythepandy93 gravatar image andythepandy93  ( 2016-03-16 13:51:32 -0500 )edit

Is there a way to listen to stdin in ROS or somehow otherwise pipe into a node, so that I can let netcat deal with receiving the data and just let the node convert it into the LaserScan format?

andythepandy93 gravatar image andythepandy93  ( 2016-03-16 16:00:53 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-03-15 12:21:29 -0500

Seen: 257 times

Last updated: Mar 16 '16