RoboMasterPy Framework SDK - HU-ICT-LAB/RobotWars GitHub Wiki
RoboMasterPy Library
In order to feed our own code (including external modules/libraries) into the robot (for an agent-based system and reinforcement learning), we need to use an external SDK - which requires root access which may void warranty! - namely the RoboMasterPy library. It includes an example on how to turn a S1 RoboMaster into a goalkeeper using image recognition.
Commander
The commander is the SDK Client for a RoboMaster. It has methods that can be called while it is connected to a robot which can be found at https://robomasterpy.nanmu.me/en/latest/api.html#commander
Hub
The Hub consists out of the Hub itself and hosts Workers which are used for every user-defined subsystem. They are able to run parallel on Python by utilising the built-in multi-processing module. The methods and initialisers for the hub/workers can be found at https://robomasterpy.nanmu.me/en/latest/quickstart.html#framework
Sources
N. (n.d.). robomasterpy/robomasterpy at master ยท nanmu42/robomasterpy. GitHub. Retrieved September 27, 2021, from https://github.com/nanmu42/robomasterpy/tree/master/robomasterpy