Class OS1Sensor

Inheritance Relationships

Base Type

Class Documentation

class OS1Sensor : public ros2_ouster::SensorInterface

Public Functions

OS1Sensor()
~OS1Sensor() override
virtual void reset(const ros2_ouster::Configuration &config) override

Reset lidar sensor.

Parameters:

configuration – file to use

virtual void configure(const ros2_ouster::Configuration &config) override

Configure lidar sensor.

Parameters:

configuration – file to use

virtual ros2_ouster::Metadata getMetadata() override

Get lidar sensor’s metadata.

Returns:

sensor metadata struct

virtual ros2_ouster::ClientState get() override

Ask sensor to get its current state for data collection.

Returns:

the state enum value

virtual uint8_t *readPacket(const ros2_ouster::ClientState &state) override

reading the packet corresponding to the sensor state

Parameters:

state – of the sensor

Returns:

the packet of data