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 121 forks source link

Simulation: more realistic behaviour by modeling the response times #1387

Open bjost2s opened 1 year ago

bjost2s commented 1 year ago

A real sensor or actuator usually has some delay, before it returns the desired value or executes some action. We should investigate in this delays (hardware and system dependent) and add it to the simulation, so that the simulation becomes more realistic. A good example might be a smooth working line follower. For the simulation it is currently sufficient to have a simple P regulation but the same program on a real robot will not run very smooth because of delayed sensor values. In the simulation we currently have a delay of 1 frame, that's almost nothing compared to a real system.

rbudde commented 1 year ago

example: for the real robot the timing is very different if we use (the same sensor hardware!) for light (fast) and colour (very slow) sensing.

In the simulation both accesses are fast :-)