cyberbotics / webots

Webots Robot Simulator
https://cyberbotics.com
Apache License 2.0
3.27k stars 1.7k forks source link

Initial location robot changed to 0,0 after reset #6467

Closed knmcguire closed 8 months ago

knmcguire commented 10 months ago

Describe the Bug I noticed with the crazyflie_apartment example, that if I reset the simulation, the bot goes from it's initial location (-5, -2) in the .wbt, to (0,0). This way the bot is stuck in the wall.

Steps to Reproduce

  1. Start up the example world bitcraze/crazyflie_example
  2. Play the simulator for a few seconds (crazyflie takes off but that is not the problem)
  3. Reset the simulator with image
  4. The crazyflies moves away from view and to (0,0), and now stuck in the wall
  5. Reload the world with image to get it back in position

Expected behavior I expect the bot to return to its initial location of (-5, -2) after the reset

System

ShuffleWire commented 8 months ago

In the Crazyfly Robot PROTO, on line 32, there is translation 0 0 0.015 Which afaik is causing the issue, and should be removed. I'm correct ?

knmcguire commented 8 months ago

Yes absolutely you are correct. I'll remote that immediately from the proto now with an PR. Thanks!