Skip to content

Class nebula::drivers::RobosenseInfoDecoder

template <typename SensorT>

ClassList > nebula > drivers > RobosenseInfoDecoder

  • #include <robosense_info_decoder.hpp>

Inherits the following classes: nebula::drivers::RobosenseInfoDecoderBase

Public Functions

Type Name
RobosenseInfoDecoder ()
Constructor.
virtual ReturnMode getReturnMode () override
Get the laser return mode.
virtual RobosenseCalibrationConfiguration getSensorCalibration () override
Get sensor calibration.
virtual std::map< std::string, std::string > getSensorInfo () override
Get the sensor telemetry.
virtual bool getSyncStatus () override
Get the status of time synchronization.
virtual bool parsePacket (const std::vector< uint8_t > & raw_packet) override
Validates and parses DIFOP packet. Currently only checks size, not checksums etc.

Public Functions inherited from nebula::drivers::RobosenseInfoDecoderBase

See nebula::drivers::RobosenseInfoDecoderBase

Type Name
RobosenseInfoDecoderBase (RobosenseInfoDecoderBase && c) = delete
RobosenseInfoDecoderBase (const RobosenseInfoDecoderBase & c) = delete
RobosenseInfoDecoderBase () = default
virtual ReturnMode getReturnMode () = 0
Get the laser return mode.
virtual RobosenseCalibrationConfiguration getSensorCalibration () = 0
Get sensor calibration.
virtual std::map< std::string, std::string > getSensorInfo () = 0
Get the sensor telemetry.
virtual bool getSyncStatus () = 0
Get the status of time synchronization.
RobosenseInfoDecoderBase & operator= (RobosenseInfoDecoderBase && c) = delete
RobosenseInfoDecoderBase & operator= (const RobosenseInfoDecoderBase & c) = delete
virtual bool parsePacket (const std::vector< uint8_t > & raw_packet) = 0
Parses DIFOP and add its telemetry.
virtual ~RobosenseInfoDecoderBase () = default

Protected Attributes

Type Name
rclcpp::Logger logger_
SensorT::info_t packet_ = {}
The last decoded packet.
SensorT sensor_ = {}
The sensor definition, used for return mode and time offset handling.

Public Functions Documentation

function RobosenseInfoDecoder

inline nebula::drivers::RobosenseInfoDecoder::RobosenseInfoDecoder () 

function getReturnMode

Get the laser return mode.

inline virtual ReturnMode nebula::drivers::RobosenseInfoDecoder::getReturnMode () override

Returns:

The laser return mode

Implements nebula::drivers::RobosenseInfoDecoderBase::getReturnMode


function getSensorCalibration

Get sensor calibration.

inline virtual RobosenseCalibrationConfiguration nebula::drivers::RobosenseInfoDecoder::getSensorCalibration () override

Returns:

The sensor calibration

Implements nebula::drivers::RobosenseInfoDecoderBase::getSensorCalibration


function getSensorInfo

Get the sensor telemetry.

inline virtual std::map< std::string, std::string > nebula::drivers::RobosenseInfoDecoder::getSensorInfo () override

Returns:

The sensor telemetry

Implements nebula::drivers::RobosenseInfoDecoderBase::getSensorInfo


function getSyncStatus

Get the status of time synchronization.

inline virtual bool nebula::drivers::RobosenseInfoDecoder::getSyncStatus () override

Returns:

True if the sensor's clock is synchronized

Implements nebula::drivers::RobosenseInfoDecoderBase::getSyncStatus


function parsePacket

Validates and parses DIFOP packet. Currently only checks size, not checksums etc.

inline virtual bool nebula::drivers::RobosenseInfoDecoder::parsePacket (
    const std::vector< uint8_t > & raw_packet
) override

Parameters:

Returns:

Whether the packet was parsed successfully

Implements nebula::drivers::RobosenseInfoDecoderBase::parsePacket


Protected Attributes Documentation

variable logger_

rclcpp::Logger nebula::drivers::RobosenseInfoDecoder< SensorT >::logger_;

variable packet_

SensorT::info_t nebula::drivers::RobosenseInfoDecoder< SensorT >::packet_;

variable sensor_

SensorT nebula::drivers::RobosenseInfoDecoder< SensorT >::sensor_;


The documentation for this class was generated from the following file nebula_decoders/include/nebula_decoders/nebula_decoders_robosense/decoders/robosense_info_decoder.hpp