Server & Client 학습 : turtlesimnode에 client가 숫자를 전달하면 이동하고 그 좌표를 turtle1/pose를 통해 subscribe 해오는 코드
- Ubuntu 14.04와 ROS indigo 설치 및 개발환경 설정
- 추후 실제 개발과 다른 버전의 ROS 사용을 위한 기본 학습
- Oracle VM VirtualBox 사용
-
ROS Kinetic ONLY supports Wily (Ubuntu 15.10), Xenial (Ubuntu 16.04) and Jessie (Debian 8) for debian packages.
-
- Ubuntu 16.04(LTS) 설치
sudo apt-get install chrony
sudo apt-get install ntpdate
sudo ntpdate ntp.ubuntu.com
-> 서버시간 동기화- http://wiki.ros.org/kinetic/Installation/Ubuntu 의 1.4 Installation의 첫번째까지 진행 후
sudo apt-get upgrade
진행
-
- http://wiki.ros.org/kinetic/Installation/Ubuntu
sudo apt-get install ros-kinetic-desktop-full
sudo apt-get install python-rosinstall
sudo apt-get install ros-kinetic-rqt-*
sudo rosdep init
-> 초기화rosdep update
-
gedit ~/.bashrc
입력 (1.5 Environment setup)
-> echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc source ~/.bashrcsource /opt/ros/kinetic/setup.bash
마지막에 설정 추가- 이외의 설정들 (출처: ROBOTIS OpenSourceTeam ROS강의 Chapter3)
- 새 터미널을 열고 roscore 실행 여부 확인
환경 설정
-
- https://ros-qtc-plugin.readthedocs.io/en/latest/_source/How-to-Install-Users.html
- 16.04 Offline Installer 설치
- 다운 파일 실행 전 관리자 권한을 준 후 설치(우클릭-Properties-Permissions-Allow Execute)
- 다음과 같이 ROS_WorkSpace 생성(New Project - other - ROS WORKSPACE)
ws 생성
- Workspace path는 바탕화면 -> catkin_ws 생성