Closed DavidMansolino closed 4 years ago
I cannot reproduce this issue on the current master branch (R2020b).
If the fields are not manually changed from the scene tree and given that the internal robot translation and rotation values are relative to the parent robot it is correct that they do not change (they match the ones in the scene tree).
If I manually change the translation or rotation values from the scene tree, the values printed by the controller are updated in the next step. If the simulation is in pause mode and I change the values, then two steps are needed to see the new values in the console.
I just tried and I confirm it is now working fine, this was probably fixed in the meantime 😃
Describe the Bug When using the Supervisor API to get the state of a field of a PROTO node in an MFField of another PROTO node, the state is not updated and always return the initial value.
This is visible with this controller:
And this world:
The rotation field of the second e-puck always returns the initial value even if manually changed in the scene-tree while the simulation is running. It works fine for the first e-puck and if either the first or the second e-puck is converted to base nodes.