Project/#1 AI 기반 자율주행 로봇을 이용한 매장 관리

#11 Ros2 cartographer를 위한 여러package 설치

얼죽아여뜨샤 2022. 9. 1. 20:24

1. 작업 공간 만들기

cd ~
mkdir -p ~/Ros2_ws/src

 

2. 패키지 설치

2-1. 소스에서 빌드 패키지

cd Ros2_ws
git clone https://github.com/ros/ros_tutorials.git -b foxy-devel

2-2. 바이너리패키지 설치

sudo apt install ros-foxy-rosbag2*

패키지 확인

ros2 pkg prefix rosbag2

실행파일나열

ros2 pkg executables action_tutorials_py

 

3. 작업공간구축

colcon build --symlink-install

**에러발생

colcon: command not found

=> 해결

sudo apt install python3-colcon-common-extensions

 

4. 패키지 설치

4-1. Gazebo11

sudo apt-get install ros-foxy-gazebo-*

4-2. cartographer 

sudo apt install ros-foxy-cartographer
sudo apt install ros-foxy-cartographer-ros

4-3. navigation2 

sudo apt install ros-foxy-navigation2
sudo apt install ros-foxy-nav2-bringup

 

https://ros2-industrial-workshop.readthedocs.io/en/latest/_source/basics/ROS2-Filesystem.html

 

ROS 2 File System — ROS 2 workshop documentation

3. Workspace Colcon is a build tool for ROS 2. A workspace is a folder, where you can modify, build, and install packages. It is the place to create your packages and nodes or modify existing ones to fit your application. In the further tutorials, you will

ros2-industrial-workshop.readthedocs.io