OpenRoberta / openroberta-lab

The programming environment »Open Roberta Lab« by Fraunhofer IAIS enables children and adolescents to program robots. A variety of different programming blocks are provided to program motors and sensors of the robot. Open Roberta Lab uses an approach of graphical programming so that beginners can seamlessly start coding. As a cloud-based application, the platform can be used without prior installation of specific software but runs in any popular browser, independent of operating system and device.
Apache License 2.0
124 stars 118 forks source link

Simulation lacks precision when sensor values are read from the environment #1580

Closed rbudde closed 5 months ago

rbudde commented 8 months ago

See the attached pictures of a background and a program

2023-11-16 11_55_48-Open Roberta Lab

Optionally open the sensor view. Move the robot around with the mouse. The background colour seen by the sensor is displayed in the small robot. The update of the view is not done, when the sensor (which is attached at the FRONT of the robot) is above the colour, but much later (as if the the sensor is attached close to the end of the robot). A program gets the color info in the same way delayed.

2023-11-16 12_12_51-Open Roberta Lab

Remedy: if the front of the robot hits a colour, it should be used by the simulation immediately.

Thorlogy commented 8 months ago

Reproduction of the error:

  1. Open Roberta SIM,
  2. Click on SIM
  3. Change the scene (its not a must)
  4. Click on "Add a color area"
  5. Draw the color area
  6. Close the SIM
  7. Open the SIM
  8. See the error
rbudde commented 8 months ago

yes, the close and open of the sim trigger the error.

It seems to me, that the color area is painted at wrong coordinates (?)

PamoCurtis commented 5 months ago

solved