Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 1.6 KB

File metadata and controls

50 lines (39 loc) · 1.6 KB

Python scripts to test/automate things

This README only discuss the testing scripts

Run scripts

For scripts not depending on ros, it is possible (and easy) to use python with docker. A docker image is still available if needed.

For scripts depending on ros, it is recommended to use the docker image provided here. Alternatively, you can install ROS noetic on your machine and run the scripts directly.

Note

If a script needs ROS to run, it will import the module scripts.rosutils. This will raise an ImportError if ROS is not detected (using the ROS_DISTRO env var).

Env installation

python3.11 -m venv .venv
source .venv/bin/activate
pip install -r scripts/requirements.txt

Run scripts

# (after sourcing the virtual environment)
python -m scripts.a_script

List of scripts