cyberbotics / webots

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

Timestep in the default controler doesn't match the default timestep world #3168

Open ShuffleWire opened 3 years ago

ShuffleWire commented 3 years ago

Describe the Bug When creating an new world, and adding the default C or MATLAB controller using the Wizard "New Robot Controller", timestep (=64) don't match with the new created world (=32). A better way to do is like in others default controller (C++, Python, Java) to use getBasicTimeStep . I've no way to test for MATLAB a modification, so I let someone take it in charge.

Steps to Reproduce

  1. Create a new world
  2. See that basicTimeStep is 32
  3. Create a new Matlab controller
  4. See on line 13 TIME_STEP = 64;
  5. Create a new C controller
  6. See on line 18 #define TIME_STEP 64

Expected behavior Default timestep should match. Use of getBasicTimeStep should be nice.

System

ShuffleWire commented 3 years ago

Additonnaly, webots/docs/guide/tutorial-1-your-first-simulation-in-webots.md should be fixed the same way.