Codebase for the final project of DTU's Autonomous Marine Robotics course
From the root of the project, run the following commands:
- build the docker images
docker compose build
- launch the 'dev' container
docker compose up
you should now have a running container with the name 'final_project_dev_1'
- open a new terminal and connect to the 'dev' container
docker exec -it marine_robots_project_dev-1 bash
- Install the dependencies of the base ros packages
cd ros_ws
rosdep install --from-paths src --ignore-src -y
- Source before continuing
cd ../../opt/ros/noetic
source setup.bash
source local_setup.bash
cd ../../../home/ros_ws
- Try to build the ros packages
catkin build -p2 -j8 --mem-limit 50%
- Add the sourcing of your workspace to your .bashrc
echo "source ${HOME}/ros_ws/devel/setup.bash" >> ~/.bashrc
- Source the workspace
source devel/setup.bash
run the following command inside the 'dev' container
- Enter the dev container
docker exec -it final_project_dev_1 bash
- Launch the simulation
roslaunch project_base bringup.launch [simulation:=true]
- Some useful aliases are defined in the
utils/aliases.sh
file. You can source it by runningsource utils/aliases.sh
outside the container. Important inside that file, thebase_dir
variable should be set to the path of the project in the container.