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

Integrate robot Fischertechnik TXT 4.0 #1656

Open bjost2s opened 5 months ago

bjost2s commented 5 months ago

Integrate robot Fischertechnik TXT 4.0 in the OpenRoberta Lab.

TXT 4.0 is a differential drive robot that comes with some sensors and a camera.

bjost2s commented 5 months ago

@heini208 the tests are currently ignored, because the pylinter is claiming: 2024-05-06 17:30:20,495 INFO PYTHONLINTERSPECIFIC-IT - [[[[[[[[[[ Robot: txt4 check file with pylint : /crossCompilerTests/_expected/robotSpecific/targetLanguage/txt4/camera.py 2024-05-06 17:30:20,843 ERROR PYTHONLINTERSPECIFIC-IT - ---------- Robot: txt4 FAILED issues detected by python linter in file: /crossCompilerTests/_expected/robotSpecific/targetLanguage/txt4/camera.py 2024-05-06 17:30:20,843 INFO PYTHONLINTERSPECIFIC-IT - E0602: 88:11 : Undefined variable 'display' E0602: 95:11 : Undefined variable 'display' E0602: 106:11 : Undefined variable 'display' E0602: 115:11 : Undefined variable 'display' E0602: 122:11 : Undefined variable 'display'

TODO reactivate test with txt4: template: txt4 dir: txt4 suffix: ".py" pylintIgnoredModules: [ "fischertechnik.factories", "display", "fischertechnik.models.Color", "fischertechnik.controller.Motor" ]

and switch from "from display import *" to "import display" and adopt the code generation: display... -> display.display....