- Create a
colcon_wsfolder on your computer - Create an
srcfolder insidecolcon_ws cdinto it- If you run
pwdthe output should end withcolcon_ws/src
- If you run
- Clone IRIS repo:
git clone https://github.com/IllinoisRoboticsInSpace/IRIS IRIScdinto it- If you run
pwdthe output should end withcolcon_ws/src/IRIS
- If you run
- Install Docker
- You may do this any way you wish as long as you have access to the Docker Engine and CLI.
- If in doubt, download Docker Desktop
- Checkout IRIS repo
dockerbranch - Pick one of the two options below
- Creating and intial connection
- Run
docker build -t iris-image /path/to/your/IRIS/repoto create an image from the Dockerfile - Run
docker run -it --name iris -v /path/to/your/colcon_ws:/workspaces/colcon_ws iris-imageto create a container from theiris-imageimage- You should now be in a remote shell in the new container
- Run
exitin the remote shell to close the connection
- Run
- Connecting in the future
- Run
docker start -ai iristo open container- This is what you will do whenever you want to reconnect to the container in the future, don't create a new container and image each time
- You can open a new terminal connected to the container with
docker exec -it iris bashfrom your computer's terminal - Changes you make to
/workspaces/colcon_wsin the container will be reflected on your computer'scolcon_wsfolder and vice versa
- Run
- Develop as you wish (e.g. open your
colcon_wsfolder in VS Code)
- Copy the
.devcontainerfolder intocolcon_ws - Open
colcon_wsin VS Code - Install the
Dev Containersextension - Run the VS Code command
Dev Containers: Reopen in Container- You can access the command palette with
Ctrl+Shift+P
- You can access the command palette with
Note: It is generally advised to run most
gitcommands from a terminal connected to your computer rather than the container
ros2 launch navigation-c display.launch.pyRealsense Data Command:
ros2 launch realsense2_camera rs_launch.py enable_accel:=true enable_gyro:=true unite_imu_method:=2IMU Filter Command:
ros2 run imu_filter_madgwick imu_filter_madgwick_node --ros-args -p use_mag:=false -r /imu/data_raw:=/camera/imuRTAB-Map Command:
ros2 launch rtabmap_ros rtabmap.launch.py \rtabmap_args:="--delete_db_on_start --Optimizer/GravitySigma 0.3" \frame_id:=camera_link \rgb_topic:=/camera/color/image_raw \depth_topic:=/camera/depth/image_rect_raw \camera_info_topic:=/camera/color/camera_info \approx_sync:=true \wait_imu_to_init:=true \imu_topic:=/imu/data \rviz:=false \rtabmapviz:=trueRTAB-Map Debug Mode Command:
ros2 launch rtabmap_ros rtabmap.launch.py \rtabmap_args:="--delete_db_on_start" \frame_id:=camera_link \rgb_topic:=/camera/color/image_raw \depth_topic:=/camera/depth/image_rect_raw \camera_info_topic:=/camera/color/camera_info \approx_sync:=true \wait_imu_to_init:=true \imu_topic:=/imu/data \rviz:=true \rtabmapviz:=false \rtabmap_args:="-d --udebug" \launch_prefix:="xterm -e gdb -ex run --args"~/colcon_ws/
build/
install/
log/
src/
IRIS/