enter the repositories devcontainer to ensure development environment is set up correctly
Docker must be installed on the shared laptop
- on the shared laptop, open a new terminal, navigate to the repository
- start a sudo VS Code session by running
sudo code --no-sandbox --user-data-dir=/home/sdv-hacker/ - This should open VS Code in a new window at our repository
- Install the VS Code Dev Containers extension if you haven't already
- Press F1, and search for the command "Reopen in Dev Container"
- VS Code should reload and start building the dev container
- After the build is done, you should be in the dev container. To double check this, VS Codes remote connection (usually in the bottom left corner) should say "Dev Container: tide"
Dev container is not necessasry for this. Just a properly setup SDV Hackathon shared laptop :)
- change the wifi to the teams local wifi
- on the shared laptop, open a new terminal, and navigate to the repository
- run
ank -k apply sdv_lab/shared-laptop-manifest.yaml - wait for ankaios to say the
mqtt_brokerworkflow has aRunning(Ok)status
Sometimes the MQTT broker fails to run, but still says its running. To fix this, kill the process and restart it by running
sudo netstat -tulnp | grep 1883
# read the PID from the output and use it in the command below
sudo kill <PID_HERE>
ank -k delete workload mqtt_broker
ank -k apply sdv_lab/shared-laptop-manifest.yaml
In the VS Code devcontainer
- change the wifi to the teams local wifi
- open a new terminal
- run
pipenv install - run
pipenv run python run_fake_carla.py - data should start publishing to the
vehicle/adas-actor/seenevery 1 second
In the VS Code devcontainer
- change the wifi to the teams local wifi
- open a new terminal
- run
pipenv install - run
pipenv run python run_nav_app.py - if the Carla simulator is running, you should start seeing data being received from the Carla simulator
- if it determines a new incident is detected, it will publish it to the
vehicle/adas-actor/event-createdtopic
-
- change the wifi to the teams local wifi
- open a new terminal
- run
pipenv install - run
pipenv run python run_nav_app.py