ouster-lidar / ouster-sdk

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

auto_start_flag has been deprecated even though I'm not setting it myself. #545

Closed Perceval62 closed 1 year ago

Perceval62 commented 1 year ago

Describe your question I've got an OS-2 sensor. I'm making a capture program using the Python sdk. Everything works as expected on my main computer x86-64 but I'm having weird errors with my jetson nano (arm64). I have spent considerable time looking into the docs and examples but fail to see other instantiation methods that could work instead.

In this case, the program fails when instantiating the sensor.


# snip

 if __name__ == "__main__":
     # Set the Ouster OS2 sensor's hostname or IP address
     signal.signal(signal.SIGINT, signal_handler)
     hostname = "os-992135000258.local"

     config = client.SensorConfig()
     config.udp_port_lidar = 7502
     config.udp_port_imu = 7503
     config.operating_mode = client.OperatingMode.OPERATING_NORMAL
     #client.set_config(hostname, config, persist=True, udp_dest_auto=True)
     client.set_config(hostname, config)
     source = client.Sensor(hostname, 7502, 7503)
     metadata = source.metadata

     log("Initialisation Complete")

     stream=client.Scans(source, complete=True)

#snip

And this snippet of code fails with the following stack trace:

Traceback (most recent call last):
  File "Lidar.py", line 73, in <module>
    client.set_config(hostname, config)
ValueError: Error on 'set_config_param': error: parameter 'auto_start_flag' has been deprecated.

Platform (please complete the following information): OS-2 sensor. arm64 jetson x86-64

Perceval62 commented 1 year ago

Forgot to mention that these snippets are very much inspired by the docs. link

Perceval62 commented 1 year ago

Fixed the issue myself, Turns out I missed the disclaimer saying the driver must run with python3.7. By default jetson nano ships with another version. I no longer get this problem now.