open-rmf/rmf-web

After setting "use_sim_time" to false, the robot receives a way with no waypoints

liugehaizaixue opened this issue · 1 comments

Bug report

Required information:

  • OpenRMF installation type:
    • Ubuntu 20.04
  • OpenRMF version or commit hash
    • main
  • ROS distribution and version:
    • galactic

Description of the bug

After setting "use_sim_time" to false, the robot receives a way with no waypoints.
When using use_ sim_ time, The default time of time is 1970, so I want to use the current time to execute tasks. I set use_sim_ time to false in launch.xml . Although the time for submitting the task is the same as the reality, my task will get stuck during the execution, and the robot will receive a path with no waypoints.Does anyone know how to solve it? Thank you

Steps to reproduce the bug

image

The robot stopped because he received a way without waypoints

image

Hello @liugehaizaixue! It looks like you are running a simulation still, and therefore will require use_sim_time as a flag. This is an inbuilt mechanism in ROS 2, which allows other nodes to synchronize their time with the simulated nodes which start from the epoch time, 1970s.

Perhaps this explanation will help with understanding, https://stackoverflow.com/questions/69084148/the-effect-of-use-sim-time-in-ros.

I will be closing this issue as it is not a bug.