This tutorial walks you through setting up Isaac ROS Visual SLAM with a Luxonis OAK camera.
Most of the steps overlap with Realsense setup. Main differences include setting up Docker image for use with the cameras.
-
Clone this repository and its dependencies under
${ISAAC_ROS_WS}/src.cd ${ISAAC_ROS_WS}/src git clone https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_visual_slam git clone https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_common git clone https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_nitros
-
Clone
depthaiandxacrorepositories to the workspacecd ${ISAAC_ROS_WS}/src git clone --branch ros-release https://github.com/luxonis/depthai-core git clone --branch humble https://github.com/luxonis/depthai-ros git clone --branch ros2 https://github.com/ros/xacro
-
Setup udev rules on host
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules sudo udevadm control --reload-rules && sudo udevadm trigger
-
Setup configuration for docker creation
cd ${ISAAC_ROS_WS}/src/isaac_ros_common/scripts && \ touch .isaac_ros_common-config && \ echo CONFIG_IMAGE_KEY=ros2_humble.depthai > .isaac_ros_common-config && \ touch .isaac_ros_dev-dockerargs && \ echo "-v /dev/bus/usb:/dev/bus/usb" > .isaac_ros_dev-dockerargs
-
Run the docker image
isaac_ros_container
Or if you did not add the command in step 1-3 of the quickstart section:
cd ${ISAAC_ROS_WS}/src/isaac_ros_common && \ ./scripts/run_dev.sh ${ISAAC_ROS_WS}
-
When inside the container, build the workspace:
cd /workspaces/isaac_ros-dev && \ colcon build --symlink-install && \ source install/setup.bash
-
Run launch file for the camera
ros2 launch isaac_ros_visual_slam isaac_ros_visual_slam_depthai.launch.py
-
depthai-ros-driverallows for a large amount of customization using parameters. Example parameters can be found inisaac_ros_visual_slam/params.depthai.yaml