Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags more
Archives
Today
Total
관리 메뉴

Wiredwisdom

Noetic RoS Re-setup 본문

Autonomous Driving/Turtlebot3

Noetic RoS Re-setup

Duke_Wisdom 2024. 7. 1. 19:02

 

 

$ sudo apt-get purge ros-noetic-*
$ sudo apt-get autoremove
$ sudo rm -rf /etc/ros

 

# 소스 리스트 설정
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

# 키 설정
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

# 패키지 업데이트
sudo apt update

# ROS Noetic 설치 (데스크톱 풀 버전)
sudo apt install ros-noetic-desktop-full

# 의존성 설치
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential

# rosdep 초기화
sudo rosdep init
rosdep update

# 환경 설정
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc

 

# TurtleBot3 패키지 설치
sudo apt-get install ros-noetic-dynamixel-sdk
sudo apt-get install ros-noetic-turtlebot3-msgs
sudo apt-get install ros-noetic-turtlebot3

# TurtleBot3 모델 설정 (Burger, Waffle, Waffle Pi 중 선택)
echo "export TURTLEBOT3_MODEL=burger" >> ~/.bashrc
source ~/.bashrc

# TurtleBot3 시뮬레이션 패키지 설치 (선택사항)
sudo apt-get install ros-noetic-turtlebot3-simulations

 

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin_make
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc

 

# ROS 버전 확인
rosversion -d

# TurtleBot3 실행 테스트 (시뮬레이션)
roslaunch turtlebot3_gazebo turtlebot3_world.launch

 

전반적으로 문제 없이 설치 되었다.

'Autonomous Driving > Turtlebot3' 카테고리의 다른 글

wireless setup - Ubuntu 20.4 Server  (0) 2024.07.02
'roscore' Error - 20.04 Ver, No GUI  (0) 2024.07.01
OpenCR Setup  (1) 2024.07.01
Master Connecting Procedure - 24 Ver  (0) 2024.07.01
Raspberry pi 3B+ OS setup  (0) 2024.07.01