#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 install curl
curl -s http://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo apt update
sudo apt install ros-내가원하는버전-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
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 - 전체적인 파악이 필요할 때 유용
구동할 때 혼나지만 설치는 혼내줄 수 있다.