Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

According to the pointcloud_to_laserscan README on GitHub, the scan_time parameter in your launch file no functional effect; it just adds that value to the outgoing scan message:

scan_time (double, default: 1.0/30.0) - The scan rate in seconds. Used to populate the output laser scan.

Indeed, the source code only uses the parameter once after declaring it--to populate the message field:

scan_msg->scan_time = scan_time_;

According to the pointcloud_to_laserscan README on GitHub, the scan_time parameter in your launch file has no functional effect; it just adds that value to the outgoing scan message:

scan_time (double, default: 1.0/30.0) - The scan rate in seconds. Used to populate the output laser scan.

Indeed, the source code only uses the parameter once after declaring it--to populate the message field:

scan_msg->scan_time = scan_time_;