ouster-lidar / ouster-sdk

Ouster, Inc. sample code
Other
468 stars 439 forks source link

.rosbag to .pcap #107

Closed palomacf15 closed 2 years ago

palomacf15 commented 5 years ago

I'm using Ouster Studio so I want to convert my own rosbag to .pcap files to examinate it in that program. Can it be posible?

wangzhensuo commented 4 years ago

I have the same question. only find method to get pcd file from bag,and didnot find how to get pcap file from bag. rosrun pcl_ros bag_to_pcd my.bag /points_raw pcd/

sam-rke commented 3 years ago

Hi @pcarrascof , @wangzhensuo , @dgarbuzov !! do you guys find how to convert .bag file to .pcap file. I can fine how to get a .bag file but I am stuck at .pcap generation, any help would be grateful. I just need to know if i can save .pcap with this ouster examples. Thanks

wangzhensuo commented 3 years ago

@sam-rke hi, I also meet the same problem while importing pcap file to matlab. search for a long time on internet, did not find related method.it seems no way. one .bag file can generate several pcd files, but one pcap file contains several pointcloud iamg. maybe need some formula to transfer. I don't have hardware sensor,it seems pcap file could be got from sensor directly.

sam-rke commented 3 years ago

HI @wangzhensuo actually pcap can be generated from Ouster Studio (as per Ouster Guidline) I'll be looking into it as I'll be getting Ouster Lidar soon. I am just stuck in

  1. How to capture .pcap with ouster driver code as it capture .bag file?
  2. How to convert .bag file to .pcap with code/library only?

Hope for the best. Thankyou

kairenw commented 2 years ago

Hi @sam-rke, just so you know: the Python SDK records .pcap files, as shown in this example. If you have other questions,

Providing bag to pcap functionality is pretty low on our list of features, so I'm marking this as won't do. Given that most of the requests in this thread desired bag to pcap so that people could use Ouster Studio to examine their data, I would recommend checking out Python SDK if you don't need bags. If you need to record bag data, but also need it in pcap format, you can always use tcpdump to record pcaps while recording the bags. Hope that helps!