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

Sim: No deletion of the robot draw track with "reset the positions ..." #1596

Closed AHberta closed 5 months ago

AHberta commented 7 months ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Go to 'SIM'
  2. Click on 'Enable/Disable robot draw trail'
  3. Start program for example drive forward speed %30 distance cm 20
  4. See 20 cm drawn robot track
  5. Click on 'Resets the positions ...'
  6. See the position reset and still the drawn track

Screenshots image

Device information

Additional context

rbudde commented 7 months ago

it is a bug or it is a feature? I use line painting sometimes to see which area is covered by a running robot. In this case I prefer, that the lines is not erased.

Design alternatives:

if you close and reopen the sim, the lines stays visible. At least this is an error.

AHberta commented 7 months ago

Bug or feature? The behaviour of release 5.2.8 (lab.open-roberta.org) and 5.2.2 (dev8.open-roberta.org) are different:

5.2.2 draw checkbox enabled + reset position click = drawn track is erased draw checkbox disabled + reset position click = drawn track is erased Close and re-open the SIM = drawn track is still visible Change background = drawn track is erased Open Debug Mode = drawn track is still visible + reset robot position + draw checkbox disabled (even if it was enabled)

5.2.8 draw checkbox enabled + reset position click = drawn track is unerased Draw checkbox disabled + reset position click = drawn track is unaresed Close and reopen the SIM = drawn track is still visible Change background = drawn track is erased Open Debug Mode = drawn track is still visible + reset robot position + draw checkbox disabled (even if it was enabled)

If not erase the drawn track when resetting the robot position via image is a new feature, then the info text is irritating: image image

bjost2s commented 5 months ago

@AHberta, thank you so much for clarification. I have fixed this problem and it is now working like it was proposed in 5.2.2 and in the tooltip!

NiHoffmann commented 5 months ago

solved