Install RPLIDAR - Kraft2k/py_info_inv GitHub Wiki

sudo apt install ros-foxy-rplidar-ros

sudo apt install ros-humble-rplidar-ros

Launcn on Rover

ros2 launch rplidar_ros rplidar_a1_launch.py

Launch on Desktop

ros2 launch rplidar_ros view_rplidar_a1_launch.py

Run with parameters

ros2 run rplidar_ros rplidar_composition --ros-args -p serial_port:=/dev/ttyUSB0 -p frame_id:=laser_frame -p angle_compensate:=true

Call service /stop_motor

ros2 service call /stop_motor std_srvs/srv/Empty {}

Call service /start_motor

ros2 service call /start_motor std_srvs/srv/Empty {}