Class ImageProcessor

Inheritance Relationships

Base Type

Class Documentation

class ImageProcessor : public ros2_ouster::DataProcessorInterface

A data processor interface implementation of a processor for creating range, intensity, and noise images in the driver in ROS2.

Public Functions

inline ImageProcessor(const rclcpp_lifecycle::LifecycleNode::SharedPtr node, const ouster::sensor::sensor_info &mdata, const std::string &frame, const rclcpp::QoS &qos, const ouster::sensor::packet_format &pf, std::shared_ptr<sensor::FullRotationAccumulator> fullRotationAccumulator)

A constructor for sensor::ImageProcessor.

Parameters:
  • node – Node for creating interfaces

  • mdata – metadata about the sensor

  • frame – frame_id to use for messages

inline ~ImageProcessor()

A destructor clearing memory allocated.

inline void generate_images(const std::chrono::nanoseconds timestamp, const uint64_t override_ts)
inline virtual bool process(const uint8_t *data, const uint64_t override_ts) override

Process method to create images.

Parameters:

data – the packet data

inline virtual void onActivate() override

Activating processor from lifecycle state transitions.

inline virtual void onDeactivate() override

Deactivating processor from lifecycle state transitions.