A systemd service that automatically executes some commands and scripts that speed up the process of testing code during the RoboLab courses.
- Initiate a tmux session after boot called
ev3-robolab-startup
- Run the Python script
startup.py
in interactive mode which then performs the following steps: - Import the package
ev3dev.ev3
asev3
.
This particular import takes a lot of time as it is a huge package that is responsible for all functions related to the LEGO MINDSTORMS EV3 hardware. - Import the
reloader
package.
This package is capable of reloading specific modules including their dependencies. - Blacklist the ev3dev.ev3 package
As this package does not alter during the development and testing of Python scripts, we want to avoid reloading it over and over again. - Wait for further commands
As we ranstartup.py
with the-i
after execution of the past steps, we remain with an open Python interactive shell awaiting further commands.
Developed as part of the RoboLab project at the Systems Engineering Group, TU Dresden.
Copyright © 2017 Lutz Thies