ouster-lidar / ouster_example

Ouster, Inc. sample code
Other
451 stars 434 forks source link

PythonSDK - Recording unknown number of packets #537

Open L-Reichardt opened 12 months ago

L-Reichardt commented 12 months ago

Hello,

I am trying to use the SDK to record .pcap files. The documentation example only considers a finite amount of packets. This makes .pcap.record impractical. In my application I am recording to an unknown amount of time (2h +), so the amount of packets is not know beforehand, and memory is a constraint. Is this possible through the PythonSDK or should I use different software - preferably a solution using ROS that outputs .pcap

Best Regards, L

kairenw commented 12 months ago

Have you tried the ouster-cli utility?

I'd recommend checking out the help menu (ouster-cli source <SENSOR_HOSTNAME> record --help) to figure out all the options you can use

twslankard commented 11 months ago

@L-Reichardt

To add to kairenw's answer, the ouster-cli pcap record command has an option -s, --n-seconds FLOAT max time to record which provides a way to record a PCAP of a certain length, in seconds.