SICKAG / sick_scan_xd

Based on the sick_scan drivers for ROS1, sick_scan_xd merges sick_scan, sick_scan2 and sick_scan_base repositories. The driver supports both Linux (native, ROS1, ROS2) and Windows (native and ROS2).
Apache License 2.0
101 stars 84 forks source link

Inconsistent time_increment Value Reported by TiM571 #293

Closed Samaleke closed 6 months ago

Samaleke commented 6 months ago

Description:

I am using the sick_scan package with a laser scanner in a ROS environment. I've encountered a warning indicating that the time_increment, scan_time, and angle_increment values reported by the scanner are inconsistent. Specifically, the time_increment reported by the scanner does not match the expected value based on the scan_time and angle_increment values.

Environment:

ROS Version: Humble Operating System: Ubuntu 22.04.3 LTS

Expected Behavior:

The time_increment value should align with the expected calculation based on the scan_time and angle_increment values, ensuring accurate interpretation of scan data.

Actual Behavior:

The scanner reports a time_increment of 6.17284e-05 seconds, while the expected value, based on the given scan_time (0.0666667 seconds) and angle_increment (assuming 1 degree), is 0.000185185 seconds. This discrepancy results in the following warning message being logged every 60 seconds:

[sick_generic_caller-16] [WARN] [1710155625.809639102] [sick_scan]: The time_increment, scan_time and angle_increment values reported by the scanner are inconsistent! Expected time_increment: 0.000185185, reported time_increment:6.17284e-05 (time_increment=6.17284e-05, scan_time=0.0666667, angle_increment=1). Perhaps you should set the parameter time_increment to the expected value. This message will print every 60 seconds.

rostest commented 6 months ago

Thanks for your feedback. Did you use the latest sick_scan_xd release 3.2? The package name [sick_scan] in the warning indicates an outdated version. Please update to the latest sick_scan_xd release and rebuild as described in https://github.com/SICKAG/sick_scan_xd/blob/develop/INSTALL-ROS2.md