This repository contains a dockerized comprehensive wrapper for ORB-SLAM3 on ROS 2 Humble for Ubuntu 22.04.
git clone https://github.com/suchetanrs/ORB-SLAM3-ROS2-Docker
cd ORB-SLAM3-ROS2-Docker
git submodule update --init --recursive --remote
cd ORB-SLAM3-ROS2-Docker
sudo chmod +x container_root/shell_scripts/docker_install.sh
./container_root/shell_scripts/docker_install.sh
sudo docker build -t orb-slam3-humble:22.04 .
xhost +
to your .bashrc
to support correct x11-forwarding using echo "xhost +" >> ~/.bashrc
source ~/.bashrc
sudo docker images
.cd ORB-SLAM3-ROS2-Docker
(ignore if you are already in the folder)sudo docker compose run orb_slam3_22_humble
xeyes
and a pair of eyes should pop-up. If they do, x11 forwarding has correctly been setup on your computer.Launch the container using steps in (4).
cd /root/colcon_ws/
colcon build --symlink-install
source install/setup.bash
Launch the container using steps in (4). If you are inside the container, run the following:
ros2 launch orb_slam3_ros2_wrapper unirobot.launch.py
unirobot.launch.py
file.ORB-SLAM3 is launched from orb_slam3_docker_20_humble/orb_slam3_ros2_wrapper/launch/rgbd.launch.py
which inturn is launched from orb_slam3_docker_20_humble/orb_slam3_ros2_wrapper/launch/unirobot.launch.py
Currently the rgbd.launch.py
launch file defaults to orb_slam3_ros2_wrapper/params/scout_v2_rgbd.yaml
. You can modify this with your own parameter file in case you wish to use your own camera.
The very initial versions of this code were derived from thien94/orb_slam3_ros_wrapper and zang9/ORB_SLAM3_ROS2
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。