The source project of this merge request has been removed.
Fix time error in autoware_health_checker
Fixed bug
Fix for node death behavior due to time calculation.
Required information:
- Operating system and version:
- Ubuntu 16.04
- Autoware installation type:
- From source
- Autoware version or commit hash
- latest common(d0fd0c48)
- ROS distribution and version:
- Kinetic
- ROS installation type:
- From binaries(apt)
- Package or library, if applicable:
- especially, the node using
health_checker
- especially, the node using
Description of the bug
If the following conditions occur in combination, the node stops with an error.
- use_sim_time = true
- When clock is not output
- health_checker's CHECK function is called
Fix applied
The cause of the error is that unsigned type subtract (0 - n).
In this MR, this problem is solved by switching the subtraction part to addition.
Edited by Yuma Nihei