-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Hi,
I am using mars under Rock (Ubuntu16.04, Rock branch master, Mars branch master). It seems that the property use_now_instead_of_sim_time does not have any effect.
My use case is the following: I have multiple Rock components attached to a Mars simulation and some of them are using the transformer. When I reset the simulation (through the GUI or via the control_action input port), the timestamps of the Mars sensor readings are reset to the time when the simulation was started. This makes the transformer start dropping transforms because of old data. When I change use_now_instead_of_sim_time to true, the same problem occurs, the timestamps still seem to show the Mars time instead of the current wall time.
I already checked:
- The property is read and applied here:
simulation-orogen-mars/tasks/Task.cpp
Line 462 in a6ea2a4
simulatorInterface->getControlCenter()->cfg->setPropertyValue("Simulator","getTime:useNow","value",_use_now_instead_of_sim_time.get()); - The current timestamp seems to come from here: https://github.com/rock-simulation/mars/blob/71a60f2c5b09cd8451986b8df9fce6b8f708615d/sim/src/core/Simulator.cpp#L1330
However, the value of cfgUseNow.bValue is always false, even if I set use_now_instead_of_sim_time to true.
Any ideas how to solve this?
Best,
Dennis