isaac_ros_nvblox icon indicating copy to clipboard operation
isaac_ros_nvblox copied to clipboard

bug fix, to ensure that the timestamp comparison works with rosbags.

Open dev10110 opened this issue 11 months ago • 0 comments

To get the latest transform, originally the code was

if (timestamp == rclcpp::Time(0) {
    ...
}

However, when using rclcpp::Time(0), it automatically sets the clock_type to RCL_SYSTEM_TIME but if we are using a rosbag, the messages are coming on clock_type RCL_ROS_TIME this means that the equality check fails. so instead, we explicitly construct a time that has the same clocktype as the timestamp

dev10110 avatar Jan 20 '25 01:01 dev10110