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

Velodyne VLP16 RAW data to Rosbag conversion Error -2

asked 2021-09-22 09:19:59 -0500

risc-v gravatar image

Hello everyone,

I am trying to convert a raw Velodyne VLP16 .pcap file to Rosbag but I am getting stuck in the first step. Basically, I run the following command:

$ roslaunch velodyne_pointcloud VLP16_points.launch pcap:=$(pwd)/velodyne_lidar.pcap readonce:=true

Then when I try to see the published information at /velodyne_points "rostopic echo /velodyne_points" is not printing anything. I am getting the following warning --> Error -2 reading Velodyne packet

Picture

Has anyone ever experienced this issue? Thanks in advance.

edit retag flag offensive close merge delete

Comments

1

If you try this command using your own filename, do you see any messages on /scan?

rosrun velodyne_driver velodyne_node _pcap:=dump.pcap

Note: this is rosrun, not roslaunch, so the underscore in front of pcap indicates it's a private parameter, not a topic name remap.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-09-23 06:59:34 -0500 )edit

Hi Mike,

Thanks very much for your reply. I tried the command you suggested but I am still getting the same error --> [ WARN] [1632399476.053965374]: Error -2 reading Velodyne packet.

I tried other .pcap files from the internet and they work perfectly meaning that I see data output on /velodyne_points. I tried to filter packets on the .pcap files giving me the -2 error (I used Wireshark for that, mainly keeping UDP packets), but still not working and giving the same error. Any ideas? Thanks in advance.

risc-v gravatar image risc-v  ( 2021-09-23 07:31:21 -0500 )edit
1

Sounds like it is that specific pcap file. In wireshark, I would check the destination port number in the udp header. I believe the driver expects it to be 2368. If your file has something different, you have to specify it on the command line.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-09-23 10:51:29 -0500 )edit

Hi Mike,

That worked perfectly Thanks very much. Really appreciate it :)

risc-v gravatar image risc-v  ( 2021-09-24 04:59:41 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-09-24 07:31:51 -0500

Mike Scheutzow gravatar image

updated 2021-09-24 07:33:47 -0500

Sounds like this problem is specific to one pcap file. In wireshark, I would check the destination port number in the udp header. I believe the driver expects it to be 2368. If your file has something different, you have to specify it on the command line.

I guess we now know that -2 means "no data packets found".

edit flag offensive delete link more

Comments

Hi Mike,

That's great. Changing the port number on the command line worked like a charm. All packets are visible now. Thanks again. Really appreciate it :)

risc-v gravatar image risc-v  ( 2021-09-24 09:08:08 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-09-22 09:17:34 -0500

Seen: 176 times

Last updated: Sep 24 '21