wb_supervisor_field_get_*
can return stale values after wb_supervisor_simuation_reset()
if the simulation time is the same as the preceding call.
#6670
Labels
bug
Something isn't working
Describe the Bug
wb_supervisor_field_get_*
can return stale values afterwb_supervisor_simuation_reset()
if the same as the preceding call.Steps to Reproduce
Expected behavior
The relevant values in
second_run_translation
should be different from the values infirst_run_translation
, but this is not the case, even when they are different in GUI.System
Additional context
Using
wb_supervisor_node_get_position()
works and can be used as a workaround in many cases.I suspect the problem is triggered by this:
webots/src/controller/c/supervisor.c
Lines 1262 to 1265 in 0a1f1eb
last_update
should presumably be reset on all fields whenwb_supervisor_simuation_reset()
is called.The text was updated successfully, but these errors were encountered: