ROS 혼내주기

이세희·2023년 4월 6일

오류 일대기

목록 보기
3/3
post-thumbnail

#ros 설치

  1. setup
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
  1. set up key
sudo apt install curl
curl -s http://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
  1. ROS 설치
sudo apt update
sudo apt install ros-내가원하는버전-desktop-full
  1. 환경 설정
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc
  1. 패키지 빌딩을 위한 종속성
sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
sudo apt install python-rosdep
sudo rosdep init
rosdep update

ros는 ubuntu 버전에 맞춰서 설정해줘야 한다.

#ros 명령어

내가 자주쓰는 ros 명령어

rostopic list - ros 토픽 이름들 확인
rostopic echo 'rostopic 이름' - 토픽 내용 확인
rqt_image_view - 어떤 토픽에서 어떤 이미지 나오는지 확인할 때 유용
rqt_graph - 전체적인 파악이 필요할 때 유용

구동할 때 혼나지만 설치는 혼내줄 수 있다.

profile
안녕하세요

0개의 댓글