모바일 로봇 교육 및 응용을 위한 ROS 기반 시각 프로그래밍 도구
ROS Based Visual Programming Tool for Mobile Robot Education and Applications
ROS Based Visual Programming Tool for Mobile Robot Education and Applications
@misc{karaca2020ros,
title = {ROS Based Visual Programming Tool for Mobile Robot Education and Applications},
author = {Mustafa Karaca and Ugur Yayan},
year = {2020},
eprint = {2011.13706},
archivePrefix = {arXiv},
primaryClass = {cs.RO},
url = {https://arxiv.org/abs/2011.13706}
}
Karaca, M., & Yayan, U. (2020). ROS Based Visual Programming Tool for Mobile Robot Education and Applications [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.13706
KARACA M, YAYAN U. ROS Based Visual Programming Tool for Mobile Robot Education and Applications[EB/OL]. (2020-11-27)[2026-11-30]. https://arxiv.org/abs/2011.13706.
초록
시각 프로그래밍 언어 (VPL) 는 텍스트 입력 없이 코딩을 가능하게 한다. VPL 은 일반적으로 자주 사용되는 코드 구조를 자동으로 추가함으로써 프로그래머에게 코딩을 쉽게 만든다. 코딩 초보자는 아이디어를 논리적 표현으로 변환하는 것과 문법 오류를 해결하는 두 가지 주요 과제를 직면한다. VPL 은 괄호와 세미콜론과 같은 문법 오류가 없기 때문에 이러한 오류를 방지한다. VPL 은 프로그래머에게 알고리즘에 집중할 수 있도록 제공한다. VPL 은 교육용 로봇 환경의 새로운 추세이다. 본 연구에서는 evarobot 을 위한 ROS(Robot Operating System) 호환 웹 기반 시각 프로그래밍 시스템을 개발하였다. ROS 는 소프트웨어 개발자가 로봇 애플리케이션을 생성하는 데 도움을 주는 라이브러리와 도구를 제공한다. ROS 는 하드웨어 추상화, 장치 드라이버, 라이브러리, 시각화, 메시지 전달, 패키지 관리 등을 제공한다. 본 연구에서는 Blockly 를 VPL 로 사용하여 통신, 센싱 등의 블록을 생성하고 활용하였다. 생성된 애플리케이션으로는 원격 조작, SLAM, 방랑 등이 있다. 본 시스템에서는 rosbridge 패키지를 통해 서버와 클라이언트 간의 통신을 지원한다. 서버에서 실행 중인 ROS 와 웹 페이지는 roslibjs 라이브러리를 사용하여 연결된다. Rosbridge 는 비-ROS 프로그램이 ROS 기능을 사용할 수 있도록 JSON API 를 제공한다.
Visual programming languages (VPLs) provide coding without typing texts. VPL makes coding easy to programmers with automatically adding usually used some code structure. Beginners in coding have generally two main challenges; transforming ideas into logical expressions and syntax errors. Syntax errors are impossible with VPLs because of there is no forgotten parentheses and semicolons. VPLs provide to focus on algorithm for programmers. VPL is a new trend for educational robotic environments. In this study, Robot Operating System (ROS) compatible web based visual programming system has been developed for evarobot. ROS provides libraries and tools to help software developers create robot applications. It provides hardware abstraction, device drivers, libraries, visualizers, message-passing, package management, and more. Blockly has been used as VPL for the study and to generate / use blocks (commucation, sensing etc.). Some applications were generated like teleoperation, SLAM and wander etc. In this system, communication between server and client is supported by rosbridge package. Web page connected to ROS which runs on server using roslibjs library. Rosbridge provides a JSON API to ROS functionality for non-ROS programs.