Class M2M2Lidar

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

  • public rclcpp::Node

Class Documentation

class M2M2Lidar : public rclcpp::Node

Inheritance diagram for M2M2Lidar:

Collaboration diagram for M2M2Lidar:

ROS2 driver node for the M2M2 LIDAR sensor.

Handles communication with the M2M2 LIDAR sensor over TCP/IP, processes incoming data, and publishes LaserScan and IMU messages. The driver maintains the connection to the sensor and provides configuration capabilities.

Public Functions

explicit M2M2Lidar(const rclcpp::NodeOptions &options = rclcpp::NodeOptions())

Construct a new M2M2Lidar node.

Parameters:
const rclcpp::NodeOptions &options = rclcpp::NodeOptions()

Node options for ROS2 configuration

Throws:

std::runtime_error – If initialization fails

struct sensor_config_t

Configuration parameters for the M2M2 LIDAR sensor.

Public Members

double scan_frequency
double angular_resolution
double min_range
double max_range