728x90
ROS 설치
사용하고 있는 우분투의 버전은 18.04입니다.
ROS Melodic을 설치합니다.
연결되어있는 명령어를 한줄 보기좋게하려고 한줄 내려서 적으면 햇갈려서 길게적었습니다~ 확인해주세요
#Source.list설정
$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
#Key 설정하기
$ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
#Decian 설치하기
$ sudo apt update
#ROS, rqt, rviz, robot-generic-libraries, 2D/3D 시뮬레이터와 2D/3D 인식기(perception) 모두 설치
$ sudo apt install ros-melodic-desktop-full
#환경변수 설정하기
$ echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
$ source ~/.bashrc
#패키지 빌드를 위한 의존성 설정
$ sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
#rosdep 초기화
$ sudo apt install python-rosdep
$ sudo rosdep init
$ rosdep update
설치가 잘 되었는지 확인하기
$ roscore
터미널을 열어놓고 새로 터미널을 연다
$ rosrun turtlesim turtlesim_node
# 또 다른 터미널을 실행
$ rosrun turtlesim turtle_teleop_key
방향키로 거북이가 움직이면 완벽하게 설치된것이다.
https://whiteknight3672.tistory.com/248
Ubuntu 18.04 + ROS Melodic 설치 방법 정리
필요한 우분투와 ROS 버전 확인 설치 전, 리눅스 버전에 대해 설명드리겠습니다. ROS는 Debian, Windows 10 등 다양한 OS에서의 작동을 지원하지만 Ubuntu를 공식지원하며, Ubuntu 환경을 이용하는 유저가
whiteknight3672.tistory.com
https://ghostweb.tistory.com/802
Ubuntu에 ROS 설치하기 (우분투 ROS 설치)
이번에는 Robot OS인 ROS Melodic을 우분투에 설치하는 방법에 대해서 알아보도록 할게요. ROS Melodic의 경우 ubuntu 18.04 LTS (17.04) 이상에서 설치 가능하며 kinetic의 경우 16.04에도 설치할 수 있어요. ROS..
ghostweb.tistory.com
728x90
'ROS(drone포함)' 카테고리의 다른 글
Manipulator (0) | 2021.06.03 |
---|---|
로봇의 활용 분야 (0) | 2021.06.02 |
ROS란 / 왜 ROS를 배워야 하는가? / 다른 로봇 플랫폼은? (0) | 2021.06.01 |
라즈베리파이3 세팅하기 (0) | 2021.05.13 |
MCU(Micro Controller Unit) 와 MPU(Micro Processor Unit) (0) | 2021.05.10 |