To satisfy all python dependencies please follow the steps below:
- Create virtual environment:
python -m venv venv - activate it (on bash/Linux):
source venv/bin/activate - Install packages:
pip install -r requirements.txt
To execute the task 1.1 and 1.2 run:
python exam_project/task1/main.pyTo execute the task 2.1 run:
python exam_project/task21/main.py With a chromium based browser visit foxglove.dev or download from here the foxglove app.
Once the login is done, click open connection..., and open the foxglove WebSocket URL ws://localhost:8765.
In the top right, click on layout, then Import from file... and select the DAS-foxglove-layout.json file present in the root of the project
In the folder containing the dockerfile run:
docker compose buildIn order to run GUI apps in the docker container on wayland systems run:
xhost +local:dockerdocker compose upIn a new terminal run:
docker exec -it das_ros2 /bin/bashTo run the task 2.2
ros2 launch task22 launch.pyTo change parameters change the values of the PARAMETERS dictionary in the launch.py file inside the folder /exam_project/task22_ws/src/task22/launch_folder/ then a colcon build is required:
Inside exam_project/task22_ws, run:
colcon build && source install/setup.bash && ros2 launch task22 launch.py