Module ouster.sdk.sensor

ouster.sdk.sensor

exception ClientError
exception ClientTimeout
exception ClientOverflow
get_config()

Returns sensor config parameters as SensorConfig.

Parameters:
  • hostname (str) – hostname of the sensor

  • active (bool) – return active or staged sensor configuration

set_config()

Set sensor config parameters on sensor.

Parameters:
  • hostname (str) – hostname of the sensor

  • config (SensorConfig) – config to set sensor parameters to

  • persist (bool) – persist parameters after sensor disconnection (default = False)

  • udp_dest_auto (bool) – automatically determine sender’s IP at the time command was sent and set it as destination of UDP traffic. Function will error out if config has udp_dest member. (default = False)

  • force_reinit (bool) – forces the sensor to re-init during set_config even when config params have not changed. (default = False)

class SensorHttp
class SensorPacketSource

SensorPacketSource is a class for reading packet data from a sensor.

Examples

  • Reading packets from a sensor: SensorPacketSource(sensors, config_timeout, buffer_time)

Parameters:
  • sensors (List[Sensor]) – A list of sensors to read packets from.

  • config_timeout (float) – Timeout for sensor configuration in seconds.

  • buffer_time (float) – Buffer time for packet storage in seconds.

Returns:

An instance of the packet source for reading packets.

Return type:

SensorPacketSource

class SensorScanSource

ouster.sdk.sensor.util

Warning

Deprecated since version 0.15.0 build_sensor_config is deprecated: manually build the configuration or use the SensorScanSource instead. build_sensor_config will be removed in the upcoming release.

build_sensor_config(http_client, lidar_port=None, imu_port=None, do_not_reinitialize=False, no_auto_udp_dest=False)[source]

Depending on the args do_not_reinitialize, and no_auto_udp_dest determine a configuration for the sensor

Return type:

SensorConfig