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
'Project > #1 AI 기반 자율주행 로봇을 이용한 매장 관리' 카테고리의 다른 글
#13 Ros2 foxy Cartographer & Rplidar A1m8 실행 (map save) (0) | 2022.09.01 |
---|---|
#12 Ros2 foxy Cartographer & Rplidar A1m8 설치 (0) | 2022.09.01 |
#10 Ros2 foxy install & delete (0) | 2022.09.01 |
+#9 라즈베리파이 원격 접속 Rviz 모니터링 (0) | 2022.08.07 |
#9 Cartographer&Rplidar A1M8 Slam하기 (0) | 2022.08.07 |