This ROS package launches a nodelet that converts pointcloud data to laser scan data. It is based on the code from pointcloud_to_laserscan but improved in the sense that the max height of the point cloud is obtained dynamically taking into account the height og the robot.
The main launch file for this package is sample_nodelet.launch. Below is a brief description of its contents:
pointcloud_to_laserscan: This nodelet is loaded into the sensor's nodelet manager. It converts pointcloud data to laser scan data.
target_frame: The frame to which the scan should be transformed. Default iscamera_link.min_frame: The frame corresponding to the minimum height of the robot. Default isbase_link.max_frame: The frame corresponding to the maximum height of the robot. Default ishead2_link.transform_tolerance: The tolerance for the transform. Default is0.01.min_height: The minimum height for the points to be considered. Default is0.0.max_height: The maximum height for the points to be considered if no frame is inserted on min_frame and max_frame. Default is1.0.angle_min: The minimum angle for the scan. Default is-1.5708(i.e., -π/2).angle_max: The maximum angle for the scan. Default is1.5708(i.e., π/2).angle_increment: The angle increment for the scan. Default is0.0087(i.e., π/360).scan_time: The time between scans. Default is0.3333.range_min: The minimum range for the scan. Default is0.45.range_max: The maximum range for the scan. Default is4.0.use_inf: Whether to use infinity for out-of-range values. Default istrue.inf_epsilon: The epsilon value for infinity. Default is1.0.concurrency_level: The concurrency level for processing pointclouds. Default is1.
To launch the nodelet, use the following command:
roslaunch pointcloud_to_laserscan sample_nodelet.launchThis project is licensed under the MIT License - see the LICENSE file for details.