ROS package designed for processing 2D Lidar data. It includes functionality for smoothing laser scan data and detecting the closest object within a specified field of view (FOV).
- Dynamic Reconfiguration: Adjust parameters like center offset, FOV, and range limits on the fly
- Smoothed Laser Scan: Optionally publishes a smoothed version of the incoming laser scan data
- Closest Object Detection: Identifies and publishes the distance to the closest object within the specified FOV
This package depends on the following ROS packages:
- ROS Noetic on Ubuntu 20.04
- Hokuyo URG Node
- Compatible LiDAR (Tested with Hokuyo URG-04LX-UG01 and UTM-30LX)
Clone the repository into your ROS workspace:
cd ~/catkin_ws/src
git clone <repository-url> actor_lidarMake sure the Python file is executable:
chmod +x ~/catkin_ws/src/actor_lidar/scripts/Lidar2D_node.pyBuild the package:
cd ~/catkin_ws
catkin build actor_lidar
source devel/setup.bashLaunch the Lidar processing node using the provided launch file:
roslaunch actor_lidar Lidar2D.launchserial_port(default: /dev/ttyACM0): Serial port of the Lidarframe_id(default: laser): Frame ID for the Lidar dataoutput_smoothed_scan(default: False): Whether to publish the smoothed scan data
center_offsetOffset (degrees) direction from the front centerfield_of_viewField of view (degrees) used for closest object detectionmin_rangeMinimum range (m) for detectionmax_rangeMaximum range (m) for detection
scan(sensor_msgs/LaserScan): The incoming laser scan data. (in the same namespace as the node)
closest_object(std_msgs/Float64): The distance to the closest detected object within the FOVsmoothed_scan(sensor_msgs/LaserScan, optional): The smoothed laser scan data
Devson Butani - Package Updated: 2024
For older versions, checkout an older branch