- Open VSCode
- Install the Dev Containers extension in VSCode
- Install Docker from here or through
F1 > Dev Containers: Install Docker
- Open the
AUV-Fault-Detection
folder in VSCode. When prompted select "Reopen Container" popup orF1 > Dev Containers: Rebuild and Reopen in Container
- VSCode will create a Docker container with ROS installed, share your local
AUV-Fault-Detection
folder with the container, then connect to the container. This allows you to edit and run code inside the container as if it was your local computer.
- VSCode will create a Docker container with ROS installed, share your local
In the container,This should happen automatically now.cd avl
andbash setup.sh
- VSCode will ask for your CMAR credentials, then pull the necessary git repos and their dependencies
- The
avl
command will also be added to bash
- Build the AVL code:
catkin_make
- Activate the catkin workspace:
source devel/setup.sh
source /opt/ros/noetic/setup.bash
: Makes ROS commands available in your shellsource avl/devel/setup.bash
: Allows ROS tools likeroslaunch
androsrun
to find your packages and nodes
- Logs are stored in
/var/avl_logs/<timestamp>
/var/avl_logs/current
is symlinked to latest log, socd /var/avl_logs/current
to access latest logFile > Add folder to Workspace
>/var/avl_logs
to add the log folder to the file tree
- See the top of
data_collection_launcher.py
to change trial length, when fault triggers, etc. - Start ROS core in a new terminal window:
roscore
rosrun avl_fault_detection data_collection_launcher.py
- Stop ROS core: Ctrl+C in terminal window
data_collection.log
inavl_logs
contains vehicle state data and fault labels in tabular form
Syntax: avl start <package_name> <launch_file_name>
To start a full system simulation with the avl_fault_detection
package:
source /opt/ros/noetic/setup.bash
source /workspaces/AUV-Fault-Detection/avl/devel/setup.bash
avl setup avl_690
avl start avl_fault_detection full_system_simulation.launch
F1 > ROS: Show Status
will show all current node configurations, topics, and publishers
- Save any work, then delete everything under
avl/
- Re-run
setup.sh
Follow the instructions here
[X] Run setup.sh automatically
[] Install Mission Control automatically
[] Fix fluxbox toolbar font being white
[X] Allow setup.sh to run multiple times
[] setup.sh
line endings