Krishtof-Korda / pcap-to-bag

Tool to convert ouster lidar sensor pcap files into rosbag files for use in ouster_example/ouster_ros
49 stars 12 forks source link

Ouster pcap to rosbag tool

This tool converts Ouster pcaps to rosbags containg only the packets in the /os_node/lidar_packets and /os_node/imu_packets topics.

If you would like PointCloud2 msgs you will need to run the resulting bagfile through the ouster_ros node and record the /os_cloud_node/points topic.

Requirements

Install requirements prior to building using the command below.

 sudo apt install libpcap-dev libtins-dev

Building

You will create a new catkin workspace and link both the ouster_example and pcap-to-bag code repos. The code repos can live anywhere on your machine, just make sure to use absolute paths like /home/user/pcap-to-bag and do not use relative paths such as ~/pcap-to-bag

NOTE: You must use ouster_example at tag 20210608

Running