ouster-lidar / ouster-sdk

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

xavier agx - cannot record pcap #359

Closed Leonel-Romero closed 2 years ago

Leonel-Romero commented 2 years ago

We are trying to get the ouster-sdk example to record pcap files on a jetson board.

The installation seems to work. We have tried both in and out of a virtual environment. When we run "python3 -m ouster.sdk.examples.client $SENSOR_HOSTNAME record-pcap" python connects to the sensor and creates configuration json but then it times out.

See output below, which to us is not very helpful. We are able to run the examples with both the c and ros. Any help would be much appreciated. We did notice that both the c and ros examples take some time to get started, whereas python times out after 1s.

example: record-pcap WARNING: No lidar profile found. Saving sensor metadata to: OS-1-128_122109000759_1024x10_20220310_185417.json Writing to: OS-1-128_122109000759_1024x10_20220310_185417.pcap (Ctrl-C to stop early) Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/leromero/.local/lib/python3.6/site-packages/ouster/sdk/examples/client.py", line 305, in main() File "/home/leromero/.local/lib/python3.6/site-packages/ouster/sdk/examples/client.py", line 301, in main example(args.hostname) # type: ignore File "/home/leromero/.local/lib/python3.6/site-packages/ouster/sdk/examples/client.py", line 259, in record_pcap n_packets = pcap.record(source_it, f"{fname_base}.pcap") File "/home/leromero/.local/lib/python3.6/site-packages/ouster/pcap/pcap.py", line 330, in record for packet in packets: File "/home/leromero/.local/lib/python3.6/site-packages/more_itertools/more.py", line 3281, in next item = next(self._iterable) File "/home/leromero/.local/lib/python3.6/site-packages/ouster/client/core.py", line 218, in iter self.flush(full=True) File "/home/leromero/.local/lib/python3.6/site-packages/ouster/client/core.py", line 263, in flush f"No packets received within {self._timeout}s") ouster.client.core.ClientTimeout: No packets received within 1.0s

kairenw commented 2 years ago

Hi @Leonel-Romero,

This error is a symptom of a variety of networking issues, so bear with me as we cross out the easy answers. Have you checked that the ports are configured properly, and the udp_dest is set properly? You can do that by using the sensor's homepage (http://.local) or using python3 -m ouster.sdk.examples.client $SENSOR_HOSTNAME configure-sensor.

It'd also help to know how your sensor is connected to your Jetson

Leonel-Romero commented 2 years ago

Thanks for the reply. We checked the configuration and looked fine. ran: sudo apt upgrade After rebooting it works fine now. We can record pcap files.

Thanks again.

kairenw commented 2 years ago

Great! I'm so glad. Will close out the ticket now.

bdytx5 commented 1 year ago

seems like having ouster studio open and conncected to the sensor while running python commands can cause this