KR20010039349A - A robot control method for robot football program - Google Patents

A robot control method for robot football program Download PDF

Info

Publication number
KR20010039349A
KR20010039349A KR1019990047710A KR19990047710A KR20010039349A KR 20010039349 A KR20010039349 A KR 20010039349A KR 1019990047710 A KR1019990047710 A KR 1019990047710A KR 19990047710 A KR19990047710 A KR 19990047710A KR 20010039349 A KR20010039349 A KR 20010039349A
Authority
KR
South Korea
Prior art keywords
function
mode
robot
kick
robot control
Prior art date
Application number
KR1019990047710A
Other languages
Korean (ko)
Other versions
KR100338495B1 (en
Inventor
김종환
박귀홍
Original Assignee
윤덕용
한국과학기술원
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 윤덕용, 한국과학기술원 filed Critical 윤덕용
Priority to KR1019990047710A priority Critical patent/KR100338495B1/en
Publication of KR20010039349A publication Critical patent/KR20010039349A/en
Application granted granted Critical
Publication of KR100338495B1 publication Critical patent/KR100338495B1/en

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1656Programme controls characterised by programming, planning systems for manipulators
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J11/00Manipulators not otherwise provided for
    • B25J11/003Manipulators for entertainment

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Manipulator (AREA)

Abstract

PURPOSE: A robot control method lets a user work out strategy and select appropriate mode needed to set up action of a robot. CONSTITUTION: A robot control method comprises a robot control function execution process, a mode selection process, a mode switching process and a robot role assignment function execution process. The robot control function execution process is to execute robot control functions in order when a vision information of a vision program is periodically renewed. The mode selection process is to select a mode among a Kick_OFF mode, a Penalty_Kick mode, a Free_Kick mode, a Free_Ball mode, a Goalie_Kick mode and a Defence mode when the robot control function is called out. The mode switching process is to judge whether to execute appropriate mode or go on to Defence mode when a mode is selected. The robot role assignment function execution process is to execute robot role assignment function(InitRole()) if the Defence mode is selected in the mode switch process.

Description

로봇축구 게임을 위한 로봇제어방법{A robot control method for robot football program}A robot control method for robot football program

본 발명은 로봇축구 게임을 위한 로봇 제어방법 및 그 프로그램이 기억된 기억매체에 관한 것으로서, 특히 로봇제어 프로그램내에 Kick_OFF 모드, Penalty_Kick 모드, Free_Kick 모드, Free_Ball 모드, Goalie_Kick 모드, Defense 모드 등의 다양한 모드를 마련하여 로봇축구 게임시 사용자가 미리 상황을 예상하여 전략을 짠 후 직접 필요한 해당 모드를 선택하여 로봇의 동작을 설정함으로써 사용자에 의해 짜여진 전략에 의해 로봇들의 동작이 제어되어 축구경기를 할 수 있도록 한 것이다.The present invention relates to a robot control method for a robot soccer game and a storage medium in which the program is stored, and in particular, various modes such as Kick_OFF mode, Penalty_Kick mode, Free_Kick mode, Free_Ball mode, Goalie_Kick mode, Defense mode, etc. in the robot control program. When the robot soccer game is prepared, the user predicts the situation in advance and prepares a strategy, and then selects the required mode and sets the motion of the robot so that the motion of the robots can be controlled by the user's strategy. will be.

일반적으로, 마이크로 로봇축구는 팀당 3대의 로봇과, 약 170m×130m 크기(골대포함)의 경기장과, 경기장내의 영상 정보를 받기 위한 경기장에서 약 2미터 높이에 설치된 CCD 카메라와 PC를 이용한다.In general, micro-robot football uses three robots per team, a stadium measuring about 170m × 130m (including a goal), and a CCD camera and a PC installed about two meters high in the stadium for receiving image information in the stadium.

경기는 전,후반 5분씩으로 진행되며 전,후반 사이에는 쉬는 시간 10분이 마련되어 이때 로봇의 전지교환이나 전술을 바꿀 수 있다.The game is played in 5 minutes of the first and second half, and a 10 minute rest period is provided between the first and second half, whereby the robot can be replaced or tactics changed.

상기 로봇은 전원, 구동장치, 마이크로 콘트롤러, 통신모듈 등이 내장되어있고 외부와의 통신은 무선으로만 가능하다. 각 팀의 컴퓨터는 공의 위치와, 로봇의 위치, 속도 및 방향, 작전 및 전술 명령에 관한 모든 정보를 무선으로 자기편 로봇에 줄 수 있으나 사람에 의한 원격조작은 허락되지 않는다. 사람은 경기시작과 멈춤, 재시작 시에만 로봇에게 명령을 전달할 수 있다.The robot has a power supply, a driving device, a microcontroller, a communication module, and the like, and communication with the outside is possible only wirelessly. Each team's computer can wirelessly give its own robot all information about the ball's position, robot's position, speed and direction, operations and tactical commands, but remote control by humans is not permitted. A human can only send commands to the robot at the start, stop and restart of a race.

로봇축구 시스템은 기본적으로 3대의 로봇, 비전 시스템, 통신장비 및 호스트컴퓨터로 이루어지는 바, 상기 호스트 컴퓨터는 비전시스템으로부터 로봇들과 공의 위치에 관한 영상정보를 얻어내고 상황에 따른 적절한 전술을 계산하여 로봇에게 전달한다. 경기장내 물체들의 위치를 알아내기 위해 사용되는 비전시스템은 칼라 CCD와 영상신호를 처리하기 위한 비전모드로 이루어져 있다. 이는 단순히 로봇의 외부시각 센서로 간주된다.The robot soccer system basically consists of three robots, a vision system, communication equipment and a host computer. The host computer obtains image information about the robots and the ball position from the vision system and calculates the appropriate tactics according to the situation. Deliver to the robot. The vision system used to locate objects in the stadium consists of a color CCD and a vision mode for processing image signals. It is simply regarded as the robot's external visual sensor.

그러나, 종래에는 로봇을 이용하여 축구게임을 할 때 다양한 로봇제어 프로그램이 개발되지 않아 사용자가 자신이 짠 전략에 의해 로봇을 제어하며 게임을 즐기기가 어려웠다.However, in the related art, various robot control programs are not developed when playing a soccer game using a robot, and thus, it is difficult for a user to control the robot by a strategy he devised and enjoy the game.

본 발명은 상기와 같은 문제점을 해결하기 위하여, 로봇제어 프로그램에 Kick_OFF 모드, Penalty_Kick 모드, Free_Kick 모드, Free_Ball 모드, Goalie_Kick 모드, Defense 모드 등의 다양한 모드를 마련하여 로봇축구 게임시 사용자가 미리 상황을 예상하여 전략을 짠 후 직접 필요한 해당 모드를 선택하여 로봇의 동작을 설정함으로써 사용자에 의해 짜여진 전략에 의해 로봇들의 동작이 제어되어 축구경기를 할 수 있도록 한 로봇제어방법을 제공하는데 그 목적이 있다.In order to solve the above problems, the robot control program provides various modes such as Kick_OFF mode, Penalty_Kick mode, Free_Kick mode, Free_Ball mode, Goalie_Kick mode, Defense mode, and the like, and the user predicts the situation in advance during the robot soccer game. The purpose of the present invention is to provide a robot control method that enables the soccer game by controlling the operation of the robots by the strategy woven by the user by selecting the appropriate mode and then directly selecting the required mode.

본 발명의 목적을 달성하기 위한 기술사상으로서, 호스트 컴퓨터의 비전 프로그램내에 탑재되는 로봇제어 프로그램을 이용하여 로봇의 동작을 제어하는 로봇제어방법에 있어서,As a technical idea for achieving the object of the present invention, in the robot control method for controlling the operation of the robot using a robot control program mounted in the vision program of the host computer,

상기 비전 프로그램의 비전정보가 주기적으로 개선될 때 순차적으로 로봇제어함수를 실행시키는 로봇제어함수 실행과정과; 상기 로봇제어함수가 호출되면 Kick_OFF 모드, Penalty_Kick 모드, Free_Kick 모드, Free_Ball 모드, Goalie_Kick 모드, Defense 모드로 된 다수의 모드중 소정 모드를 선택하는 모드선택과정과; 소정 모드가 선택되면 해당모드를 실행할 것인가 아니면 Defense 모드로 넘어갈 것인가 상황 판단을 하는 모드전환과정과; 상기 모드전환과정에서 Defense 모드가 선택되면 로봇역할 지정함수(InitRole())를 실행시키는 로봇역할지정함수 실행과정을 포함하는 발명이 제시된다.A robot control function executing step of executing the robot control function sequentially when the vision information of the vision program is periodically improved; A mode selection process of selecting a predetermined mode from among a plurality of modes including a kick_off mode, a penalty_kick mode, a free_kick mode, a free_ball mode, a goalie_kick mode, and a defense mode when the robot control function is called; A mode switching process of determining whether to execute a corresponding mode or to switch to a defense mode when a predetermined mode is selected; When the Defense mode is selected in the mode switching process, an invention including a robot role designation function execution process for executing the robot role designation function (InitRole ()) is presented.

도 1은 로봇축구 시스템을 나타내는 블록 구성도이다.1 is a block diagram illustrating a robot soccer system.

도 2는 로봇제어 프로그램의 위치를 나타내는 흐름도이다.2 is a flowchart showing the position of the robot control program.

도 3은 게임함수의 내부를 나타내는 흐름도이다.3 is a flowchart showing the inside of a game function.

도 4는 본 발명에 의한 로봇제어방법을 나타내는 흐름도이다.4 is a flowchart illustrating a robot control method according to the present invention.

이하에서는 본 발명의 실시예에 대한 구성 및 작용에 대해서 첨부된 도면을 참조하면서 상세히 설명하기로 한다.Hereinafter, with reference to the accompanying drawings for the configuration and operation of the embodiment of the present invention will be described in detail.

본 발명은 호스트 컴퓨터의 비전 프로그램내에 탑재되는 로봇제어 프로그램을 이용하여 로봇의 동작을 제어하는 로봇제어방법에 있어서,The present invention provides a robot control method for controlling the operation of a robot using a robot control program mounted in a vision program of a host computer.

상기 비전 프로그램의 비전정보가 주기적으로 개선될 때 순차적으로 로봇제어함수를 실행시키는 로봇제어함수 실행과정과;A robot control function executing step of executing the robot control function sequentially when the vision information of the vision program is periodically improved;

상기 로봇제어함수가 호출되면 Kick_OFF 모드, Penalty_Kick 모드, Free_Kick 모드, Free_Ball 모드, Goalie_Kick 모드, Defense 모드로 된 다수의 모드중 소정 모드를 선택하는 모드선택과정과;A mode selection process of selecting a predetermined mode from among a plurality of modes including a kick_off mode, a penalty_kick mode, a free_kick mode, a free_ball mode, a goalie_kick mode, and a defense mode when the robot control function is called;

소정 모드가 선택되면 해당모드를 실행할 것인가 아니면 Defense 모드로 넘어갈 것인가 상황 판단을 하는 모드전환과정과;A mode switching process of determining whether to execute a corresponding mode or to switch to a defense mode when a predetermined mode is selected;

상기 모드전환과정에서 Defense 모드가 선택되면 로봇역할 지정함수(InitRole())를 실행시키는 로봇역할지정함수 실행과정으로 이루어져 있다.When the defense mode is selected in the mode switching process, the robot role specifying function (InitRole ()) is executed.

또한, 본 발명은 상기 다수의 모드중 Kick_OFF 모드가 선택되면 현재 상황을 판단한후 속도제어함수(Velocity()) 및 위치제어함수(Position())를 실행할 것인지 아니면 다시 Defense 모드로 넘어갈 것인지 결정하는 과정을 포함하게 된다.In addition, the present invention is a process of determining whether to execute the speed control function (Velocity ()) and position control function (Position ()) or to go back to the defense mode when the Kick_OFF mode of the plurality of modes is selected after determining the current situation It will include.

또한, 상기 속도제어함수(Velocity())는 PWM 값을 전달하는 함수이고, 상기 위치제어함수(Position())는 지정된 위치로 로봇을 이동시키는 함수로 정의된다.In addition, the speed control function Velocity () is a function for transmitting a PWM value, and the position control function Position () is defined as a function for moving the robot to a specified position.

또한, 상기 위치제어함수(Position())도 최종적으로 속도제어함수(Velocity())를 실행하는 과정을 포함하게 된다.In addition, the position control function Position () also includes a process of finally executing the speed control function Velocity ().

또한, 본 발명은 상기 Penalty_Kick 모드, Free_Kick 모드, Free_Ball 모드 또는 Goalie_Kick 모드중 하나가 선택되면 현재의 상황을 판단한 후 슛함수(Shoot()) 및 골키퍼 함수(Goalie())를 실행할 것인지 아니면 다시 Defense 모드로 넘어갈 것인지 결정하는 과정을 포함하게 된다.In addition, the present invention, if one of the Penalty_Kick mode, Free_Kick mode, Free_Ball mode or Goalie_Kick mode is selected, after determining the current situation to execute the shoot function (Shoot ()) and goalkeeper function (Goalie ()) or again defense mode This will include determining whether to proceed.

이때, 상기 슛함수(Shoot())는 로봇이 공을 앞쪽 방향으로 차게 하는 함수이고, 상기 골키퍼 함수(Goalie())는 골키퍼의 움직임을 조종하는 함수로 정의되게 된다.In this case, the shooting function (Shoot ()) is a function that the robot kicks the ball in the forward direction, and the goalkeeper function (Goalie ()) is defined as a function of controlling the movement of the goalkeeper.

또한, 상기 로봇역할 지정함수(InitRole())에는 공격함수(Attack()), 수비함수(Defend()) 및 골키퍼함수(Goalie())가 존재한다.In addition, the robot role designation function InitRole () includes an attack function Attack (), a defense function Defend (), and a goalkeeper function Goalie ().

이때, 상기 공격함수(Attack())는 두 대의 로봇이 공격하는 전략이 있는 함수이고, 상기 수비함수(Defend())는 수비수 두 대의 로봇의 움직임을 정하는 함수로 정의되게 된다.At this time, the attack function (Attack ()) is a function that has a strategy of attacking two robots, the defense function (Defend ()) is defined as a function that determines the movement of the two defenders robots.

또한, 상기 공격함수(Attack())는 킥함수(Kick()) 및 위치이동함수(Position())로 구성되고, 상기 킥함수(Kick())는 다시 슛함수(Shoot()) 및 위치이동함수(Position())로 이루어지게 된다.In addition, the attack function Attack () is composed of a kick function Kick () and a position shift function (Position ()), and the kick function Kick () is again a shot function (Shoot ()) and a position. It is composed of a movement function (Position ()).

상기와 같은 구성을 갖는 본 발명의 작용을 설명하면 다음과 같다.Referring to the operation of the present invention having the configuration as described above are as follows.

본 발명은 로봇축구 시스템에 있어서 로봇을 제어하기 위한 방법에 관한 것으로서, 이러한 로봇제어 방법의 처리과정을 설명하기에 앞서 로봇축구 시스템의 개략적인 개념을 도 1을 중심으로 살펴보면 다음과 같다.The present invention relates to a method for controlling a robot in a robot soccer system. Before describing the process of the robot control method, the schematic concept of the robot soccer system will be described with reference to FIG. 1.

우선, 경기장 위에 있는 로봇들과 공의 영상정보가 카메라를 통해서 호스트 컴퓨터로 전달된다. 이 정보를 이용하여 호스트 컴퓨터에서는 로봇의 위치와 각도, 공의 위치를 새롭게 알아낸다. 호스트 컴퓨터는 새로이 알아낸 정보들을 이용하여 각 로봇들이 이동하게 되는 위치와 속도를 계산한다.First, image information of robots and balls on the stadium is transmitted to the host computer through the camera. Using this information, the host computer knows the robot's position, angle, and ball position. The host computer uses the newly found information to calculate the position and speed at which each robot moves.

이런 것들을 계산한 후에 로봇에게 명령을 내린다. 도 1에서 중계기는 생략될 수 있다. 호스트 컴퓨터에서 내린 명령들을 유선통신으로 적외선 모듈(또는 중계기)에 전달한다.After calculating these things, the robot is ordered. In FIG. 1, the repeater may be omitted. Commands from the host computer are sent to the infrared module (or repeater) via wired communication.

적외선 모듈에 전달된 데이터(호스트 컴퓨터에서 내린 정보)들은 무선으로 로봇에게 전덜된다. 적외선 모듈에 전달된 데이터(호스트 컴퓨터에서 내린 명령)들은 무선으로 로봇에게 전달된다.Data delivered to the infrared module (information from the host computer) is wirelessly transmitted to the robot. Data delivered to the infrared module (commands from the host computer) is transmitted wirelessly to the robot.

적외선 모듈에 전달된 데이터(호스트 컴퓨터에서 내린 명령)들은 무선으로 로봇에게 전달된다. 로봇들은 이러한 데이터를 받아서 이동하게 된다. 로봇의 위치와 각도,공의 위치정보가 다시 카메라를 통해서 호스트 컴퓨터에 전달된다.Data delivered to the infrared module (commands from the host computer) is transmitted wirelessly to the robot. Robots receive this data and move on it. The robot's location, angle, and ball's location information is transmitted back to the host computer through the camera.

호스트 컴퓨터는 다시 새롭게 변한 물체들의 정보를 가지고 전략에 맞게 로봇들을 움직이게 하는 명령데이터를 설정하고 다시 이런 명령들을 적외선 모듈에 전달한다. 로봇축구 시스템은 이런 과정을 반복하게 된다.The host computer again sets up the command data to move the robots according to the strategy with the information of the newly changed objects and sends these commands back to the infrared module. The robot soccer system repeats this process.

상기와 같은 축구로봇 시스템은 호스트 컴퓨터의 메모리에 탑재되어있는 비전정보를 이용하여 축구게임시 필요한 로봇의 위치 및 각도를 알 수 있다.The soccer robot system as described above can know the position and angle of the robot required for the soccer game using vision information mounted in the memory of the host computer.

즉, 호스트 컴퓨터에서는 비전정보를 이용하여 로봇제어 프로그램에 전송할 데이터를 계산하게 되고 이렇게 계산된 데이터는 무선통신을 통해 로봇에게 전달된다. 따라서, 로봇은 호스트 컴퓨터에서 보내준 데이터를 받아서 모터를 제어하게 된다.That is, the host computer calculates data to be transmitted to the robot control program using vision information, and the calculated data is transmitted to the robot through wireless communication. Therefore, the robot receives the data sent from the host computer to control the motor.

상기 비전정보는 33ms마다 개선되므로 초당 30번에 걸쳐 로봇제어할 수 있는 셈이고 이것으로 축구경기를 충분히 할 수가 있다.Since the vision information is improved every 33ms, the robot can be controlled 30 times per second and this can be enough to play soccer.

그럼 지금부터 로봇제어 프로그램의 처리과정에 대해 좀 더 상세히 살펴보겠다.Now, let's take a closer look at the process of robot control program.

우선, 로봇제어 프로그램은 비전 프로그램 내부에 존재하는데 상기 비전 프로그램은 도 2와 같이 33ms 마다 로봇의 좌표값들을 새롭게 한다.First, the robot control program exists inside the vision program, which updates the coordinate values of the robot every 33ms as shown in FIG.

즉, 33ms 마다 비전정보가 새롭게 개선되면 이를 따라 순차적으로 로봇제어함수가 실행된다.That is, if the vision information is newly improved every 33ms, the robot control function is executed sequentially.

이때, 사용자가 Start 버튼을 누르게 되면 통신 플래그가 온 되어 로봇제어함수내의 Grame() 함수가 호출된다. 상기 로봇제어함수는 My_Strategy()이고, 이 함수 내부에 Game() 함수가 있다.At this time, when the user presses the Start button, the communication flag is turned on and the Grame () function in the robot control function is called. The robot control function is My_Strategy (), and there is a Game () function inside this function.

상기 Game() 함수가 호출되면 사용자는When the Game () function is called, the user

주어진 상황에 따라서 도 3과 같이 여러가지 상태로 나누어져 프로그램이 실행된다.According to a given situation, the program is divided into various states as shown in FIG. 3.

사용자는 Kick_OFF 모드, Penalty_Kick 모드, Free_Kick 모드, Free-Ball 모드, Goalie_Kick 모드 및 Defense 모드 중 원하는 한가지 모드를 선택하면 된다.The user can select one of Kick_OFF Mode, Penalty_Kick Mode, Free_Kick Mode, Free-Ball Mode, Goalie_Kick Mode, and Defense Mode.

이때, 상기 Kick_OFF 모드는 경기를 시작할 때와 골이 났을 때 수행하는 모드이고 상기 Penalty_Kick 모드는 상대편으로 패널티 킥을 할 때 사용하는 모드이다.In this case, the Kick_OFF mode is a mode that is performed when the game starts and a goal is scored, and the Penalty_Kick mode is a mode that is used when a penalty kick to the opponent.

또한, 상기 Free_Kick 모드는 상대편 골대에서 프리킥을 할 때 사용하는 모드이고, 상기 Goalie_Kick 모드는 자기진영의 골대영역에서 상대편쪽으로 공을 찰 때 사용하는 모드이다.In addition, the Free_Kick mode is a mode used when a free kick in the opponent's goal post, the Goalie_Kick mode is a mode used when kicking the ball toward the opponent in the goal area of his side.

또한, 상기 Free-Ball 모드는 프리볼 상태일 때 적용하는 모드이다. 이외에는 모두 Defense 모드를 사용하는데 상대편이 패널티킥을 할 때나 프리킥을 할 때도 포함한다.In addition, the Free-Ball mode is a mode applied when the free ball state. All other uses Defense mode, including when a opponent penalizes a penalty or a free kick.

사용자에 의해 상기의 각 모드가 선택되었을 때 처리되는 과정은 다음과 같다.The processing performed when each of the above modes is selected by the user is as follows.

먼저, 상기 Kick_OFF 모드가 선택되면 일단 로봇과 공의 조건을 판단한 후 제 1로봇이 속도제어함수(Velocity())함수로 공을 차게 하고 제 2로봇은 위치제어함수(Position())함수로 지정된 위치에 있게 한다.First, when the Kick_OFF mode is selected, once the conditions of the robot and the ball are determined, the first robot kicks the ball with the velocity control function (Velocity ()) and the second robot is designated with the position control function (Position ()). To be in position.

이때, 상기 속도제어함수는 PWM 값을 전달하는 함수이고, 상기 위치제어함수는 지정된 위치로 로봇을 이동시키는 함수이다.In this case, the speed control function is a function for transmitting a PWM value, the position control function is a function for moving the robot to a specified position.

공이 움직이기 시작하면 사용자는 다시 조건을 판단한 후 Defense 모드를 선택하면 Defense 모드로 모드가 바뀐다.When the ball starts to move, the user decides the condition again and then selects Defense mode.

또한, 사용자에 의해 Free_Kick 모드가 선택되면 일단 로봇과 공의 조건을 판단한 후 제 1로봇이 공을 차게 할 때는 위치제어함수(Position())함수를 이용하여 공을 차면 되고, 제 3로봇은 골키퍼함수(Goalie())함수를 이용하여 골키퍼로 움직이게 한다.In addition, once the Free_Kick mode is selected by the user, the robot may kick the ball using the position control function when the first robot kicks the ball after determining the condition of the robot and the ball. Use the function (Goalie ()) to move to the goalkeeper.

계속해서 사용자가 다시 상황을 판단한 후 Defense 모드를 선택하면 Defense 모드로 모드가 바뀐다.After the user judges the situation again and selects Defense mode, the mode changes to Defense mode.

또한, Penalty_Kick 모드, Free-Ball 모드 또는 Goalie_Kick 모드가 선택되면 사용자는 다시 상황을 판단한 후 슛함수(Shoot()) 및 골키퍼함수(Goalie())를 실행할 것인지 또는 Defense 모드로 이동할 것인지 결정하면 된다.In addition, when the Penalty_Kick mode, the Free-Ball mode or the Goalie_Kick mode is selected, the user may determine the situation again and decide whether to execute the shooting function (Shoot ()) and the goalkeeper function (Goalie ()) or move to the defense mode.

이때, 슛함수는 로봇이 공을 앞쪽 방향으로 차게 하는 함수이고, 골키퍼 함수는 골키퍼의 움직임을 위한 함수이다.In this case, the shooting function is a function for the robot to kick the ball forward, and the goalkeeper function is a function for the goalkeeper's movement.

한편, 사용자에 의해 다시 Defense 모드가 선택되면 로봇역할 지정함수(InitRole())가 실행되는데 이 함수의 내부에는 공격함수(Attack()), 수비함수(Defend()) 및 골키퍼함수(Goalie())가 존재한다.On the other hand, if the defense mode is selected by the user again, the robot role designation function (InitRole ()) is executed. Inside this function, the attack function (Attack ()), the defense function (Defend ()) and the goalkeeper function (Goalie ()) are executed. ) Exists.

이때, 상기 공격함수(Attack())는 두 대의 로봇이 공격하는 전략이 있는 함수이고, 상기 수비함수(Defend())는 수비수 두 대의 로봇의 움직임을 정하는 함수이다.At this time, the attack function (Attack ()) is a function that has a strategy of attacking two robots, the defense function (Defend ()) is a function that determines the movement of the two defenders robots.

사용자의 선택에 의해 공격함수(Attack()) 또는 수비함수(Defend())가 수행되고 이에 따라 로봇에 의해 공격 또는 수비 동작이 이루어지면 다시 사용자는 현재 상황을 판단한 후 공격하는 것이 유리하면 공격함수(Attack()) 및 골키퍼함수(Goalie())를 실행시키고, 반대의 경우이면 수비함수(Defend())와 골키퍼함수(Goalie())를 실행시키게 된다.If the attack function (Attack ()) or the defense function (Defend ()) is executed by the user's selection and the attack or defense action is performed by the robot, the user again judges the current situation and if it is advantageous to attack the attack function (Attack ()) and goalkeeper function (Goalie ()) are executed, otherwise the defensive function (Defend ()) and goalkeeper function (Goalie ()) are executed.

이때, 상기 공격함수(Attack())는 킥함수(Kick()) 및 위치이동함수(Position())로 구성되고, 상기 킥함수(Kick())는 다시 슛함수(Shoot()) 및 위치이동함수(Position())로 구성되어, 각각 사용자의 상황판단 및 선택에 의해 현재 상황에 가장 적당한 함수가 선택된다.At this time, the attack function Attack () consists of a kick function Kick () and a position shift function (Position ()), and the kick function Kick () is again a shoot function (Shoot ()) and a position. It consists of a position function (Position ()), and the function most appropriate to the current situation is selected by the user's situation judgment and selection.

그리고, 결국 최종적으로는 속도제어 함수가 호출되게 된다.Finally, the speed control function is finally called.

상기와 같은 처리과정이 반복되면서 게임이 진행되는데 사용자가 게임의 종료를 위해 Stop버튼을 누르게 되면 통신플래그가 오프되면서 게임이 종료되게 된다.The game proceeds as the above process is repeated. If the user presses the Stop button to end the game, the communication flag is turned off and the game ends.

이상의 설명에서 알 수 있는 바와같이, 본 발명은 호스트 컴퓨터의 비전 프로그램내에 탑재되는 로봇제어 프로그램을 이용하여 로봇의 동작을 제어하는 로봇제어방법에 있어서,As can be seen from the above description, the present invention provides a robot control method for controlling the operation of a robot using a robot control program mounted in a vision program of a host computer.

상기 비전 프로그램의 비전정보가 주기적으로 개선될 때 순차적으로 로봇제어함수를 실행시키는 로봇제어함수 실행과정과;A robot control function executing step of executing the robot control function sequentially when the vision information of the vision program is periodically improved;

상기 로봇제어함수가 호출되면 Kick_OFF 모드, Penalty_Kick 모드, Free_Kick 모드, Free_Ball 모드, Goalie_Kick 모드, Defense 모드로 된 다수의 모드중 소정 모드를 선택하는 모드선택과정과;A mode selection process of selecting a predetermined mode from among a plurality of modes including a kick_off mode, a penalty_kick mode, a free_kick mode, a free_ball mode, a goalie_kick mode, and a defense mode when the robot control function is called;

소정 모드가 선택되면 해당모드를 실행할 것인가 아니면 Defense 모드로 넘어갈 것인가 상황 판단을 하는 모드전환과정과;A mode switching process of determining whether to execute a corresponding mode or to switch to a defense mode when a predetermined mode is selected;

상기 모드전환과정에서 Defense 모드가 선택되면 로봇역할 지정함수(InitRole())를 실행시키는 로봇역할지정함수 실행과정을 수행하여,When the Defense mode is selected in the mode switching process, the robot role designation function executing the robot role designation function (InitRole ()) is performed.

로봇축구 게임시 사용자가 미리 상황을 예상하여 전략을 짠 후 직접 필요한 해당 모드를 선택하여 로봇의 동작을 설정함으로써 사용자에 의해 짜여진 전략에 의해 로봇들의 동작이 제어되어 사용자는 흥미있는 로봇축구경기를 즐길 수 있다.In the game of robot soccer, the user predicts the situation and prepares a strategy, and then selects the required mode and sets the motion of the robot to control the motion of the robot by the strategy created by the user. Can be.

Claims (10)

호스트 컴퓨터의 비전 프로그램내에 탑재되는 로봇제어 프로그램을 이용하여 로봇의 동작을 제어하는 로봇제어방법에 있어서,In the robot control method for controlling the operation of the robot using a robot control program mounted in the vision program of the host computer, 상기 비전 프로그램의 비전정보가 주기적으로 개선될 때 순차적으로 로봇제어함수를 실행시키는 로봇제어함수 실행과정과;A robot control function executing step of executing the robot control function sequentially when the vision information of the vision program is periodically improved; 상기 로봇제어함수가 호출되면 Kick_OFF 모드, Penalty_Kick 모드, Free_Kick 모드, Free_Ball 모드, Goalie_Kick 모드, Defense 모드로 된 다수의 모드중 소정 모드를 선택하는 모드선택과정과;A mode selection process of selecting a predetermined mode from among a plurality of modes including a kick_off mode, a penalty_kick mode, a free_kick mode, a free_ball mode, a goalie_kick mode, and a defense mode when the robot control function is called; 소정 모드가 선택되면 해당모드를 실행할 것인가 아니면 Defense 모드로 넘어갈 것인가 상황 판단을 하는 모드전환과정과;A mode switching process of determining whether to execute a corresponding mode or to switch to a defense mode when a predetermined mode is selected; 상기 모드전환과정에서 Defense 모드가 선택되면 로봇역할 지정함수(InitRole())를 실행시키는 로봇역할지정함수 실행과정을 포함하는 것을 특징으로 하는 로봇 제어방법.And a robot role specifying function executing the robot role specifying function (InitRole ()) when the defense mode is selected in the mode switching process. 청구항 1에 있어서, 상기 다수의 모드중 Kick_OFF 모드가 선택되면 현재 상황을 판단한후 속도제어함수(Velocity()) 및 위치제어함수(Position())를 실행할 것인지 아니면 다시 Defense 모드로 넘어갈 것인지 결정하는 과정을 포함하는 것을 특징으로 하는 로봇 제어방법.The method of claim 1, wherein when the Kick_OFF mode is selected from among the plurality of modes, a process of determining whether to execute the speed control function Velocity () and the position control function Position () after the current situation is determined or to switch back to the defense mode is performed. Robot control method comprising a. 청구항 2에 있어서, 상기 속도제어함수(Velocity())는 PWM 값을 전달하는 함수이고, 상기 위치제어함수(Position())는 지정된 위치로 로봇을 이동시키는 함수로 정의되는 것을 특징으로 하는 로봇 제어방법.The robot control according to claim 2, wherein the speed control function Velocity () is a function for transmitting a PWM value, and the position control function Position () is defined as a function for moving the robot to a specified position. Way. 청구항 3에 있어서, 상기 위치제어함수(Position())도 최종적으로 속도제어함수(Velocity())를 실행하는 과정을 포함하는 것을 특징으로 하는 로봇 제어방법.The robot control method according to claim 3, wherein the position control function (Position ()) also includes a step of finally executing a speed control function (Velocity ()). 청구항 1항에 있어서, 상기 Penalty_Kick 모드, Free_Kick 모드, Free_Ball 모드 또는 Goalie_Kick 모드중 하나가 선택되면 현재의 상황을 판단한 후 슛함수(Shoot()) 및 골키퍼 함수(Goalie())를 실행할 것인지 아니면 다시 Defense 모드로 넘어갈 것인지 결정하는 과정을 포함하는 것을 특징으로 하는 로봇 제어방법 및 그 프로그램이 기억된 기록매체.The method of claim 1, wherein when one of the Penalty_Kick mode, the Free_Kick mode, the Free_Ball mode, or the Goalie_Kick mode is selected, the current function is determined and the shot function (Shoot ()) and the goalkeeper function (Goalie ()) are executed. A robot control method and a recording medium storing the program, characterized in that it comprises a process of determining whether to go to the mode. 청구항 5항에 있어서, 상기 슛함수(Shoot())는 로봇이 공을 앞쪽 방향으로 차게 하는 함수이고, 상기 골키퍼 함수(Goalie())는 골키퍼의 움직임을 조종하는 함수로 정의되는 것을 특징으로 하는 로봇 제어방법.The method of claim 5, wherein the shoot function (Shoot ()) is a function that the robot kicks the ball in the forward direction, the goalkeeper function (Goalie ()) is characterized in that it is defined as a function to control the movement of the goalkeeper Robot control method. 청구항 1에 있어서, 상기 로봇역할 지정함수(InitRole())의 내부에는 공격함수(Attack()), 수비함수(Defend()) 및 골키퍼함수(Goalie())가 존재하는 것을 특징으로 하는 로봇 제어방법.The robot control method according to claim 1, wherein an attack function Attack (), a defensive function Defend (), and a goalkeeper function Goalie () exist inside the robot role designation function InitRole (). Way. 청구항 6에 있어서, 상기 공격함수(Attack())는 두 대의 로봇이 공격하는 전략이 있는 함수이고, 상기 수비함수(Defend())는 수비수 두 대의 로봇의 움직임을 정하는 함수로 정의되는 것을 특징으로 하는 로봇 제어방법.The method of claim 6, wherein the attack function (Attack ()) is a function that has a strategy of attacking two robots, the defense function (Defend ()) is defined as a function that determines the movement of the two defenders robots Robot control method. 청구항 6에 있어서, 상기 공격함수(Attack())는 킥함수(Kick()) 및 위치이동함수(Position())로 구성되고, 상기 킥함수(Kick())는 다시 슛함수(Shoot()) 및 위치이동함수(Position())로 이루어지는 것을 특징으로 하는 로봇 제어방법.The method of claim 6, wherein the attack function (Attack ()) is composed of a kick function (Kick ()) and a position movement function (Position ()), the kick function (Kick ()) is again a shoot function (Shoot ()) ) And a position movement function (Position ()). 청구항 2 또는 청구항 5에 있어서, 상황을 판단한 후 공격하는 것이 유리하면 공격함수(Attack()) 및 골키퍼함수(Goalie())가 실행되고, 반대의 경우이면 수비함수(Defend())와 골키퍼함수(Goalie())가 실행되는 것을 특징으로 하는 로봇 제어방법.The attack function (Attack ()) and the goalkeeper function (Goalie ()) is executed if it is advantageous to attack after judging the situation, and the defensive function (Defend ()) and the goalkeeper function in the opposite case. Robot control method characterized in that (Goalie ()) is executed.
KR1019990047710A 1999-10-30 1999-10-30 A robot control method for robot football program KR100338495B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990047710A KR100338495B1 (en) 1999-10-30 1999-10-30 A robot control method for robot football program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990047710A KR100338495B1 (en) 1999-10-30 1999-10-30 A robot control method for robot football program

Publications (2)

Publication Number Publication Date
KR20010039349A true KR20010039349A (en) 2001-05-15
KR100338495B1 KR100338495B1 (en) 2002-05-30

Family

ID=19617809

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990047710A KR100338495B1 (en) 1999-10-30 1999-10-30 A robot control method for robot football program

Country Status (1)

Country Link
KR (1) KR100338495B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030073429A (en) * 2002-03-11 2003-09-19 주식회사 보스텍 A communication system and method between intelligent toy robots
KR101470433B1 (en) * 2007-12-18 2014-12-09 주식회사 케이티 Flag game system and method using situation dependent behavior based robot
CN111487972A (en) * 2020-04-24 2020-08-04 深圳市优必选科技股份有限公司 Kickball gait planning method and device, readable storage medium and robot

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030073429A (en) * 2002-03-11 2003-09-19 주식회사 보스텍 A communication system and method between intelligent toy robots
KR101470433B1 (en) * 2007-12-18 2014-12-09 주식회사 케이티 Flag game system and method using situation dependent behavior based robot
CN111487972A (en) * 2020-04-24 2020-08-04 深圳市优必选科技股份有限公司 Kickball gait planning method and device, readable storage medium and robot
CN111487972B (en) * 2020-04-24 2024-04-26 深圳市优必选科技股份有限公司 Kicking gait planning method and device, readable storage medium and robot

Also Published As

Publication number Publication date
KR100338495B1 (en) 2002-05-30

Similar Documents

Publication Publication Date Title
US8632376B2 (en) Robotic game systems and methods
US6672962B1 (en) Gun-shaped controller and game device
KR100537977B1 (en) Video game apparatus, image processing method and recording medium containing program
US8834245B2 (en) System and method for lock on target tracking with free targeting capability
US7281982B2 (en) Targeting system
US6951515B2 (en) Game apparatus for mixed reality space, image processing method thereof, and program storage medium
US9295912B2 (en) Game aim assist
CN100542645C (en) Video generation device and method for displaying image
EP1902760B1 (en) Storage medium and game device
CN108310764B (en) Auxiliary positioning method, device and equipment
US20060223637A1 (en) Video game system combining gaming simulation with remote robot control and remote robot feedback
US20040063501A1 (en) Game device, image processing device and image processing method
US20130023341A1 (en) Program and recording medium on which the program is recorded
KR101193434B1 (en) Game device, method for controlling game device, and information storage medium
JP4582222B2 (en) Information processing system
JP2008272123A (en) Program, information memory medium and game apparatus
US20210268377A1 (en) Computer-readable recording medium, game apparatus, and game execution method
JP2009011657A (en) Game program and game device
US7044856B2 (en) Game device, program, and method for sequentially changing game images over time
US20220152502A1 (en) Storage medium, information processing system, information processing apparatus, and game processing method
KR20010039349A (en) A robot control method for robot football program
JP2006034823A (en) Shooting game system
KR100755586B1 (en) Remote-controlled toy system and drive device for the same
KR100342432B1 (en) robot soccer game method
US8216037B2 (en) Game device, game device control method, and information storage medium

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20080506

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee