ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1....

15
2019-04-10 ROS tutorial ISL 안재원 Install & tutorial

Transcript of ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1....

Page 1: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

2019-04-10

ROS tutorial

ISL

안재원

Install & tutorial

Page 2: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

ROS?

Install

Tutorial

2019-04-10

2

Page 3: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

ROS?2019-04-10

3

-Robot Operating System

- 운영체제?

- 하드웨어 추상화- 디바이스 제어- 패키지 관리- 메시지 관리

- 하드웨어 추상화- 소프트웨어 관리- 매개체

Driving partSensor Etc..User

- System- Application

※통신기반 프로그램

Page 4: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

ROS?2019-04-10

4

-Robot Operating System

- 운영체제?

Driving partSensor Etc..User

SensorSystem

DrivingSystem

- 하드웨어 추상화- 소프트웨어 관리- 매개체

Page 5: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

ROS?2019-04-10

5

-Robot Operating System

C TurtleBox Turtle

HydroGroovy Galapagos

Fuerte TurtleElectric EmysDiamondback

Indigo Jade Kinetic Kame

Page 6: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

ROS?2019-04-10

6

Page 7: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

Install2019-04-10

7

Page 8: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

Install2019-04-10

8

-rqt

-rviz

Qt-based framework for GUI development

3D visualization tool

Page 9: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

Install2019-04-10

9

$ sudo rosdep init

-> 소스파일 컴파일을 위한 dependency 초기화 과정

$ sudo c_rehash /etc/ssl/certs -> 네트워크 & 인증서 문제

Page 10: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

Tutorial2019-04-10

5

-Beginner level

1. Installing and configuring your ROS environment.2. Navigating the ROS filesystem.3. Creating a ROS package.4. Building a ROS package.5. Understanding ROS nodes.6. Understanding ROS Topics.7. Understanding ROS services and parameters.8. Using rqt_console and roslaunch.9. Using rosed to edit files in ROS.10. Creating a ROS msg and srv.11. Writing & Examining a simple Publisher and Subscriber.12. Writing & Examining a simple Service and Client.13. Recording and playing back data.14. Getting started with roswtf.

-msg

-srv

자료형 변수명1자료형 변수명2……..

Describe the fields of a ROS message.<package>/msg/<message file name>.msg

float32 testvalstring teststr…..

자료형 입력변수명1자료형 입력변수명2……….---자료형 출력변수명…………

int64 Aint64 B---int64 Sum

Describes a service<package>/srv/<service file name>.srv

Example

Example

- 하드웨어 추상화- 디바이스 제어- 패키지 관리- 메시지 관리

Page 11: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

Tutorial2019-04-10

5

-Publisher and SubscriberPublisher Subscriber

Page 12: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

Tutorial2019-04-10

5

-Publisher and Subscriber

Publisher

Subscriber

Edit <package>/CMakeLists.txt

Page 13: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

Tutorial2019-04-10

5

-Service and Client

Service Client

Page 14: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

Tutorial2019-04-10

5

Service

Client

Edit <package>/CMakeLists.txt

-Service and Client

Page 15: ROS tutorial - Image System Laboratory · 2020-03-18 · Tutorial 2019-04-10 5-Beginner level 1. Installing and configuring your ROS environment. 2. Navigating the ROS filesystem.

Q & A

2019-04-10