Open gavanderhoorn opened 1 year ago
I believe it's due to the conditional used:
this checks whether the Agent is connected (g_Ros_Communication_AgentIsConnected
), but it's likely MotoROS2 hasn't had a chance yet to sync time with the Agent leading to rmw_uros_epoch_nanos()
to still return 0
.
Perhaps a fallback could be added to use clock_gettime(..)
not just when the Agent hasn't connected yet, but also when rmw_uros_epoch_nanos()
returns 0
?
Minor, but the very first debug listener message received after MotoROS2 connects to the Agent has an all-zeros timestamp associated with it:
Everything before and after that is OK.