1 Star 0 Fork 0

王二牛/ORB-SLAM3-ROS2-Docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

ORB-SLAM3 ROS2 Wrapper Docker

This repository contains a dockerized comprehensive wrapper for ORB-SLAM3 on ROS 2 Humble for Ubuntu 22.04.

Demo GIF

ORBSLAM3-GIF

Steps to use this wrapper

1. Clone this repository

  1. git clone https://github.com/suchetanrs/ORB-SLAM3-ROS2-Docker
  2. cd ORB-SLAM3-ROS2-Docker
  3. git submodule update --init --recursive --remote

2. Install Docker on your system

cd ORB-SLAM3-ROS2-Docker
sudo chmod +x container_root/shell_scripts/docker_install.sh
./container_root/shell_scripts/docker_install.sh

3. Build the image with ORB_SLAM3

  1. Build the image: sudo docker build -t orb-slam3-humble:22.04 .
  2. Add xhost + to your .bashrc to support correct x11-forwarding using echo "xhost +" >> ~/.bashrc
  3. source ~/.bashrc
  4. You can see the built images on your machine by running sudo docker images.

4. Running the container

  1. cd ORB-SLAM3-ROS2-Docker (ignore if you are already in the folder)
  2. sudo docker compose run orb_slam3_22_humble
  3. This should take you inside the container. Once you are inside, run the command xeyes and a pair of eyes should pop-up. If they do, x11 forwarding has correctly been setup on your computer.

5. Building the ORB-SLAM3 Wrapper

Launch the container using steps in (4).

cd /root/colcon_ws/
colcon build --symlink-install
source install/setup.bash

Launching ORB-SLAM3

Launch the container using steps in (4). If you are inside the container, run the following:

  1. ros2 launch orb_slam3_ros2_wrapper unirobot.launch.py
  2. You can adjust the initial co-ordinates of the robot along with its namespace in the unirobot.launch.py file.

Important notes

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

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangerniu/ORB-SLAM3-ROS2-Docker.git
git@gitee.com:wangerniu/ORB-SLAM3-ROS2-Docker.git
wangerniu
ORB-SLAM3-ROS2-Docker
ORB-SLAM3-ROS2-Docker
master

搜索帮助