Closed lu164 closed 2 months ago
Hi @lu164 why is this method needed?
For an advanced way of Path Planning in OMPL, a way that takes into account control restrictions of the mobile robot. With it OMPL delivers a temporal sequence of linear speed and rotation speeds (V,W) as the output plan.
That plan execution requires indexing in the sequence using time, "real" time. In fast machines, with Gazebo RTF close to 1, the wall clock time and the simulated time are quite similar, but in slow machines they diverge soon. In such slow machines, using the wall clock time results in a wrong plan execution, but using simulated time provides better plan executions and paths.
HAL.getSimTime() function returns the simulation time