Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- GUI
- ZED2
- GPS
- 자율탐사
- 오블완
- Puck LITE
- ROS
- 로봇
- QT
- WSL
- WSL2
- Visual SLAM
- U-blox
- 아두이노
- 강화학습
- Gazebo
- RTK
- C++
- ubuntu
- turtlebot3
- ROS2
- turtlesim
- 자율주행
- SLAM
- 터틀심
- Simulation
- 티스토리챌린지
- 젯슨
- Jetson
- 인공지능
Archives
- Today
- Total
직관적인느낌
WSL2 + ROS2 [Setup] 환경 설치 본문
728x90
반응형
ROS2 공식 홈페이지 설치 과정
- 출처
Ubuntu (Debian) — ROS 2 Documentation: Foxy documentation
Resources
- Status Page:
- Jenkins Instance
- Repositories
Set locale
locale # check for UTF-8
sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
locale # verify settings
Set Sources
sudo apt install software-properties-common
sudo add-apt-repository universe
sudo apt update && sudo apt install curl
sudo curl -sSL <https://raw.githubusercontent.com/ros/rosdistro/master/ros.key> -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] <http://packages.ros.org/ros2/ubuntu> $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
Set locale
locale # check for UTF-8
sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
locale # verify settings
Setup Sources
sudo apt install software-properties-common
sudo add-apt-repository universe
sudo apt update && sudo apt install curl
sudo curl -sSL <https://raw.githubusercontent.com/ros/rosdistro/master/ros.key> -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] <http://packages.ros.org/ros2/ubuntu> $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
Install ROS 2 packages
sudo apt update
sudo apt upgrade
sudo apt install ros-foxy-desktop python3-argcomplete
sudo apt install ros-dev-tools
Environment setup
# Replace ".bash" with your shell if you're not using bash
# Possible values are: setup.bash, setup.sh, setup.zsh
source /opt/ros/foxy/setup.bash
Sourcing the setup script
# Replace ".bash" with your shell if you're not using bash
# Possible values are: setup.bash, setup.sh, setup.zsh
source /opt/ros/foxy/setup.bash
Try some examples
source /opt/ros/foxy/setup.bash
ros2 run demo_nodes_cpp talker
source /opt/ros/foxy/setup.bash
ros2 run demo_nodes_py listener
728x90
반응형
'공학 > ROS' 카테고리의 다른 글
WSL2 + ROS2 [Simulation_turtlebot3 - Navigation] (터틀봇3 네비게이션) (0) | 2023.02.23 |
---|---|
WSL2 + ROS2 [Simulation_turtlebot3 - SLAM] (터틀봇3 슬램) (0) | 2023.02.23 |
WSL2 + ROS2 [Simulation_turtlebot3- Gazebo], 에러 해결 (0) | 2023.02.23 |
WSL2 + ROS2 [Simulation_turtlebot3 - Gazebo] (0) | 2023.02.23 |
WSL2 + ROS2 [Uninstall] 제거 (0) | 2023.02.23 |