webots icon indicating copy to clipboard operation
webots copied to clipboard

Reset solidReference position

Open ShuffleWire opened this issue 4 years ago • 0 comments

Describe the Bug When resetting (no reload) a simulation with SolidReference, it fail to reset position.

Steps to Reproduce

  1. Open reset.zip. And build controller.

Boxes are linked with a vertical SliderJoint, powered by a LinearMotor. On the right side the upper-box is a Solid directly placed on the endPoint of the SliderJoint, whereas on the left we use a SolidReference to the upper-box. All boxes are the same (and same physic)

  1. Run simulation
  2. Both boxes go up (10cm according to controller)
  3. Reset simulation (no reload)
  4. Left box stay in the same place, right box go back to initial position
  5. Simulation continue to push both box up, but the left box end up higher (at 20cm from the staring point) than the right one (again 10cm).

Here is what happens during multiple reset (reset occurs each time the right box return to the original position) https://user-images.githubusercontent.com/83014015/179467765-73a11a4a-c18f-4855-afd8-8736db6f443a.mp4

Expected behavior Box box should behave the same way.

System

  • Operating System: Debian 11

Additional context It seems to be "sort of" a follow up to https://github.com/cyberbotics/webots/pull/3167 However, in this previous case bug seems to be caused by Solid not having Physic node, as stated in : https://github.com/cyberbotics/webots/pull/3167#issuecomment-861784811 Now, that seems different, because all Solid node have proper Physic node.

ShuffleWire avatar Oct 08 '21 15:10 ShuffleWire