[go: up one dir, main page]

WO2017052060A1 - Real-time device control system having hierarchical architecture and real-time robot control system using same - Google Patents

Real-time device control system having hierarchical architecture and real-time robot control system using same Download PDF

Info

Publication number
WO2017052060A1
WO2017052060A1 PCT/KR2016/008037 KR2016008037W WO2017052060A1 WO 2017052060 A1 WO2017052060 A1 WO 2017052060A1 KR 2016008037 W KR2016008037 W KR 2016008037W WO 2017052060 A1 WO2017052060 A1 WO 2017052060A1
Authority
WO
WIPO (PCT)
Prior art keywords
layer
real
time
device control
control system
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/KR2016/008037
Other languages
French (fr)
Korean (ko)
Inventor
이정호
임정수
오준호
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rainbow Robotics Co Ltd
Original Assignee
Rainbow Robotics Co Ltd
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
Priority claimed from KR1020160020776A external-priority patent/KR102235168B1/en
Application filed by Rainbow Robotics Co Ltd filed Critical Rainbow Robotics Co Ltd
Priority to US15/762,063 priority Critical patent/US10857672B2/en
Priority to JP2018514449A priority patent/JP6938473B2/en
Priority to CN201680054891.6A priority patent/CN108136578B/en
Priority to EP16848786.6A priority patent/EP3354416A4/en
Publication of WO2017052060A1 publication Critical patent/WO2017052060A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric

Definitions

  • the present invention relates to a real time device control system and a real time robotic system. More specifically, the present invention relates to a real-time device control system having a hierarchical architecture capable of accurate real-time processing, easy development and debugging, and robust hardware, and a real-time robot control system using the same.
  • Robots can be largely divided into hardware and software, and they are integrated to form a system.
  • Components of the robot hardware include a driver and a controller for moving the robot joint, a battery and a power controller, a communication module, a sensor, an exoskeleton of the robot, an electronic circuit, and a battery. These different types of elements are combined according to the characteristics of each desired robot to form a robot hardware platform.
  • the present invention is to solve the above problems, in the robot control system that requires real-time, while several independent processes for the same hardware control and processing can coexist, the operation of the robot can be stably controlled accordingly
  • the purpose of the present invention is to provide a real-time device control system having a hierarchical architecture capable of providing robustness and scalability, and a real-time robot control system using the same.
  • a system comprising: a first layer including the one or more devices to be controlled; A second layer including a device control module directly controlling the device at an upper end of the first layer; A third layer including a shared memory connected to the device control module at an upper end of the second layer; A fourth layer including one or more agents performing an independent process using the shared memory at an upper end of the third layer; And a fifth layer that controls the one or more agents according to a user command at an upper end of the fourth layer.
  • the system for solving the above problems, the real-time robot control system, at least one control target device corresponding to the joint or sensor of the robot; And a control system connected to the at least one controlled device to operate the device, wherein the control system includes a first layer including at least one controlled device and a device directly at an upper layer of the first layer.
  • a second layer including a device control module configured to control a third layer; a third layer including a shared memory connected to the device control module at an upper layer of the second layer; and the shared memory at an upper layer of the third layer.
  • a fourth layer including one or more agents for performing an independent process using; And a fifth layer that controls the one or more agents according to a user command in an upper layer of the fourth layer, to operate the one or more devices using inter-layer communication adjacent to each other.
  • the method for solving the above problems can be implemented with a program for executing the method on a computer and a recording medium on which the program is recorded.
  • a plurality of agents having mutually independent processes and a shared memory in which references generated according to operations of the plurality of agents are stored are provided, and the reference to the hardware device is controlled using the reference.
  • FIG. 1 is a conceptual diagram schematically showing an entire system according to an embodiment of the present invention.
  • FIG. 2 is a flowchart illustrating a control method of a robot control system according to an exemplary embodiment of the present invention.
  • 3 to 4 are diagrams for describing a relationship between a shared memory and a system according to an exemplary embodiment of the present invention.
  • FIG. 5 is a diagram for explaining data exchange between a device control module and an agent according to an embodiment of the present invention.
  • FIG. 6 is a block diagram illustrating a device control module according to an embodiment of the present invention.
  • FIG. 7 is a flowchart illustrating a control operation of the robot control system according to another exemplary embodiment.
  • FIG. 8 is a diagram illustrating a hierarchical structure and an operating environment according to an exemplary embodiment of the present invention.
  • components expressed as means for performing the functions described in the detailed description include all types of software including, for example, a combination of circuit elements or firmware / microcode, etc. that perform the functions. It is intended to include all methods of performing a function which are combined with appropriate circuitry for executing the software to perform the function.
  • the invention, as defined by these claims, is equivalent to what is understood from this specification, as any means capable of providing such functionality, as the functionality provided by the various enumerated means are combined, and in any manner required by the claims. It should be understood that.
  • FIG. 1 is a conceptual diagram schematically showing an entire system according to an embodiment of the present invention.
  • an entire system may include one or more devices 100, a device control module 200, a shared memory 300, one or more agents 400, and a user system 500. Include.
  • the device 100 may include one or more driving devices that finally perform the operation of the robot control system.
  • the drive device may comprise a hardware device or a software device.
  • the drive device may include, for example, at least one of a joint device, a sensor device including a sensor board, or a simulator device that controls drive for the articulated motor.
  • the device 100 may be controlled according to a control signal received from the device control module 200, and may output various data such as sensor data to the device control module 200.
  • the term device 100 is not limited to hardware, but may be used as a concept including a software driver for driving an actual hardware device. Accordingly, each device 100 may be physically and softwarely connected to the device control module 200.
  • Each device 100 may form a communication network with the device control module 200.
  • the communication network may form a system network using a controller area network (CAN) protocol for system stability.
  • CAN controller area network
  • each device 100 may be connected to the device control module 200 through one or more CAN communication channels, and receive a message composed of CAN frame data according to a preset control period through the CAN communication channel.
  • a message may be output to the device control module 200.
  • the message may include a motor control reference, an encoder value, a controller state value, a pulse width modulation (PWM) command, a sensor value, or various other setting or output values.
  • PWM pulse width modulation
  • the device control module 200 obtains hardware control data for controlling one or more devices 100 from each reference generated from the plurality of agents 400 and stored in the shared memory, and the hardware control data. And transmits a control signal according to the reference to the one or more devices 100 selected from.
  • the device control module 200 may always reside on an operating system for controlling the robot control system and may be executed in the background.
  • the device control module 200 may uniquely directly communicate the device 100 with reference to the shared memory 300, and may transmit a control signal or receive a sensor signal through the communication channel.
  • the device control module 200 may transfer a reference for controlling the joint device 100 to the joint device 100 or receive necessary sensor information from the sensor device 100.
  • the device control module 200 may include a real-time thread created on the operating system. The thread is synchronized with the motion generation operation cycle of the system to enable real time processing. In addition, the device control module 200 may further include a non-real time thread for processing data reading and conversion.
  • each agent 400 may be implemented as independent software modules having independent processes.
  • the agents 400 may each process different motions and perform a process for outputting a reference corresponding thereto.
  • each agent 400 may include a motion agent, a controller agent, a communication agent or a walking agent, a damping agent, and various other agents.
  • the agents 400 can create and operate respective threads without sharing heap, data, and static memory, and mutually share them.
  • the necessary data for each can be provided to the shared memory 300, thereby allowing organic processing without mutual collision, and facilitates software development and processing.
  • each agent 400 may refer to hardware abstraction data and user-defined data of the shared memory 300 according to a defined process, and store the reference data generated based on the hardware abstraction data of the shared memory 300.
  • the user defined data may include shared data for sharing information between the agents 400 and various data for driving other user-definable systems.
  • the hardware abstraction data may include abstracted reference, sensor data, motion owner variable, and command data to control the device 100.
  • the device control module 200 may generate a control signal for each device 100 by using the hardware abstraction data and hardware information previously stored in the hardware database 250.
  • the device control module 200 identifies the control target device 100 using the hardware abstraction data extracted from the shared memory 300, and generates a control signal for the control target devices 100.
  • the control signal according to the reference may be output to the control target device 100.
  • the processing cycle of each agent 400 needs to be shorter than the operation cycle of processing the motion information of the system. Accordingly, the agent 400 generates a reference from the sensor data, the device control module 200 generates and outputs a control signal from the reference through the shared memory 300, and the time for updating the sensor data is It may be included in the first operating period of the system. Thus, the series of operations can all be processed within the first operating period.
  • the user system 500 may provide a user interface for controlling and monitoring the agent 400 and the device control module 200.
  • the user system 500 may include middleware for controlling the agent 400, and may provide various interfaces that may be connected to other external systems.
  • FIG. 2 is a flowchart illustrating a control method of a robot control system according to an exemplary embodiment of the present invention.
  • 3 to 4 are diagrams for describing a relationship between a shared memory and a system according to an exemplary embodiment of the present invention.
  • FIG. 5 is a diagram for explaining data exchange between a device control module and an agent according to an embodiment of the present invention.
  • the device control module 200 obtains hardware abstraction data from a reference stored in the shared memory 300.
  • the device control module 200 generates a control signal for hardware control from the hardware abstraction data (S107), and transmits the generated control signal to one or more devices 100 (S109).
  • the device control module 200 receives sensor data from the devices 100 corresponding to the sensor (S111), and updates the received sensor data in the shared memory 300 (S113).
  • the series of operation steps may be all processed within the first period corresponding to the real-time operation period of the robot control system, thereby ensuring real-time.
  • each of the agents 400 and the device control module 200 may perform data exchange and transfer processing using the shared memory 300.
  • the reference corresponding to each device 100 may be stored in the shared memory 300, and the device control module 200 may obtain a reference and use it to output a control signal. .
  • Such a plurality of agents 400 and the device control module 200 may configure a multi-agent system around the shared memory 300.
  • each part performing independent work may be separately developed by several developers, or may have an advantageous structure in a robot control system development environment in which they may collaborate.
  • developers may use the shared memory 300 while interacting with the computational output of another agent 400 while ensuring a development space independent from the process concurrent development model. Will be able to send and receive.
  • the hardware abstraction data may include sensor data, reference data, motion owner- and command data, and the device control module 200 may access only the hardware abstraction data area of the shared memory 300. .
  • the device control module 200 accesses the hardware abstraction data area of the shared memory 300 to update sensor data received from the device 100, or obtains updated reference data to control the device 100. You can generate a signal.
  • the hardware abstraction data may have a data format converted by abstracting detailed data about the robot device control, and the device control module 200 may convert it into an actual hardware control signal and deliver it to the appropriate devices 100. have.
  • the agent 400 developer or user can facilitate the control without a deep understanding of the hardware.
  • the developer or the user may transfer the abstracted hardware input information as a reference through the shared memory 300, and the device control module 200 may generate a low level control signal for controlling the device 100 from the hardware abstraction data.
  • the device control module 200 may manage hardware information required to generate the control signal using the hardware database 250 described above.
  • the hardware information may include, for example, a list of devices 100, joint motor information (deceleration ratio, encoder pulse, driver channel number, etc.), a communication protocol, and the like.
  • the device control module 200 may load the hardware database 250 to determine hardware information of the driving target device 100, thereby generating an optimal control signal for controlling the driving target device 100. can do. In addition, even if there is a change in hardware or using hardware of a new configuration, it is possible to apply only by modifying the hardware database 250, so that it is robust to hardware change and the hardware can provide scalable characteristics.
  • the hardware abstraction data may include reference data, sensor data, motion owner, and command data.
  • the reference data may be updated according to the calculation result in each agent 400, and may include a target value in the current step for the device control module 200 to control each device 100.
  • the reference data may include a joint motion reference and a joint controller reference.
  • the sensor data may include measurement data that the device control module 200 receives from each device 100.
  • the measurement data may include, for example, state information at a current step including an encoder value of the joint device and sensing data.
  • the command data may include command information for controlling the device control module 200 and the agent 400 at a higher system level, and may include command target process information and parameter information.
  • the shared memory 300 may include motion owner information.
  • the hardware abstraction data area of the shared memory 300 may include a memory area 350 for each agent 400 that can update reference data for each agent 400.
  • each agent 400 may update its calculated reference in its memory space area.
  • each agent 400 may calculate and update reference data corresponding to each device 100. For example, when a total of 31 joint devices 100 exist from J1 to J31, a memory space area of each agent 400 may include a reference data area corresponding to each of the joint devices 100. .
  • the shared memory 300 may include a motion owner variable for each of the joint devices 100. Therefore, each motion owner variable space may include the same number of motion owner variables as the number of the joint devices 100.
  • Each motion owner variable may represent one agent having the authority to the joint device 100 among a plurality of preset agents 400. Accordingly, the device control module 200 may determine which agent 400 the control right for the joint device 100 depends on.
  • control right for each joint device 100 may be transferred to another agent 400 or the device control module 200 according to the change of the motion owner variable.
  • the device control module 200 may first identify the agent 400 having the control right of the specific joint device 100 from the motion owner variable.
  • the device control module 200 may collect reference data of the identified agent 400, and combine the collected reference data to generate overall reference data for the overall joint device 100.
  • the device control module 200 may generate a control signal for each device 100 by using the entire reference data, and may appropriately transmit the signal.
  • each joint of the robot can be controlled without collision in different agents 400.
  • one agent 400 controls lower body joints through an algorithm for stabilizing lower body posture, and the other agent 400 generates a specific task motion of the upper body, the results of the two agents 400 are determined. In total, the whole body task of the robot can be performed. This enables efficient control according to the characteristics of the multi-agent system of the robot.
  • FIG. 6 is a block diagram illustrating a device control module according to an embodiment of the present invention.
  • the device control module 200 includes a motion selector 210, a controller signal accumulator 220, a signal combiner 230, and an information handler 240.
  • the reference data for the joint may include two or more reference signals for joint motion control and detailed control. Accordingly, the agent 400 corresponding to each joint device 100 may generate the two or more reference signals as reference data and store the same in the shared memory 300.
  • the reference signal may be referred to as a motion reference and a controller reference.
  • the motion reference may include reference data that provides a dominant value for each joint, and the controller reference may include detailed reference data that is added to or subtracted from the motion reference.
  • the reference is not limited to the name.
  • the motion reference output data M1 to Mm and the controller references M1 to Mm may be input to the device control module 200 from the shared memory 300.
  • one motion reference may be selected for each joint device 100, but all the controller references may be accumulated and added.
  • the motion selector 210 may select motion reference data corresponding to each joint device 100 from the motion reference data based on the motion owner variable information, and output the motion reference data to the signal combiner 230. have. Therefore, one motion reference data may be selected for one joint device 100.
  • controller signal accumulator 220 may accumulate each controller reference data and output the result value to the signal combiner 230 regardless of the motion owner variable.
  • the signal combiner 230 may generate the reference data for each final joint device 100 by synthesizing the motion reference data and the controller reference data accumulated result value, and output them to the appropriate target joint devices 100. Can be.
  • the signal combiner 230 may identify the type of the reference and classify the processing space according to the reference type.
  • the signal combiner 230 may include a type identifier and a spatial processor.
  • the reference data may have other types, such as task processing, as well as joint motion, such that a type identifier may identify whether the task type or the joint type is, and the spatial processor may determine each other according to the type. Can provide processing of other data spaces.
  • separating the motion reference from the controller reference functional separation may be enabled in the process of generating the robot motion. For example, if a bipedal motion is generated, a basic walking pattern is generated in one agent 400 to generate a motion reference, a damping controller is designed in another agent 400, and another agent 400 is generated. By designing a controller to catch the vibration in the controller and outputting it to the controller reference, it is very easy to design and develop.
  • the information handler 240 may perform a function of synthesizing sensor data collected from the sensor device 100 or other measurement target devices and outputting them to the shared memory 300.
  • FIG. 7 is a flowchart illustrating a control operation of the robot control system according to another exemplary embodiment.
  • the robot In general, when a problem occurs in a real experiment using a robot, the robot must be driven again from the beginning. In the case of a mobile platform, the robot initialization process is simple, but when the initialization is difficult in the articulated system or the ground like a humanoid, and it is necessary to initialize it in the air by using a crane, etc., the entire initialization process is very cumbersome and time consuming. do.
  • the device control module 200 can debug and test the robot again without the process of initializing such a robot.
  • system initialization is first performed (S201), and a plurality of agents 400 having respective mutually independent processes operate (S202).
  • the user when the user tests the motion algorithm through the agent 400 and a problem is issued, the user simply passes the motion owner to another agent 400 or the device control module 200, and sends a code for the suspended agent 400. Can be modified.
  • the motion owner variable may be switched back to the original agent 400 (S209).
  • the developer can continue the experiment after bringing the motion owner. As a result, it can accelerate development, and from the user's point of view, it can be further utilized to continuously observe the robot's joint reference on other special eggs to detect the collision and to switch the robot to the motion owner in case of a collision. It has the effect of allowing you to experiment safely.
  • FIG. 8 is a view for explaining the operating environment of the robot system according to an embodiment of the present invention.
  • the robot software in order to use the robot software in general, it is necessary to be able to operate various types of robots, not software that can operate only one robot platform, so that it is extensible and easy to change in robot hardware. It must be adaptable, and not only the actual robot platform but also the robot simulator needs to be controlled by the same software.
  • the robot control system 1000 is capable of utilizing functions of other useful robot middlewares such as a robot operation system (ROS) in the United States or an open platform for robotics services (OPRoS) in Korea. You can build a system. Accordingly, it is possible to provide an environment in which various vision solutions provided by software on a cloud robot system or functions for managing tasks of a robot can be easily applied to the system of the present invention.
  • ROS robot operation system
  • OPRoS open platform for robotics services
  • the device control module 200 controlling the robot devices 100 operates accordingly to provide real-time control of the entire system.
  • the device control module 200 controlling the robot devices 100 operates accordingly to provide real-time control of the entire system.
  • other robot softwares of higher level may provide connection or determination criteria between motions, or may operate several robots simultaneously.
  • FIG. 9 is a diagram showing a hierarchical architecture design of a robot system according to an embodiment of the present invention.
  • the robot control system 1000 processes each data in order to provide an environment in which a plurality of agents or an arbitrary agent are created and operated independently in accordance with an embodiment of the present invention.
  • Modules may include a layered structure.
  • Each layered structure may be connected to the robot control system 1000, or may be implemented in software or hardware on a real-time operating system (RTOS) on which the robot control system 1000 is mounted or installed.
  • RTOS real-time operating system
  • the real-time operating system may provide global timer interrupts to the fourth layer and the second layer to synchronize operation cycles between layers.
  • each agent of the fourth layer may be implemented as a process of the real-time operating system, and may access shared memory, obtain sensor data, and store reference data according to thread operations included in the process.
  • the device control module of the second layer synchronized thereto stores the sensor data of the device in the shared memory and generates the device control signal according to the reference data and the motion owner of the shared memory according to the thread operation on the real-time operating system. Can output to devices.
  • the robot control system 1000 which can be implemented on a real-time operating system, includes a first layer including one or more controlled devices (joints or sensors) included in a robot platform or a simulator, and the first layer.
  • a second layer including a device control module directly controlling the device at an upper end of the layer, a third layer including a shared memory connected to the device control module at an upper end of the second layer, and the first layer;
  • a fourth layer including one or more agents performing an independent process using the shared memory at an upper end of the third layer;
  • a fifth layer that controls the one or more agents according to a user command at an upper end of the fourth layer.
  • each communication protocol may be preset so that the first to fifth layers can communicate only with adjacent layers.
  • Each tier can only access the next tier through the upper or lower tier, and through this controlled system, it can maintain a stabilized and systematic system.
  • each device may be included in the first layer.
  • the devices may include low level robotic devices that are the subjects of substantial control, for example devices of the driver's controller, sensor board or robot simulator.
  • the Diabis control module 200 may always reside in the background and execute the robot to control the robot.
  • the second layer may be the only layer that can directly control the devices of the robotic system.
  • the device control module of the second layer may transfer the reference of the joint generated from the shared memory to the robot device, and conversely obtain the value of the sensor from the device.
  • the second layer may be operated by a real time thread generated from a real time operating system (RTOS), and the thread of the second layer may have a period synchronized with a control period of motion generation. If the device is linked with the simulator, the thread of the second layer may operate in synchronization with the simulator's time.
  • the second tier can also have non-real-time threads that can read and interpret instructions, and non-real-time threads can receive and process other instructions in the remaining time of the real-time thread.
  • the device control module may have a hierarchical architecture residing in the background of the system and transferring control signals for controlling the device from the reference obtained from the shared memory to the first layer.
  • the third layer may be a shared memory layer, and may include an abstraction data unit and a user-defined data unit of hardware.
  • the hardware abstraction data unit may include the aforementioned hardware abstraction data
  • the type of hardware abstraction data may include sensor data, reference data, a motion owner, and command information.
  • the device control module of the second layer may be connected only to the shared memory of the third layer.
  • the user defined data unit may temporarily or permanently store agent shared data shared among a plurality of agent processes existing in the fourth layer and robot driving data according to user definition.
  • the fourth layer is a layer for driving each agent process for the user of the external process to create their own robot motion, etc., since the agent processes are executed independently of each other in the layer like grape grains, AL).
  • Each agent independently reads sensor data from the shared memory of the third layer, generates a motion, and updates the joint reference of the generated motion in the shared memory.
  • agent processes of the fourth layer may set to the motion owner which eggs have ownership of the reference of the joint.
  • each agent can create a very short period of fast real-time threads from the real-time operating system (RTOS), which is used to synchronize the motion generation threads of each agent with the real-time threads of the fourth layer device control module described above.
  • RTOS real-time operating system
  • a thread generating motion can be synchronized in real time with the device control module by the fast thread, and the operation can be resumed at the same time as the synchronization, and suspended after one reference operation loop. have. This operation may be repeated repeatedly to control the robot control system 1000.
  • agents not all agents directly generate the motion of the robot, but there may be an agent that detects a collision and brings the motion owner from another agent to make the robot safe, and may perform ancillary processing to help other agents.
  • agent N in FIG. 9 there may also be an agent (agent N in FIG. 9) that is implemented as a communication module (comm. Module) to exchange information with the fifth layer and to control other agencies.
  • the fifth layer may include a user interface module that provides a control function corresponding to the agents and a monitoring function for the robot control system 1000.
  • the fifth layer may include various processes to provide convenience for controlling the robot.
  • the fifth layer may include a GUI (Graphic User Interface) for easily giving a command, monitoring, or a logging program for storing data.
  • GUI Graphic User Interface
  • the fifth layer is an accessible area of an external process, and existing middleware such as ROS and OPRoS may provide one or more interface functions for controlling agents.
  • existing middleware such as ROS and OPRoS may provide one or more interface functions for controlling agents.
  • the robot control system 1000 may include a structure that can be infinitely extended, thereby providing a structural possibility to control a hyper multi-agent system. Can be.
  • the above-described systems and methods according to the present invention can be stored in a computer-readable recording medium produced as a program for execution in a computer
  • examples of the computer-readable recording medium is ROM, RAM, CD- ROMs, magnetic tapes, floppy disks, optical data storage, and the like, and also include those implemented in the form of carrier waves (eg, transmission over the Internet).
  • the computer readable recording medium can be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.
  • functional programs, codes, and code segments for implementing the method can be easily inferred by programmers in the art to which the present invention belongs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manipulator (AREA)
  • Numerical Control (AREA)

Abstract

A real-time robot control system, according to an embodiment of the present invention, comprises: a first hierarchy comprising one or more devices to be controlled; a second hierarchy comprising a device control module which is for directly controlling the devices on the upper level of the first hierarchy; a third hierarchy comprising shared memory which is connected to the device control module on the upper level of the second hierarchy; a fourth hierarchy comprising one or more agents which are for performing independent processes using the shared memory on the upper level of the third hierarchy; and a fifth hierarchy for controlling the one or more agents in accordance with a user command on the upper level of the fourth hierarchy.

Description

계층적 아키텍처를 갖는 실시간 디바이스 제어 시스템 및 이를 이용한 실시간 로봇 제어 시스템Real-time device control system with hierarchical architecture and real-time robot control system using same

본 발명은 실시간 디바이스 제어 시스템 및 실시간 로봇 시스템에 관한 것이다. 보다 구체적으로, 본 발명은 정확한 실시간 처리가 가능하며, 개발 및 디버깅이 용이하고, 하드웨어적으로 강인한 계층적 아키텍처를 갖는 실시간 디바이스 제어 시스템 및 이를 이용한 실시간 로봇 제어 시스템에 관한 것이다.The present invention relates to a real time device control system and a real time robotic system. More specifically, the present invention relates to a real-time device control system having a hierarchical architecture capable of accurate real-time processing, easy development and debugging, and robust hardware, and a real-time robot control system using the same.

현재 국내외의 많은 기관에서 로봇에 대한 연구가 활발하게 이루어지고 있다. 로봇은 크게 하드웨어와 소프트웨어로 나눌 수 있고, 이들이 통합되어 하나의 시스템을 이루게 된다.Currently, research on robots is being actively conducted in many institutions at home and abroad. Robots can be largely divided into hardware and software, and they are integrated to form a system.

로봇 하드웨어를 구성하는 요소로는 로봇 관절을 움직이기 위한 구동기와 제어기, 배터리와 전원 제어기, 통신 모듈, 센서, 로봇의 외골격, 전자 회로, 배터리 등이 있다. 이러한 여러 종류의 요소들을 각자의 원하는 로봇의 특성대로 조합하여 로봇 하드웨어 플랫폼을 형성한다.Components of the robot hardware include a driver and a controller for moving the robot joint, a battery and a power controller, a communication module, a sensor, an exoskeleton of the robot, an electronic circuit, and a battery. These different types of elements are combined according to the characteristics of each desired robot to form a robot hardware platform.

각각의 요소들도 설계 목적에 따라서 크기, 외형, 성능, 제조사 등이 다르고, 결과적으로 무궁무진한 종류의 로봇 하드웨어 플랫폼을 만들게 된다. 실제로도 전세계적으로 매우 다양한 로봇들이 존재하고 있다. 그래서 공통적으로 목적하는 로봇 플랫폼의 성능과 기능을 조사하고, 하나의 대표되는 표준형 로봇 플랫폼을 개발하려는 연구가 전 세계적으로 진행 중이다.Each of these elements will vary in size, appearance, performance, and manufacturer, depending on the design purpose, resulting in an endless variety of robotic hardware platforms. Indeed, there are many different robots around the world. Therefore, research is underway around the world to investigate the performance and function of a common target robot platform and to develop one representative standard robot platform.

또한, 하드웨어적으로 위와 같이 표준형 로봇 플랫폼을 개발하는 방향의 연구가 있는 것과 같이, 소프트웨어도 공용으로 사용 가능한 표준형 로봇 소프트웨어에 대한 연구가 있다. 로봇 하드웨어에 속하는 구동 제어기나 센서와 같은 로봇 디바이스들을 제어하기 위한 소프트웨어, 로봇 모션을 쉽게 개발하도록 돕기 위한 소프트웨어, 태스크들간의 연관관계를 결정하여 로봇 운영을 돕는 소프트웨어, 네비게이션이나 비전 솔루션들을 제공하는 소프트웨어 등 다양한 소프트웨어의 종류들이 있으며, 표준형 소프트웨어의 개발도 표준형 하드웨어의 개발과 유사한 목적 하에 연구가 진행되고 있다.In addition, there is a study on the standard robot software that can be used in common, as there is a study on the development of a standard robot platform as described above in hardware. Software to control robotic devices such as drive controllers and sensors belonging to the robot hardware, software to help develop robot motion easily, software to help robots operate by determining the relationship between tasks, software to provide navigation or vision solutions There are various types of software, and the development of standard software is being conducted for the purpose similar to the development of standard hardware.

그러나, 상기 표준형 소프트웨어의 개발에 있어서, 여러 개발자들이 공통으로 요구하는 사항들을 해결하기 위한 표준 솔루션을 제공하는 것이 어려운 실정이다.However, in the development of the standard software, it is difficult to provide a standard solution for solving the common requirements of various developers.

특히, 하드웨어적으로 변경되는 사항이 많아짐에 따라 개발자들간 협업이 어려울 뿐만 아니라, 여러 사람이 동시에 개발한 기능 또는 프로세스에 의해 처리가 중복되는 문제점들이 발생할 수 있다. 이에 따라, 실시간 동기화가 어렵고, 하드웨어의 안정성 또는 강인성이 떨어질 수 있으며, 개발 시간 또한 오래 걸리는 문제점이 있다.In particular, as a lot of changes are made in hardware, it is not only difficult to collaborate among developers, but also a problem may occur that processes are overlapped by functions or processes developed by several people at the same time. Accordingly, the real-time synchronization is difficult, the stability or robustness of the hardware may be degraded, and the development time also takes a long time.

또한, 하드웨어 개발에 있어서도 상기 표준 소프트웨어와의 호환성을 유지하기 위해 추가적인 기능 변경을 부가해야 함으로써 구동 성능이 떨어질 수 있는 문제점이 있다.In addition, in hardware development, there is a problem in that driving performance may be degraded by adding an additional function change in order to maintain compatibility with the standard software.

본 발명은 상기과 같은 과제를 해결하기 위한 것으로, 실시간성이 필요한 로봇 제어 시스템에 있어서, 동일한 하드웨어 제어 및 처리에 대한 여러 독립적 프로세스들이 공존할 수 있으면서도, 이에 따른 로봇의 동작이 안정적으로 제어될 수 있고, 그 강인성 및 확장성을 제공할 수 있는 계층적 아키텍처를 갖는 실시간 디바이스 제어 시스템 및 이를 이용한 실시간 로봇 제어 시스템을 제공하는데 그 목적이 있다.The present invention is to solve the above problems, in the robot control system that requires real-time, while several independent processes for the same hardware control and processing can coexist, the operation of the robot can be stably controlled accordingly The purpose of the present invention is to provide a real-time device control system having a hierarchical architecture capable of providing robustness and scalability, and a real-time robot control system using the same.

상기와 같은 과제를 해결하기 위한 본 발명의 실시 예에 따른 시스템은, 실시간 디바이스 제어 시스템에 있어서, 상기 하나 이상의 제어 대상 디바이스를 포함하는 제1 계층; 상기 제1 계층의 상위단에서 상기 디바이스를 직접적으로 제어하는 디바이스 제어 모듈을 포함하는 제2 계층; 상기 제2 계층의 상위단에서 상기 디바이스 제어 모듈과 연결되는 공유 메모리를 포함하는 제3 계층; 상기 제3 계층의 상위단에서 상기 공유 메모리를 이용한 독립적인 프로세스를 수행하는 하나 이상의 에이전트들을 포함하는 제4 계층; 및 상기 제4 계층의 상위단에서 사용자 명령에 따라 상기 하나 이상의 에이전트들을 제어하는 제5 계층을 포함한다.According to an aspect of the present disclosure, there is provided a system, comprising: a first layer including the one or more devices to be controlled; A second layer including a device control module directly controlling the device at an upper end of the first layer; A third layer including a shared memory connected to the device control module at an upper end of the second layer; A fourth layer including one or more agents performing an independent process using the shared memory at an upper end of the third layer; And a fifth layer that controls the one or more agents according to a user command at an upper end of the fourth layer.

또한, 상기와 같은 과제를 해결하기 위한 본 발명의 실시 예에 따른 시스템은, 실시간 로봇 제어 시스템에 있어서, 로봇의 관절 또는 센서에 대응하는 하나 이상의 제어 대상 디바이스; 및 상기 하나 이상의 제어 대상 디바이스와 연결되어 상기 디바이스를 운영하는 제어 시스템을 포함하고, 상기 제어 시스템은 하나 이상의 제어 대상 디바이스를 포함하는 제1 계층과, 상기 제1 계층의 상위 레이어에서 상기 디바이스를 직접적으로 제어하는 디바이스 제어 모듈을 포함하는 제2 계층과, 상기 제2 계층의 상위 레이어에서 상기 디바이스 제어 모듈과 연결되는 공유 메모리를 포함하는 제3 계층과, 상기 제3 계층의 상위 레이어에서 상기 공유 메모리를 이용한 독립적인 프로세스를 수행하는 하나 이상의 에이전트들을 포함하는 제4 계층; 및 상기 제4 계층의 상위 레이어에서 사용자 명령에 따라 상기 하나 이상의 에이전트들을 제어하는 제5 계층을 포함하여 상기 각 계층간 상호 인접한 계층간 통신을 이용하여 상기 하나 이상의 디바이스를 운영한다.In addition, the system according to an embodiment of the present invention for solving the above problems, the real-time robot control system, at least one control target device corresponding to the joint or sensor of the robot; And a control system connected to the at least one controlled device to operate the device, wherein the control system includes a first layer including at least one controlled device and a device directly at an upper layer of the first layer. A second layer including a device control module configured to control a third layer; a third layer including a shared memory connected to the device control module at an upper layer of the second layer; and the shared memory at an upper layer of the third layer. A fourth layer including one or more agents for performing an independent process using; And a fifth layer that controls the one or more agents according to a user command in an upper layer of the fourth layer, to operate the one or more devices using inter-layer communication adjacent to each other.

한편, 상기와 같은 과제를 해결하기 위한 방법은, 상기 방법을 컴퓨터에서 실행시키기 위한 프로그램 및 상기 프로그램이 기록된 기록 매체로 구현될 수 있다.On the other hand, the method for solving the above problems can be implemented with a program for executing the method on a computer and a recording medium on which the program is recorded.

본 발명의 실시 예에 따르면, 상호 독립적인 프로세스를 갖는 복수의 에이전트와 상기 복수의 에이전트들의 동작에 따라 생성되는 레퍼런스가 저장되는 공유 메모리를 제공하고, 상기 레퍼런스를 이용하여 상기 하드웨어 디바이스로를 제어하는 별도의 디바이스 제어 모듈을 제공함으로써, 실시간성이 필요한 로봇 제어 시스템에 있어서, 동일한 하드웨어 제어에 대한 여러 독립적 프로세스들이 공존할 수 있으면서도, 이에 따른 로봇의 동작이 안정적으로 제어될 수 있다.According to an embodiment of the present invention, a plurality of agents having mutually independent processes and a shared memory in which references generated according to operations of the plurality of agents are stored are provided, and the reference to the hardware device is controlled using the reference. By providing a separate device control module, in a robot control system requiring real-time, while several independent processes for the same hardware control can coexist, the robot operation can be stably controlled accordingly.

이에 따른 본 발명의 실시 예에 따르면, 각 에이전트를 독립적으로 개발하더라도, 공유 메모리를 통해 레퍼런스의 합성 및 선별이 가능하게 되어, 상호 충돌가능성을 줄일 수 있고 강인한 실시간성을 확보할 수 있다. 또한, 오류 발생시의 에이전트 대체 및 실시간 디버깅 등이 용이하게 되므로, 협업 편의성 및 확장성을 가져올 수 있다.Accordingly, according to an embodiment of the present invention, even if each agent is independently developed, it is possible to synthesize and select a reference through a shared memory, thereby reducing the possibility of mutual collision and securing robust real-time. In addition, since agent replacement and real-time debugging are facilitated when an error occurs, collaboration convenience and scalability can be brought.

또한, 본 발명의 실시 예에 따르면, 각각의 디바이스, 디바이스 제어 모듈, 공유 메모리 및 에이전트들간 계층화된 아키텍처를 제공하여, 통제된 시스템을 통해서 안정화되고 체계적인 시스템을 유지할 수 있는 효과가 있다.In addition, according to an embodiment of the present invention, by providing a layered architecture between each device, device control module, shared memory and agents, it is possible to maintain a stable and systematic system through a controlled system.

도 1은 본 발명의 실시 예에 따른 전체 시스템을 개략적으로 도시한 개념도이다.1 is a conceptual diagram schematically showing an entire system according to an embodiment of the present invention.

도 2는 본 발명의 실시 예에 따른 로봇 제어 시스템의 제어 방법을 설명하기 위한 흐름도이다.2 is a flowchart illustrating a control method of a robot control system according to an exemplary embodiment of the present invention.

도 3 내지 도 4는 본 발명의 실시 예에 따른 공유 메모리 및 시스템간 관계를 설명하기 위한 도면들이다.3 to 4 are diagrams for describing a relationship between a shared memory and a system according to an exemplary embodiment of the present invention.

도 5는 본 발명의 실시 예에 따른 디바이스 제어 모듈 및 에이전트간 데이터교환을 설명하기 위한 도면이다.5 is a diagram for explaining data exchange between a device control module and an agent according to an embodiment of the present invention.

도 6은 본 발명의 실시 예에 따른 디바이스 제어 모듈을 설명하기 위한 블록도이다.6 is a block diagram illustrating a device control module according to an embodiment of the present invention.

도 7은 본 발명의 다른 일 실시 예에 따른 로봇 제어 시스템의 제어 동작을 설명하기 위한 흐름도이다.7 is a flowchart illustrating a control operation of the robot control system according to another exemplary embodiment.

도 8은 본 발명의 실시 예에 따른 계층 구조 및 동작환경을 설명하기 위한 도면이다.8 is a diagram illustrating a hierarchical structure and an operating environment according to an exemplary embodiment of the present invention.

이하의 내용은 단지 본 발명의 원리를 예시한다. 그러므로 당업자는 비록 본 명세서에 명확히 설명되거나 도시되지 않았지만 본 발명의 원리를 구현하고 본 발명의 개념과 범위에 포함된 다양한 장치를 발명할 수 있는 것이다. 또한, 본 명세서에 열거된 모든 조건부 용어 및 실시예들은 원칙적으로, 본 발명의 개념이 이해되도록 하기 위한 목적으로만 명백히 의도되고, 이와 같이 특별히 열거된 실시예들 및 상태들에 제한적이지 않는 것으로 이해되어야 한다.The following merely illustrates the principles of the invention. Therefore, those skilled in the art, although not explicitly described or illustrated herein, can embody the principles of the present invention and invent various devices that fall within the spirit and scope of the present invention. Furthermore, all conditional terms and embodiments listed herein are in principle clearly intended for the purpose of understanding the concept of the invention and are not to be limited to the specifically listed embodiments and states. Should be.

또한, 본 발명의 원리, 관점 및 실시예들 뿐만 아니라 특정 실시예를 열거하는 모든 상세한 설명은 이러한 사항의 구조적 및 기능적 균등물을 포함하도록 의도되는 것으로 이해되어야 한다. 또한 이러한 균등물들은 현재 공지된 균등물뿐만 아니라 장래에 개발될 균등물 즉 구조와 무관하게 동일한 기능을 수행하도록 발명된 모든 소자를 포함하는 것으로 이해되어야 한다.In addition, it is to be understood that all detailed descriptions, including the principles, aspects, and embodiments of the present invention, as well as listing specific embodiments, are intended to include structural and functional equivalents of these matters. In addition, these equivalents should be understood to include not only equivalents now known, but also equivalents to be developed in the future, that is, all devices invented to perform the same function regardless of structure.

따라서, 예를 들어, 본 명세서의 블럭도는 본 발명의 원리를 구체화하는 예시적인 회로의 개념적인 관점을 나타내는 것으로 이해되어야 한다. 이와 유사하게, 모든 흐름도, 상태 변환도, 의사 코드 등은 컴퓨터가 판독 가능한 매체에 실질적으로 나타낼 수 있고 컴퓨터 또는 프로세서가 명백히 도시되었는지 여부를 불문하고 컴퓨터 또는 프로세서에 의해 수행되는 다양한 프로세스를 나타내는 것으로 이해되어야 한다.Thus, for example, it should be understood that the block diagrams herein represent a conceptual view of example circuitry embodying the principles of the invention. Similarly, all flowcharts, state transitions, pseudocodes, and the like are understood to represent various processes performed by a computer or processor, whether or not the computer or processor is substantially illustrated on a computer readable medium and whether the computer or processor is clearly shown. Should be.

프로세서 또는 이와 유사한 개념으로 표시된 기능 블럭을 포함하는 도면에 도시된 다양한 소자의 기능은 전용 하드웨어뿐만 아니라 적절한 소프트웨어와 관련하여 소프트웨어를 실행할 능력을 가진 하드웨어의 사용으로 제공될 수 있다. 프로세서에 의해 제공될 때, 상기 기능은 단일 전용 프로세서, 단일 공유 프로세서 또는 복수의 개별적 프로세서에 의해 제공될 수 있고, 이들 중 일부는 공유될 수 있다.The functionality of the various elements shown in the figures, including functional blocks represented by a processor or similar concept, can be provided by the use of dedicated hardware as well as hardware capable of executing software in association with appropriate software. When provided by a processor, the functionality may be provided by a single dedicated processor, by a single shared processor or by a plurality of individual processors, some of which may be shared.

또한 프로세서, 제어 또는 이와 유사한 개념으로 제시되는 용어의 명확한 사용은 소프트웨어를 실행할 능력을 가진 하드웨어를 배타적으로 인용하여 해석되어서는 아니되고, 제한 없이 디지털 신호 프로세서(DSP) 하드웨어, 소프트웨어를 저장하기 위한 롬(ROM), 램(RAM) 및 비 휘발성 메모리를 암시적으로 포함하는 것으로 이해되어야 한다. 주지관용의 다른 하드웨어도 포함될 수 있다.In addition, the explicit use of terms presented in terms of processor, control, or similar concept should not be interpreted exclusively as a citation to hardware capable of running software, and without limitation, ROM for storing digital signal processor (DSP) hardware, software. (ROM), RAM, and non-volatile memory are to be understood to implicitly include. Other hardware for the governor may also be included.

본 명세서의 청구범위에서, 상세한 설명에 기재된 기능을 수행하기 위한 수단으로 표현된 구성요소는 예를 들어 상기 기능을 수행하는 회로 소자의 조합 또는 펌웨어/마이크로 코드 등을 포함하는 모든 형식의 소프트웨어를 포함하는 기능을 수행하는 모든 방법을 포함하는 것으로 의도되었으며, 상기 기능을 수행하도록 상기 소프트웨어를 실행하기 위한 적절한 회로와 결합된다. 이러한 청구범위에 의해 정의되는 본 발명은 다양하게 열거된 수단에 의해 제공되는 기능들이 결합되고 청구항이 요구하는 방식과 결합되기 때문에 상기 기능을 제공할 수 있는 어떠한 수단도 본 명세서로부터 파악되는 것과 균등한 것으로 이해되어야 한다.In the claims of this specification, components expressed as means for performing the functions described in the detailed description include all types of software including, for example, a combination of circuit elements or firmware / microcode, etc. that perform the functions. It is intended to include all methods of performing a function which are combined with appropriate circuitry for executing the software to perform the function. The invention, as defined by these claims, is equivalent to what is understood from this specification, as any means capable of providing such functionality, as the functionality provided by the various enumerated means are combined, and in any manner required by the claims. It should be understood that.

상술한 목적, 특징 및 장점은 첨부된 도면과 관련한 다음의 상세한 설명을 통하여 보다 분명해질 것이며, 그에 따라 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 것이다. 또한, 본 발명을 설명함에 있어서 본 발명과 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에 그 상세한 설명을 생략하기로 한다. The above objects, features, and advantages will become more apparent from the following detailed description taken in conjunction with the accompanying drawings, whereby those skilled in the art may easily implement the technical idea of the present invention. There will be. In addition, in describing the present invention, when it is determined that the detailed description of the known technology related to the present invention may unnecessarily obscure the gist of the present invention, the detailed description thereof will be omitted.

이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 일실시예를 상세히 설명하기로 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 실시 예에 따른 전체 시스템을 개략적으로 도시한 개념도이다.1 is a conceptual diagram schematically showing an entire system according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 실시 예에 따른 전체 시스템은, 하나 이상의 디바이스(100), 디바이스 제어 모듈(200), 공유 메모리(300), 하나 이상의 에이전트(400) 및 사용자 시스템(500)을 포함한다.Referring to FIG. 1, an entire system according to an embodiment of the present invention may include one or more devices 100, a device control module 200, a shared memory 300, one or more agents 400, and a user system 500. Include.

디바이스(100)는 최종적으로 로봇 제어 시스템의 동작을 수행하는 하나 이상의 구동 장치를 포함할 수 있다. 구동 장치는 하드웨어 장치 또는 소프트웨어 장치를 포함할 수 있다. 구동 장치는 예를 들어, 관절 모터에 대한 구동을 제어하는 관절 디바이스, 센서 보드를 포함하는 센서 디바이스 또는 시뮬레이터 장치들중 적어도 하나를 포함할 수 있다.The device 100 may include one or more driving devices that finally perform the operation of the robot control system. The drive device may comprise a hardware device or a software device. The drive device may include, for example, at least one of a joint device, a sensor device including a sensor board, or a simulator device that controls drive for the articulated motor.

또한, 디바이스(100)는 디바이스 제어 모듈(200)로부터 수신되는 제어 신호에 따라 제어되고, 상기 디바이스 제어 모듈(200)로 센서 데이터와 같은 다양한 데이터를 출력할 수 있다. 또한, 여기서 디바이스(100)라는 용어는 하드웨어에 한정되는 것이 아니라, 실제 하드웨어 디바이스를 구동하기 위한 소프트웨어 드라이버를 포함하는 개념으로 이용될 수 있다. 따라서, 각 디바이스(100)는 디바이스 제어 모듈(200)과 물리적 및 소프트웨어적으로도 연결될 수 있다.In addition, the device 100 may be controlled according to a control signal received from the device control module 200, and may output various data such as sensor data to the device control module 200. In addition, the term device 100 is not limited to hardware, but may be used as a concept including a software driver for driving an actual hardware device. Accordingly, each device 100 may be physically and softwarely connected to the device control module 200.

그리고, 각 디바이스(100)는 디바이스 제어 모듈(200)과의 통신 네트워크를 형성할 수 있다. 통신 네트워크는 시스템 안정성을 위해 CAN(Controller Area Network)방식의 프로토콜을 이용한 시스템 네트워크를 형성할 수 있다.Each device 100 may form a communication network with the device control module 200. The communication network may form a system network using a controller area network (CAN) protocol for system stability.

예를 들어, 각각의 디바이스(100)는 디바이스 제어 모듈(200)과 하나 이상의 CAN 통신 채널로 연결될 수 있으며, 상기 CAN 통신 채널을 통해 미리 설정된 제어 주기에 따라, CAN 프레임 데이터로 구성되는 메시지를 수신하거나 상기 디바이스 제어 모듈(200)로 메시지를 출력할 수 있다. 여기서, 상기 메시지는 모터 제어 레퍼런스, 엔코더 값, 제어기 상태 값, PWM(Pulse Width Modulation) 명령, 센서 값 또는 기타 다양한 설정 또는 출력 값들을 포함할 수 있다.For example, each device 100 may be connected to the device control module 200 through one or more CAN communication channels, and receive a message composed of CAN frame data according to a preset control period through the CAN communication channel. Alternatively, a message may be output to the device control module 200. Here, the message may include a motor control reference, an encoder value, a controller state value, a pulse width modulation (PWM) command, a sensor value, or various other setting or output values.

그리고, 디바이스 제어 모듈(200)은 상기 복수의 에이전트(400)들로부터 생성되어 상기 공유 메모리에 저장된 각각의 레퍼런스로부터, 하나 이상의 디바이스(100) 제어를 위한 하드웨어 제어 데이터를 획득하고, 상기 하드웨어 제어 데이터로부터 선택되는 상기 하나 이상의 디바이스(100)로 상기 레퍼런스에 따른 제어 신호를 전달한다.The device control module 200 obtains hardware control data for controlling one or more devices 100 from each reference generated from the plurality of agents 400 and stored in the shared memory, and the hardware control data. And transmits a control signal according to the reference to the one or more devices 100 selected from.

디바이스 제어 모듈(200)은 로봇 제어 시스템의 제어를 위한 운영 시스템상에 항상 상주할 수 있으며, 백그라운드에서 실행될 수 있다.The device control module 200 may always reside on an operating system for controlling the robot control system and may be executed in the background.

디바이스 제어 모듈(200)은 상기 공유 메모리(300)를 참조하여 디바이스(100)를 유일하게 직접적으로 통신할 수 있고, 상기 통신 채널을 통해 제어 신호를 전달하거나 센서 신호를 수신할 수 있다.The device control module 200 may uniquely directly communicate the device 100 with reference to the shared memory 300, and may transmit a control signal or receive a sensor signal through the communication channel.

예를 들어, 디바이스 제어 모듈(200)은 관절 디바이스(100)의 제어를 위한 레퍼런스를 상기 관절 디바이스(100)로 전달하거나, 센서 디바이스(100)로부터 필요한 센서 정보를 수신할 수 있다.For example, the device control module 200 may transfer a reference for controlling the joint device 100 to the joint device 100 or receive necessary sensor information from the sensor device 100.

또한, 상기 디바이스 제어 모듈(200)은 상기 운영 시스템상에 생성된 실시간 쓰레드(thread)를 포함할 수 있다. 그리고, 상기 쓰레드는 시스템의 모션 생성 동작 주기와 동기화됨으로써 실시간 처리를 가능하게 한다. 또한, 디바이스 제어 모듈(200)에는 데이터 리딩 및 변환 등의 처리를 위한 비실시간 쓰레드를 더 포함할 수 있다.In addition, the device control module 200 may include a real-time thread created on the operating system. The thread is synchronized with the motion generation operation cycle of the system to enable real time processing. In addition, the device control module 200 may further include a non-real time thread for processing data reading and conversion.

그리고, 상기 복수의 에이전트(400)들은 상호 독립적인 프로세스를 갖는 독립적인 소프트웨어 모듈로 구현될 수 있다. 예를 들어, 에이전트(400)들은 각각 서로 다른 모션을 처리하고, 이에 대응하는 레퍼런스를 출력하기 위한 프로세스를 수행할 수 있다. 예를 들어, 각 에이전트(400)들은 모션 에이전트, 컨트롤러 에이전트, 통신 에이전트 또는 워킹(walking) 에이전트, 댐핑(damping) 에이전트, 기타 다양한 에이전트를 포함할 수 있다.In addition, the plurality of agents 400 may be implemented as independent software modules having independent processes. For example, the agents 400 may each process different motions and perform a process for outputting a reference corresponding thereto. For example, each agent 400 may include a motion agent, a controller agent, a communication agent or a walking agent, a damping agent, and various other agents.

상기와 같은 에이전트(400)들은 기능적으로 프로세스가 분리되어 있기 때문에, 힙(heap), 데이터(data) 및 스태틱(static) 메모리를 공유하지 않고, 각각의 쓰레드를 생성하여 동작할 수 있으며, 상호 공유를 위한 필요 데이터는 각각 공유 메모리(300)로 제공할 수 있으며, 이에 따른 상호 충돌 없이 유기적인 처리가 가능하게 되며, 소프트웨어 개발 및 처리가 용이하게 된다.Since the agents 400 are functionally separated from each other, the agents 400 can create and operate respective threads without sharing heap, data, and static memory, and mutually share them. The necessary data for each can be provided to the shared memory 300, thereby allowing organic processing without mutual collision, and facilitates software development and processing.

특히, 본 발명의 실시 예에 따르면, 상기 복수의 에이전트(400)들은 상호 독립된 프로세스의 동작에 따라, 상기 공유 메모리(300)로부터 센서 데이터를 본 발명의 실시 예에 따르면, 각각의 에이전트(400)들은 각각 정의된 프로세스에 따라 공유 메모리(300)의 하드웨어 추상화 데이터 및 사용자 정의 데이터를 참조하고, 이에 기초하여 생성되는 레퍼런스 데이터를 공유 메모리(300)의 하드웨어 추상화 데이터에 저장할 수 있다.In particular, according to an embodiment of the present invention, the plurality of agents 400 according to the operation of the mutually independent process, the sensor data from the shared memory 300 according to an embodiment of the present invention, each agent 400 Each may refer to hardware abstraction data and user-defined data of the shared memory 300 according to a defined process, and store the reference data generated based on the hardware abstraction data of the shared memory 300.

여기서, 사용자 정의 데이터는 에이전트(400)간 정보 공유를 위한 공유 데이터 및 사용자 정의 가능한 기타 시스템 구동을 위한 다양한 데이터를 포함할 수 있다.Here, the user defined data may include shared data for sharing information between the agents 400 and various data for driving other user-definable systems.

그리고, 하드웨어 추상화 데이터는 디바이스(100)를 제어하기 위해 추상화된 레퍼런스, 센서 데이터, 모션 오너 변수 및 명령 데이터를 포함할 수 있다. 그리고, 디바이스 제어 모듈(200)은 상기 하드웨어 추상화 데이터와 하드웨어 데이터베이스(250)에 미리 저장된 하드웨어 정보를 이용하여, 각 디바이스(100)별 제어 신호를 생성할 수 있다.In addition, the hardware abstraction data may include abstracted reference, sensor data, motion owner variable, and command data to control the device 100. The device control module 200 may generate a control signal for each device 100 by using the hardware abstraction data and hardware information previously stored in the hardware database 250.

이에 따라, 디바이스 제어 모듈(200)은 상기 공유 메모리(300)로부터 추출되는 하드웨어 추상화 데이터를 이용하여, 제어 대상 디바이스(100)를 식별하고, 제어 대상 디바이스(100)들에 대한 제어 신호를 생성하여, 제어 대상 디바이스(100)로 상기 레퍼런스에 따른 제어 신호를 출력할 수 있다.Accordingly, the device control module 200 identifies the control target device 100 using the hardware abstraction data extracted from the shared memory 300, and generates a control signal for the control target devices 100. The control signal according to the reference may be output to the control target device 100.

그리고, 강인한 실시간성의 보장을 위해, 각 에이전트(400)들의 처리 주기는 시스템의 모션 정보를 처리하는 동작 주기보다 짧을 필요성이 있다. 이에 따라, 상기 에이전트(400)들이 센서 데이터로부터 레퍼런스를 생성하고, 공유 메모리(300)를 통해 상기 디바이스 제어 모듈(200)이 레퍼런스로부터 제어 신호를 생성 및 출력하며, 센서 데이터를 갱신하는 시간은 상기 시스템의 제1 동작 주기 내에 포함될 수 있다. 따라서, 상기 일련의 동작들은 상기 제1 동작 주기 내에 모두 처리될 수 있다.And, in order to ensure robust real-time, the processing cycle of each agent 400 needs to be shorter than the operation cycle of processing the motion information of the system. Accordingly, the agent 400 generates a reference from the sensor data, the device control module 200 generates and outputs a control signal from the reference through the shared memory 300, and the time for updating the sensor data is It may be included in the first operating period of the system. Thus, the series of operations can all be processed within the first operating period.

한편, 사용자 시스템(500)은 에이전트(400) 및 디바이스 제어 모듈(200)의 제어 및 모니터링을 위한 유저 인터페이스를 제공할 수 있다. 또한, 사용자 시스템(500)은 에이전트(400)의 제어를 위한 미들웨어를 포함할 수도 있으며, 기타 외부 시스템과 연결될 수 있는 다양한 인터페이스를 제공할 수 있다.Meanwhile, the user system 500 may provide a user interface for controlling and monitoring the agent 400 and the device control module 200. In addition, the user system 500 may include middleware for controlling the agent 400, and may provide various interfaces that may be connected to other external systems.

도 2는 본 발명의 실시 예에 따른 로봇 제어 시스템의 제어 방법을 설명하기 위한 흐름도이다.2 is a flowchart illustrating a control method of a robot control system according to an exemplary embodiment of the present invention.

그리고, 도 3 내지 도 4는 본 발명의 실시 예에 따른 공유 메모리 및 시스템간 관계를 설명하기 위한 도면들이다.3 to 4 are diagrams for describing a relationship between a shared memory and a system according to an exemplary embodiment of the present invention.

또한, 도 5는 본 발명의 실시 예에 따른 디바이스 제어 모듈 및 에이전트간 데이터교환을 설명하기 위한 도면이다.5 is a diagram for explaining data exchange between a device control module and an agent according to an embodiment of the present invention.

이하에서는 상기 도 2 내지 도 5를 참조하여 본 발명의 로봇 제어 시스템과 그 제어 방법에 대해 보다 구체적으로 설명하도록 한다.Hereinafter, the robot control system and the control method of the present invention will be described in more detail with reference to FIGS. 2 to 5.

도 2를 참조하면, 본 발명의 실시 예에 따른 로봇 제어 시스템의 제어 방법은 먼저 상호 독립적인 프로세스를 갖는 복수의 에이전트(400)들의 동작이 수행된다(S101).Referring to FIG. 2, in the control method of the robot control system according to an exemplary embodiment of the present invention, operations of a plurality of agents 400 having mutually independent processes are first performed (S101).

그리고, 디바이스 제어 모듈(200)은 공유 메모리(300)에 저장된 레퍼런스로부터 하드웨어 추상화 데이터를 획득한다(S103).In operation S103, the device control module 200 obtains hardware abstraction data from a reference stored in the shared memory 300.

그리고, 디바이스 제어 모듈(200)은 하드웨어 추상화 데이터로부터 하드웨어 제어를 위한 제어 신호를 생성하며(S107), 생성된 제어 신호를 하나 이상의 디바이스(100)들로 전달한다(S109).In addition, the device control module 200 generates a control signal for hardware control from the hardware abstraction data (S107), and transmits the generated control signal to one or more devices 100 (S109).

한편, 디바이스 제어 모듈(200)은 센서에 대응하는 디바이스(100)들로부터 센서 데이터를 수신하고(S111), 상기 수신된 센서 데이터를 공유 메모리(300)에 업데이트한다(S113).Meanwhile, the device control module 200 receives sensor data from the devices 100 corresponding to the sensor (S111), and updates the received sensor data in the shared memory 300 (S113).

그리고, 상기 일련의 동작 단계들은 로봇 제어 시스템의 실시간 동작 주기에 대응하는 제1 주기 내에 모두 처리될 수 있어, 실시간성을 보장할 수 있다.In addition, the series of operation steps may be all processed within the first period corresponding to the real-time operation period of the robot control system, thereby ensuring real-time.

이와 같은 프로세스를 위해, 도 3에 도시된 바와 같이, 각각의 에이전트(400)들과 디바이스 제어 모듈(200)은 공유 메모리(300)를 이용하여 데이터 교환 및 전달 처리를 수행할 수 있다.For this process, as shown in FIG. 3, each of the agents 400 and the device control module 200 may perform data exchange and transfer processing using the shared memory 300.

각 에이전트(400)들의 동작에 따라, 공유 메모리(300)에는 각 디바이스(100)에 대응하는 레퍼런스들이 저장될 수 있고, 디바이스 제어 모듈(200)은 레퍼런스를 획득하여 제어 신호를 출력하는데 이용할 수 있다.According to the operation of each agent 400, the reference corresponding to each device 100 may be stored in the shared memory 300, and the device control module 200 may obtain a reference and use it to output a control signal. .

이와 같은 복수의 에이전트(400)과 디바이스 제어 모듈(200)은 공유 메모리(300)를 중심으로 멀티 에이전트 시스템을 구성할 수 있다. 이에 따라 독립된 일을 수행하는 각각의 파트를 여러 개발자들이 분리해서 개발할 수도 있고, 협업할 수도 있는 로봇 제어 시스템 개발 환경에서의 유리한 구조를 가질 수 있다.Such a plurality of agents 400 and the device control module 200 may configure a multi-agent system around the shared memory 300. As a result, each part performing independent work may be separately developed by several developers, or may have an advantageous structure in a robot control system development environment in which they may collaborate.

본 발명의 실시 예에 따른 에이전트(400)를 이용하면, 개발자들은 프로세스 동시 개발 모델로부터 독립된 개발 공간을 보장 받으면서도, 공유 메모리(300)를 이용함으로써 다른 에이전트(400)의 연산 결과물과 상호 작용하거나 데이터를 주고 받을 수 있게 된다.By using the agent 400 according to an exemplary embodiment of the present invention, developers may use the shared memory 300 while interacting with the computational output of another agent 400 while ensuring a development space independent from the process concurrent development model. Will be able to send and receive.

한편, 도 4에 도시된 바와 같이, 공유 메모리(300)상에는 하드웨어 추상화 데이터 및 사용자 정의 데이터가 포함될 수 있다.4, hardware abstraction data and user-defined data may be included on the shared memory 300.

하드웨어 추상화 데이터는 센서 데이터, 레퍼런스 데이터, 모션 오너 (motion own-er) 및 명령 데이터를 포함할 수 있으며, 디바이스 제어 모듈(200)은 공유 메모리(300)의 상기 하드웨어 추상화 데이터 영역에만 접근할 수 있다.The hardware abstraction data may include sensor data, reference data, motion owner- and command data, and the device control module 200 may access only the hardware abstraction data area of the shared memory 300. .

이에 따라, 디바이스 제어 모듈(200)은 공유 메모리(300)의 하드웨어 추상화 데이터 영역에 접근하여 디바이스(100)로부터 수신한 센서 데이터를 업데이트하거나, 갱신된 레퍼런스 데이터를 획득하여 디바이스(100)에 대한 제어 신호를 생성할 수 있다.Accordingly, the device control module 200 accesses the hardware abstraction data area of the shared memory 300 to update sensor data received from the device 100, or obtains updated reference data to control the device 100. You can generate a signal.

여기서, 하드웨어 추상화 데이터는 로봇 디바이스 제어에 관한 세부적인 데이터를 추상화하여 변환된 데이터 포맷을 가질 수 있으며, 디바이스 제어 모듈(200)은 이를 실제 하드웨어 제어 신호로 변환하여 적절한 디바이스(100)들로 전달할 수 있다.Here, the hardware abstraction data may have a data format converted by abstracting detailed data about the robot device control, and the device control module 200 may convert it into an actual hardware control signal and deliver it to the appropriate devices 100. have.

이에 따라, 에이전트(400) 개발자나 사용자는 하드웨어에 대한 깊은 이해 없이도 제어를 용이하게 할 수 있다. 개발자나 사용자자는 공유 메모리(300)를 통해서 추상화된 하드웨어 입력 정보를 레퍼런스로 전달하고, 디바이스 제어 모듈(200)은 상기 하드웨어 추상화 데이터로부터 디바이스(100) 제어를 위한 저수준 제어 신호를 생성할 수 있다.Accordingly, the agent 400 developer or user can facilitate the control without a deep understanding of the hardware. The developer or the user may transfer the abstracted hardware input information as a reference through the shared memory 300, and the device control module 200 may generate a low level control signal for controlling the device 100 from the hardware abstraction data.

또한 하드웨어의 확장성과 하드웨어의 변경 및 수정이 있을 수 있으므로, 디바이스 제어 모듈(200)은 전술한 하드웨어 데이터베이스(250)을 이용하여 상기 제어 신호를 생성하는데 필요한 하드웨어 정보를 관리할 수 있다. 하드웨어 정보는 예를 들어, 디바이스(100)들의 리스트, 관절 모터 정보(감속비, 엔코더 펄스, 구동기 채널 수 등) 또는 통신 규약 등을 포함할 수 있다.In addition, since there may be scalability of hardware and changes and modifications of hardware, the device control module 200 may manage hardware information required to generate the control signal using the hardware database 250 described above. The hardware information may include, for example, a list of devices 100, joint motor information (deceleration ratio, encoder pulse, driver channel number, etc.), a communication protocol, and the like.

디바이스 제어 모듈(200)은 상기 하드웨어 데이터베이스(250)를 로드하여 구동 대상 디바이스(100)의 하드웨어 정보를 파악할 수 있고, 이에 따라, 이 구동 대상 디바이스(100)의 제어를 위한 최적의 제어 신호를 생성할 수 있다. 또한 하드웨어의 변경이 있거나 새로운 구성의 하드웨어를 사용하더라도, 하드웨어 데이터베이스(250)의 수정만으로도 적용 가능하게 되므로, 하드웨어 변화에 강인하고, 하드웨어가 확장 가능한 특성을 제공할 수 있다.The device control module 200 may load the hardware database 250 to determine hardware information of the driving target device 100, thereby generating an optimal control signal for controlling the driving target device 100. can do. In addition, even if there is a change in hardware or using hardware of a new configuration, it is possible to apply only by modifying the hardware database 250, so that it is robust to hardware change and the hardware can provide scalable characteristics.

그리고, 하드웨어 추상화 데이터는 레퍼런스 데이터, 센서 데이터, 모션 오너 및 명령 데이터를 포함할 수 있다.The hardware abstraction data may include reference data, sensor data, motion owner, and command data.

여기서, 상기 레퍼런스 데이터는 각 에이전트(400)에서 연산 결과에 따라 업데이트될 수 있으며, 디바이스 제어 모듈(200)이 각 디바이스(100)들을 제어하기 위한 현재 스텝에서의 목표 값을 포함할 수 있다. 예를 들어, 레퍼런스 데이터는 관절 모션 레퍼런스 및 관절 컨트롤러 레퍼런스를 포함할 수 있다.Here, the reference data may be updated according to the calculation result in each agent 400, and may include a target value in the current step for the device control module 200 to control each device 100. For example, the reference data may include a joint motion reference and a joint controller reference.

또한, 센서 데이터는 디바이스 제어 모듈(200)이 각 디바이스(100)들로부터 수신되는 측정 데이터를 포함할 수 있다. 여기서 측정 데이터는 예를 들어, 관절 디바이스의 엔코더 값, 센싱 데이터를 포함하는 현재 스텝에서의 상태 정보를 포함할 수 있다.In addition, the sensor data may include measurement data that the device control module 200 receives from each device 100. The measurement data may include, for example, state information at a current step including an encoder value of the joint device and sensing data.

한편, 명령 데이터는 디바이스 제어 모듈(200) 및 에이전트(400)를 상위 시스템 레벨에서 제어하기 위한 명령 정보를 포함할 수 있으며, 명령 대상 프로세스 정보 및 매개변수 정보를 포함할 수 있다.The command data may include command information for controlling the device control module 200 and the agent 400 at a higher system level, and may include command target process information and parameter information.

한편, 다른 공유 메모리(300)의 데이터들은 에이전트(400)가 리드하는 값이기 때문에 혼동의 여지가 없지만, 레퍼런스 데이터의 경우에는 동일한 관절 디바이스(100)에 대해 각 에이전트(400)마다 출력하는 값들이 다를 수 있다. 이에 따른 충돌 여지를 제거하기 위해, 공유 메모리(300)는 모션 오너(owner) 정보를 포함할 수 있다.On the other hand, since the data of the other shared memory 300 is a value that is read by the agent 400, there is no confusion, but in the case of reference data, the values output for each agent 400 for the same joint device 100 can be different. In order to eliminate the possibility of collision, the shared memory 300 may include motion owner information.

그리고, 도 5에 도시된 바와 같이, 도 5는 본 발명의 실시 예에 따른 디바이스 제어 모듈(200) 및 에이전트(400)간 데이터 교환에 있어서, 모션 오너와 레퍼런스 데이터의 관계가 설명될 수 있다.5, in the data exchange between the device control module 200 and the agent 400 according to an embodiment of the present invention, a relationship between a motion owner and reference data may be described.

도 5에 도시된 바와 같이, 공유 메모리(300)의 하드웨어 추상화 데이터 영역에는 각 에이전트(400)별로 레퍼런스 데이터를 업데이트할 수 있는 에이전트(400)별 메모리 영역(350)을 포함할 수 있다.As illustrated in FIG. 5, the hardware abstraction data area of the shared memory 300 may include a memory area 350 for each agent 400 that can update reference data for each agent 400.

이에 따라, 각 에이전트(400)들은 자신의 메모리 공간 영역에 자신이 계산한 레퍼런스를 업데이트할 수 있다.Accordingly, each agent 400 may update its calculated reference in its memory space area.

여기서, 각 에이전트(400)들은 각 디바이스(100)들에 대응하는 레퍼런스 데이터를 연산하여 업데이트 할 수 있다. 예를 들어, 관절 디바이스(100)가 J1~J31까지 총 31개 존재하는 경우, 각 에이전트(400)별 메모리 공간 영역에는 상기 각각의관절 디바이스(100)들에 대응되는 레퍼런스 데이터 영역이 포함될 수 있다.Here, each agent 400 may calculate and update reference data corresponding to each device 100. For example, when a total of 31 joint devices 100 exist from J1 to J31, a memory space area of each agent 400 may include a reference data area corresponding to each of the joint devices 100. .

이와 함께, 공유 메모리(300)는 상기 관절 디바이스(100) 각각에 대한 모션 오너 변수를 포함할 수 있다. 따라서, 각 모션 오너 변수 공간에는 관절 디바이스(100)의 개수와 동일한 개수의 모션 오너 변수가 포함될 수 있다.In addition, the shared memory 300 may include a motion owner variable for each of the joint devices 100. Therefore, each motion owner variable space may include the same number of motion owner variables as the number of the joint devices 100.

그리고, 각 모션 오너 변수는 미리 설정된 복수의 에이전트(400)들 중 상기 관절 디바이스(100)에 대한 권한을 갖는 하나의 에이전트을 나타낼 수 있다. 이에 따라, 해당 관절 디바이스(100)에 대한 제어권이 어떠한 에이전트(400)에 종속되어 있는지를 디바이스 제어 모듈(200)이 판단할 수 있다.Each motion owner variable may represent one agent having the authority to the joint device 100 among a plurality of preset agents 400. Accordingly, the device control module 200 may determine which agent 400 the control right for the joint device 100 depends on.

또한, 각 관절 디바이스(100)들에 대한 제어권은 모션 오너 변수의 변경에 따라 다른 에이전트(400) 또는 디바이스 제어 모듈(200)로도 이전될 수 있다.In addition, the control right for each joint device 100 may be transferred to another agent 400 or the device control module 200 according to the change of the motion owner variable.

이를 위해, 디바이스 제어 모듈(200)은 우선적으로 모션 오너 변수로부터 특정 관절 디바이스(100)의 제어권을 갖는 에이전트(400)를 식별할 수 있다. 그리고, 디바이스 제어 모듈(200)은 식별된 에이전트(400)의 레퍼런스 데이터를 수집하며, 상기 수집된 레퍼런스 데이터를 결합하여 종합적으로 구성된 전체 관절 디바이스(100)에 대한 전체 레퍼런스 데이터를 생성할 수 있다.To this end, the device control module 200 may first identify the agent 400 having the control right of the specific joint device 100 from the motion owner variable. The device control module 200 may collect reference data of the identified agent 400, and combine the collected reference data to generate overall reference data for the overall joint device 100.

그리고, 디바이스 제어 모듈(200)은 전체 레퍼런스 데이터를 이용하여, 각 디바이스(100)에 대한 제어 신호를 생성할 수 있고, 적절하게 전달할 수 있다.In addition, the device control module 200 may generate a control signal for each device 100 by using the entire reference data, and may appropriately transmit the signal.

에게 있는지 살펴보고, 해당하는 관절 레퍼런스의 값을 읽어오고, 그렇게 하여 종합적으로 단 하나의 세트로 구성된 로봇 전체 관절의 레퍼런스를 구성하고, 이를 로봇 디바이스로 전달하여 구동하게 된다.It will read the value of the corresponding joint reference, thereby constructing a reference for the entire joint of the robot, which is composed of only one set, and passing it to the robotic device for driving.

이와 같은 데이터 교환 방식을 통해, 로봇의 각 관절들을 서로 다른 에이전트(400)들에서 충돌 없이 제어할 수 있다. 예를 들어 하나의 에이전트(400)에서는 하체의 자세 안정화에 대한 알고리즘을 통해서 하체 관절들을 제어하고, 다른 하나의 에이전트(400)에서는 상체의 특정 태스크 모션을 생성하면, 두 에이전트(400)들의 결과가 종합되어 로봇의 전신 태스크가 수행될 수 있다. 이는 로봇의 멀티 에이전트 시스템의 특성에 맞는 효율적인 제어를 가능하게 한다.Through such a data exchange method, each joint of the robot can be controlled without collision in different agents 400. For example, if one agent 400 controls lower body joints through an algorithm for stabilizing lower body posture, and the other agent 400 generates a specific task motion of the upper body, the results of the two agents 400 are determined. In total, the whole body task of the robot can be performed. This enables efficient control according to the characteristics of the multi-agent system of the robot.

도 6은 본 발명의 실시 예에 따른 디바이스 제어 모듈을 설명하기 위한 블록도이다.6 is a block diagram illustrating a device control module according to an embodiment of the present invention.

도 6을 참조하면, 디바이스 제어 모듈(200)은 모션 셀렉터(210), 컨트롤러 신호 누적부(220), 신호 결합부(230), 정보 핸들러(240)를 포함한다.Referring to FIG. 6, the device control module 200 includes a motion selector 210, a controller signal accumulator 220, a signal combiner 230, and an information handler 240.

본 발명의 실시 예에 따르면, 관절에 대한 레퍼런스 데이터는 관절 모션 제어 및 세부 컨트롤을 위한 2 이상의 레퍼런스 신호를 포함할 수 있다. 이에 따라, 각 관절 디바이스(100)에 대응되는 에이전트(400)는 상기 2 이상의 레퍼런스 신호를 레퍼런스 데이터로서 생성하여 공유 메모리(300)에 저장할 수 있다.According to an embodiment of the present disclosure, the reference data for the joint may include two or more reference signals for joint motion control and detailed control. Accordingly, the agent 400 corresponding to each joint device 100 may generate the two or more reference signals as reference data and store the same in the shared memory 300.

또한, 도 6에 도시된 바와 같이, 레퍼런스 신호는 모션 레퍼런스와 컨트롤러 레퍼런스로 명칭될 수 있다. 모션 레퍼런스는 각 관절에 지배적인 값을 제공하는 레퍼런스 데이터를 포함할 수 있고, 컨트롤러 레퍼런스는 미시적으로 모션 레퍼런스에 가감되는 세부 레퍼런스 데이터를 포함할 수 있다. 다만, 본 발명의 실시 예에서 상기 레퍼런스가 그 명칭으로 한정되는 것은 아니다.In addition, as shown in FIG. 6, the reference signal may be referred to as a motion reference and a controller reference. The motion reference may include reference data that provides a dominant value for each joint, and the controller reference may include detailed reference data that is added to or subtracted from the motion reference. However, in the embodiment of the present invention, the reference is not limited to the name.

이에 따라, 디바이스 제어 모듈(200)에는 공유 메모리(300)로부터 모션 레퍼런스 출력 데이터(M1~Mm)와 컨트롤러 레퍼런스(M1~Mm)이 입력될 수 있다. Accordingly, the motion reference output data M1 to Mm and the controller references M1 to Mm may be input to the device control module 200 from the shared memory 300.

그리고, 모션 레퍼런스는 하나의 관절 디바이스(100)별로 하나가 선택될 수 있으나, 컨트롤러 레퍼런스는 모두 누적되어 가감될 수 있다.In addition, one motion reference may be selected for each joint device 100, but all the controller references may be accumulated and added.

이를 위해, 모션 셀렉터(210)는 상기 모션 오너 변수 정보에 기초하여, 상기 모션 레퍼런스 데이터로부터 각 관절 디바이스(100)에 대응하는 모션 레퍼런스 데이터를 선택하며, 이를 신호 결합부(230)로 출력할 수 있다. 따라서, 하나의 관절 디바이스(100)에는 하나의 모션 레퍼런스 데이터가 선택될 수 있다.To this end, the motion selector 210 may select motion reference data corresponding to each joint device 100 from the motion reference data based on the motion owner variable information, and output the motion reference data to the signal combiner 230. have. Therefore, one motion reference data may be selected for one joint device 100.

또한, 컨트롤러 신호 누적부(220)에서는 상기 모션 오너 변수와 관계 없이, 각 컨트롤러 레퍼런스 데이터를 누적하여 결과값을 신호 결합부(230)로 출력할 수 있다.In addition, the controller signal accumulator 220 may accumulate each controller reference data and output the result value to the signal combiner 230 regardless of the motion owner variable.

그리고, 신호 결합부(230)에서는 상기 모션 레퍼런스 데이터와 상기 컨트롤러 레퍼런스 데이터 누적 결과값을 합성하여 최종 관절 디바이스(100)별 레퍼런스 데이터를 생성할 수 있으며, 적절한 타겟 관절 디바이스(100)들로 출력할 수 있다.In addition, the signal combiner 230 may generate the reference data for each final joint device 100 by synthesizing the motion reference data and the controller reference data accumulated result value, and output them to the appropriate target joint devices 100. Can be.

여기서, 신호 결합부(230)는 레퍼런스의 타입을 식별하고, 레퍼런스 타입에 따른 처리공간을 구분할 수 있다. 이를 위해, 신호 결합부(230)는 타입 식별부 및 공간 처리부를 포함할 수 있다.Here, the signal combiner 230 may identify the type of the reference and classify the processing space according to the reference type. To this end, the signal combiner 230 may include a type identifier and a spatial processor.

예를 들어, 레퍼런스 데이터는 관절 동작 뿐만 아니라, 태스크 처리와 같은 다른 타입을 가질 수 있으며, 이에 따라 타입 식별부는 상기 태스크 타입 또는 관절 타입인지 여부를 식별할 수 있고, 공간 처리부는 상기 타입에 따라 서로 다른 데이터 공간의 처리를 제공할 수 있다.For example, the reference data may have other types, such as task processing, as well as joint motion, such that a type identifier may identify whether the task type or the joint type is, and the spatial processor may determine each other according to the type. Can provide processing of other data spaces.

이와 같이, 모션 레퍼런스와 컨트롤러 레퍼런스를 분리함으로써 로봇 모션을 생성하는 과정에서 기능적인 분리가 가능해질 수 있다. 예를 들어서 이족보행의 모션을 생성한다면, 하나의 에이전트(400)에서 기본 보행 패턴을 생성하여 모션 레퍼런스를 생성하고, 다른 하나의 에이전트(400)에서 댐핑 컨트롤러를 설계하고, 또 다른 에이전트(400)에서 진동을 잡아주는 컨트롤러를 설계하여 컨트롤러 레퍼런스로 출력함에 따라 매우 용이하게 설계 및 개발이 가능하게 된다.As such, by separating the motion reference from the controller reference, functional separation may be enabled in the process of generating the robot motion. For example, if a bipedal motion is generated, a basic walking pattern is generated in one agent 400 to generate a motion reference, a damping controller is designed in another agent 400, and another agent 400 is generated. By designing a controller to catch the vibration in the controller and outputting it to the controller reference, it is very easy to design and develop.

한편, 정보 핸들러(240)는 센서 디바이스(100) 또는 기타 측정 대상 디바이스들로부터 수집되는 센서 데이터를 종합하여, 공유 메모리(300)로 출력하는 기능을 수행할 수 있다.Meanwhile, the information handler 240 may perform a function of synthesizing sensor data collected from the sensor device 100 or other measurement target devices and outputting them to the shared memory 300.

도 7은 본 발명의 다른 일 실시 예에 따른 로봇 제어 시스템의 제어 동작을 설명하기 위한 흐름도이다.7 is a flowchart illustrating a control operation of the robot control system according to another exemplary embodiment.

일반적으로 로봇을 사용한 실제 실험에서 문제가 발생하게 되면 일반적으로 로봇을 다시 처음부터 구동시켜야 한다. 모바일 플랫폼의 경우에는 로봇 초기화 과정이 간단하지만, 휴머노이드와 같이 다관절 시스템이나 지면에서 초기화를 수행하기 어렵고 크레인 등을 이용해서 공중에서 초기화를 해야 하는 경우에는 전체적인 초기화 과정이 매우 번거롭고 많은 시간을 소요하게 된다.In general, when a problem occurs in a real experiment using a robot, the robot must be driven again from the beginning. In the case of a mobile platform, the robot initialization process is simple, but when the initialization is difficult in the articulated system or the ground like a humanoid, and it is necessary to initialize it in the air by using a crane, etc., the entire initialization process is very cumbersome and time consuming. do.

따라서, 도 7에 도시된 바와 같이, 본 발명의 실시 예에 따른 디바이스 제어 모듈(200)은 이러한 로봇을 초기화 하는 과정이 없이 디버깅을 하고 다시 로봇을 테스트 할 수 있다.Thus, as shown in Figure 7, the device control module 200 according to an embodiment of the present invention can debug and test the robot again without the process of initializing such a robot.

이를 위해, 먼저 시스템 초기화가 수행되고(S201), 각각의 상호 독립적 프로세스를 갖는 복수의 에이전트(400)들이 동작한다(S202).For this purpose, system initialization is first performed (S201), and a plurality of agents 400 having respective mutually independent processes operate (S202).

이후, 오류가 발생된 특정 에이전트가 존재하는 경우(S203), 상기 오류 발생된 에이전트의 동작은 중단되고, 디바이스 제어 모듈(200) 또는 다른 에이전트(400)가 상기 모션 오너 변수를 다른 에이전트로 변경한다(S205).Thereafter, when a specific agent having an error exists (S203), the operation of the failed agent is stopped, and the device control module 200 or the other agent 400 changes the motion owner variable to another agent. (S205).

이에 따라, 사용자가 에이전트(400)를 통해 모션 알고리즘을 테스트하다가 문제가 발행하면 단지 다른 에이전트(400) 또는 디바이스 제어 모듈(200)로 모션 오너를 넘겨주고, 중단된 에이전트(400)에 대한 코드를 수정할 수 있다.Accordingly, when the user tests the motion algorithm through the agent 400 and a problem is issued, the user simply passes the motion owner to another agent 400 or the device control module 200, and sends a code for the suspended agent 400. Can be modified.

그리고 작성한 코드를 컴파일하여 디버깅이 완료된 경우(S207), 다시 모션 오너 변수를 원래의 에이전트(400)로 스위치할 수 있다(S209).When debugging is completed by compiling the created code (S207), the motion owner variable may be switched back to the original agent 400 (S209).

이와 같이, 개발자는 모션 오너를 가져온 이후에 실험을 계속할 수 있다. 이는 결과적으로 개발을 가속시킬 수 있고, 사용자의 입장에서 이를 좀 더 활용하여 다른 특수한 알에서 로봇의 관절 레퍼런스를 지속적으로 관찰하여 충돌이 일어나는 것을 감지하여 충돌이 발생할 경우에 모션 오너를 스위칭하여 로봇을 안전하게 실험하도록 할 수도 있게 되는 효과를 갖는다.As such, the developer can continue the experiment after bringing the motion owner. As a result, it can accelerate development, and from the user's point of view, it can be further utilized to continuously observe the robot's joint reference on other special eggs to detect the collision and to switch the robot to the motion owner in case of a collision. It has the effect of allowing you to experiment safely.

도 8은 본 발명의 실시 예에 따른 로봇 시스템의 동작환경을 설명하기 위한 도면이다.8 is a view for explaining the operating environment of the robot system according to an embodiment of the present invention.

본 발명의 실시 예에 따르면, 범용적으로 로봇 소프트웨어가 쓰이기 위해서는 단 하나의 로봇 플랫폼만을 동작시킬 수 있는 소프트웨어가 아닌 여러 다양한 형태의 로봇을 동작시킬 수 있어야 하기 때문에 확장 가능하면서 로봇 하드웨어의 변화에 쉽게 적응할 수 있어야 한며, 실제적인 로봇 플랫폼뿐만 아니라 로봇 시뮬레이터도 같은 소프트웨어로도 제어될 필요성이 있다.According to an embodiment of the present invention, in order to use the robot software in general, it is necessary to be able to operate various types of robots, not software that can operate only one robot platform, so that it is extensible and easy to change in robot hardware. It must be adaptable, and not only the actual robot platform but also the robot simulator needs to be controlled by the same software.

이에 따라, 본 발명의 실시 예에 따른 로봇 제어 시스템(1000)은 미국의 ROS(Robot Operation System)나, 한국의 OPRoS(Open Platform for Robotics Services)와 같은 다른 유용한 로봇 미들웨어들의 기능들을 이용할 수 있는 범융 시스템을 구축할 수 있다. 이에 따라 클라우드 로봇 체계상의 소프트웨어에서 제공하는 여러 가지 비전 솔루션이나 로봇의 태스크를 관리하는 기능들을 본 발명의 시스템에 쉽게 적용할 수 있는 환경을 제공할 수 있다.Accordingly, the robot control system 1000 according to the embodiment of the present invention is capable of utilizing functions of other useful robot middlewares such as a robot operation system (ROS) in the United States or an open platform for robotics services (OPRoS) in Korea. You can build a system. Accordingly, it is possible to provide an environment in which various vision solutions provided by software on a cloud robot system or functions for managing tasks of a robot can be easily applied to the system of the present invention.

이를 위해, 로봇 제어 시스템(1000)의 각 에이전트들(400)이 모션을 생성하면, 이에 따라 각 로봇 디바이스(100)들을 제어하는 디바이스 제어 모듈(200)이 동작하여 전체 시스템의 실시간 제어를 제공할 수 있다. 또한, 상위의 다른 로봇 소프트웨어들에서 모션들 간의 연결 혹은 판단 기준 등을 제시하거나 여러 개의 로봇들을 동시에 운용할 수도 있다.To this end, when the agents 400 of the robot control system 1000 generate motion, the device control module 200 controlling the robot devices 100 operates accordingly to provide real-time control of the entire system. Can be. In addition, other robot softwares of higher level may provide connection or determination criteria between motions, or may operate several robots simultaneously.

이는 도 9에서 설명되는 로봇 제어 시스템(1000)의 계층적 아키텍처에 의해 보다 구체적으로 설명될 수 있다.This may be explained in more detail by the hierarchical architecture of the robot control system 1000 described in FIG. 9.

도 9는 본 발명의 실시 예에 따른 로봇 시스템의 계층적 아키텍처 설계를 나타내는 도면이다.9 is a diagram showing a hierarchical architecture design of a robot system according to an embodiment of the present invention.

상기와 같이 다른 일반적 외부 프로세스에서, 본 발명의 실시 예에 따른 복수 에이전트에 접근하거나 임의의 에이전트를 생성하여, 독립적으로 동작시킬 수 있는 환경을 제공하기 위해, 로봇 제어 시스템(1000)은 각 데이터 처리모듈들이 계층(layer)화된 구조를 포함할 수 있다.In another general external process as described above, the robot control system 1000 processes each data in order to provide an environment in which a plurality of agents or an arbitrary agent are created and operated independently in accordance with an embodiment of the present invention. Modules may include a layered structure.

그리고, 각 계층화된 구조는 상기 로봇 제어 시스템(1000)과 연결되거나, 상기 로봇 제어 시스템(1000)을 탑재하거나 설치된 실시간 운영 시스템(RTOS)상에서 소프트웨어 또는 하드웨어적으로 구현될 수 있다. 또한, 각 계층간 동작 주기 동가화를 위해, 실시간 운영 시스템은 글로벌한 타이머 인터럽트(Timer Interupt)를 제 4계층 및 제2 계층으로 제공할 수 있다.Each layered structure may be connected to the robot control system 1000, or may be implemented in software or hardware on a real-time operating system (RTOS) on which the robot control system 1000 is mounted or installed. In addition, the real-time operating system may provide global timer interrupts to the fourth layer and the second layer to synchronize operation cycles between layers.

예를 들어, 제4 계층의 각 에이전트들은 상기 실시간 운영 시스템의 프로세스로 구현될 수 있으며, 프로세스에 포함된 쓰레드 동작에 따라 공유 메모리에 접근하고, 센서 데이터를 획득하며 레퍼런스 데이터를 저장할 수 있다. 이에 동기화된 제2 계층의 디바이스 제어 모듈은 상기 실시간 운영 시스템상에서의 쓰레드 동작에 따라, 디바이스의 센서 데이터를 공유 메모리에 저장하고, 공유 메모리의 레퍼런스 데이터 및 모션 오너에 따른 디바이스 제어 신호를 생성하여 각 디바이스들로 출력할 수 있다.For example, each agent of the fourth layer may be implemented as a process of the real-time operating system, and may access shared memory, obtain sensor data, and store reference data according to thread operations included in the process. The device control module of the second layer synchronized thereto stores the sensor data of the device in the shared memory and generates the device control signal according to the reference data and the motion owner of the shared memory according to the thread operation on the real-time operating system. Can output to devices.

이와 같이 실시간 운영 시스템상에서 구현가능한 본 발명의 실시 예에 따른 로봇 제어 시스템(1000)은 로봇 플랫폼 또는 시뮬레이터에 포함된 하나 이상의 제어 대상 디바이스(joint 또는 Sensor)를 포함하는 제1 계층과, 상기 제1 계층의 상위단에서 상기 디바이스를 직접적으로 제어하는 디바이스 제어 모듈을 포함하는 제2 계층과, 상기 제2 계층의 상위단에서 상기 디바이스 제어 모듈과 연결되는 공유 메모리를 포함하는 제3 계층과, 상기 제3 계층의 상위단에서 상기 공유 메모리를 이용한 독립적인 프로세스를 수행하는 하나 이상의 에이전트들을 포함하는 제4 계층; 및 상기 제4 계층의 상위단에서 사용자 명령에 따라 상기 하나 이상의 에이전트들을 제어하는 제5 계층을 포함하는 계층적 아키텍처로 구성될 수 있다.The robot control system 1000 according to an embodiment of the present invention, which can be implemented on a real-time operating system, includes a first layer including one or more controlled devices (joints or sensors) included in a robot platform or a simulator, and the first layer. A second layer including a device control module directly controlling the device at an upper end of the layer, a third layer including a shared memory connected to the device control module at an upper end of the second layer, and the first layer; A fourth layer including one or more agents performing an independent process using the shared memory at an upper end of the third layer; And a fifth layer that controls the one or more agents according to a user command at an upper end of the fourth layer.

여기서, 상기 제1 내지 제5 계층들은 상호 인접한 계층간에만 통신 가능하도록, 각각의 통신 프로토콜이 미리 설정될 수 있다. 각 계층은 상위 또는 하위 계층을 통해서만 그 다음 계층에 접근할 수 있고, 이렇게 통제된 시스템을 통해서 안정화되고 체계적인 시스템을 유지할 수 있다.Here, each communication protocol may be preset so that the first to fifth layers can communicate only with adjacent layers. Each tier can only access the next tier through the upper or lower tier, and through this controlled system, it can maintain a stabilized and systematic system.

먼저, 제1 계층에는 각 디바이스들이 포함될 수 있다. 디바이스들은 실질적인 제어의 대상들인 저수준 로봇 디바이스들을 포함할 수 있으며, 예를 들어 구동기의 제어기, 센서 보드 또는 로봇 시뮬레이터의 디바이스들이 포함될 수 있다.First, each device may be included in the first layer. The devices may include low level robotic devices that are the subjects of substantial control, for example devices of the driver's controller, sensor board or robot simulator.

그리고, 제2 계층에는 디아비스 제어 모듈(200)이 로봇을 제어하기 위해 백그라운드에서 항상 상주하여 실행될 수 있다. 제2 계층은 로봇 시스템의 디바이스들을 직접적으로 제어할 수 있는 유일한 계층일 수 있다.In the second layer, the Diabis control module 200 may always reside in the background and execute the robot to control the robot. The second layer may be the only layer that can directly control the devices of the robotic system.

예를 들어, 제2 계층의 디바이스 제어 모듈은 공유 메모리로부터 생성된 관절의 레퍼런스를 로봇 디바이스에 전달하고, 반대로 센서의 값을 디바이스로부터 획득할 수 있다. 제2 계층은 실시간 운영체제(RTOS)로부터 생성되는 실시간 쓰레드에 의해 동작할 수 있으며, 제2 계층의 쓰레드는 모션 생성의 제어주기와 동기화된 주기를 가질 수 있다. 만약 디바이스가 시뮬레이터와 연동한 경우, 제2 계층의 쓰레드는 시뮬레이터의 시간과 동기화 되어 동작할 수 있다. 제2 계층은 명령을 읽어 들이고 해석할 수 있는 비실시간 쓰레드도 가질 수 있으며, 비실시간 쓰레드는 실시간 쓰레드에서 남는 시간에 다른 명령을 받아서 처리할 수 있다.For example, the device control module of the second layer may transfer the reference of the joint generated from the shared memory to the robot device, and conversely obtain the value of the sensor from the device. The second layer may be operated by a real time thread generated from a real time operating system (RTOS), and the thread of the second layer may have a period synchronized with a control period of motion generation. If the device is linked with the simulator, the thread of the second layer may operate in synchronization with the simulator's time. The second tier can also have non-real-time threads that can read and interpret instructions, and non-real-time threads can receive and process other instructions in the remaining time of the real-time thread.

이에 따라, 디바이스 제어 모듈은 상기 시스템의 백그라운드에서 상주하며, 상기 공유 메모리로부터 획득되는 레퍼런스로부터 상기 디바이스를 제어하기 위한 제어 신호를 상기 제1 계층으로 전달하는 계층적 아키텍처를 가질 수 있다.Accordingly, the device control module may have a hierarchical architecture residing in the background of the system and transferring control signals for controlling the device from the reference obtained from the shared memory to the first layer.

한편, 제3 계층은 공유 메모리 계층으로서, 하드웨어의 추상화 데이터부 및 사용자 정의 데이터부를 포함할 수 있다. 도 9에 도시된 바와 같이, 하드웨어 추상화 데이터부에는 전술한 하드웨어 추상화 데이터가 포함될 수 있으며, 하드웨어 추상화 데이터의 종류로는 센서 데이터, 레퍼런스 데이터, 모션 오너 (motion owner) 및 명령 정보를 포함할 수 있다. 제2 계층의 디바이스 제어 모듈은 오직 제3 계층의 공유메모리에만 연결될 수 있다.The third layer may be a shared memory layer, and may include an abstraction data unit and a user-defined data unit of hardware. As illustrated in FIG. 9, the hardware abstraction data unit may include the aforementioned hardware abstraction data, and the type of hardware abstraction data may include sensor data, reference data, a motion owner, and command information. . The device control module of the second layer may be connected only to the shared memory of the third layer.

한편, 사용자 정의 데이터부는 제4 계층에 존재하는 복수의 에이전트 프로세스들 사이에서 공유되는 에이전트 공유 데이터와, 사용자 정의에 따른 로봇 구동 데이터를 임시 또는 영구적으로 저장할 수 있다.Meanwhile, the user defined data unit may temporarily or permanently store agent shared data shared among a plurality of agent processes existing in the fourth layer and robot driving data according to user definition.

그리고, 제4 계층은 외부 프로세스의 사용자가 자신만의 로봇 모션 등을 생성하기 위한 각 에이전트 프로세스들을 구동시키는 계층으로서, 에이전트 프로세스들은 포도 알과 같이 계층 내에서 상호 독립적으로 실행되기 때문에, 특별히 알 (AL)이라고도 할 수 있다. 각 에이전트들은 상호 독립적으로 제3 계층의 공유메모리부터 센서 데이터를 읽어서 모션을 생성하고, 생성된 모션의 관절 레퍼런스를 공유메모리에 업데이트 할 수 있다.And, the fourth layer is a layer for driving each agent process for the user of the external process to create their own robot motion, etc., since the agent processes are executed independently of each other in the layer like grape grains, AL). Each agent independently reads sensor data from the shared memory of the third layer, generates a motion, and updates the joint reference of the generated motion in the shared memory.

또한, 제4 계층의 에이전트 프로세스들은 그리고, 모션 오너에 어떤 알이 해당 관절의 레퍼런스에 대한 소유권을 가지고 있는지를 설정할 수 있다.In addition, the agent processes of the fourth layer may set to the motion owner which eggs have ownership of the reference of the joint.

또한, 각 에이전트들은 실시간 운영체제(RTOS)로부터 매우 짧은 주기의 빠른 실시간 쓰레드를 생성할 수 있으며, 빠른 쓰레드는 각 에이전트들의 모션 생성 쓰레드를 전술한 제4 계층의 디바이스 제어 모듈의 실시간 쓰레드와의 동기화하는데 이용될 수 있다. 예를 들어, 모션을 생성하는 쓰레드는 상기 빠른 쓰레드에 의해 디바이스 제어 모듈과 실시간 동기화될 수 있으며, 동기화와 동시에 연산이 재개(Resume)되고, 한 번의 레퍼런스 연산 루프를 돌고 나면 유예(Suspend)될 수 있다. 이 동작이 계속적으로 반복되어 일어남으로써 로봇 제어 시스템(1000)의 제어가 이루어질 수 있다.In addition, each agent can create a very short period of fast real-time threads from the real-time operating system (RTOS), which is used to synchronize the motion generation threads of each agent with the real-time threads of the fourth layer device control module described above. Can be used. For example, a thread generating motion can be synchronized in real time with the device control module by the fast thread, and the operation can be resumed at the same time as the synchronization, and suspended after one reference operation loop. have. This operation may be repeated repeatedly to control the robot control system 1000.

여기서, 모든 에이전트들이 로봇의 모션을 직접적으로 생성하는 것은 아니며, 충돌을 감지하여 모션 오너를 다른 에이전트로부터 가져와, 로봇을 안전하게 만들어주는 에이전트가 있을 수 있으며, 다른 에이전트들을 도와주는 부수적인 처리를 할 수도 있고, 통신 모듈(comm. module)로 구현되어 제5 계층과의 정보를 주고 받으며 다른 에이전들을 제어하는 역할을 하는 에이전트(도 9에서는 에이전트 N)도 존재할 수 있다.Here, not all agents directly generate the motion of the robot, but there may be an agent that detects a collision and brings the motion owner from another agent to make the robot safe, and may perform ancillary processing to help other agents. In addition, there may also be an agent (agent N in FIG. 9) that is implemented as a communication module (comm. Module) to exchange information with the fifth layer and to control other agencies.

한편, 제5 계층은 상기 에이전트들에 대응하는 제어 및 로봇 제어 시스템(1000)에 대한 모니터링 기능을 제공하는 유저 인터페이스 모듈을 포함할 수 있다.Meanwhile, the fifth layer may include a user interface module that provides a control function corresponding to the agents and a monitoring function for the robot control system 1000.

이에 따라, 제5 계층은 로봇을 제어하기에 편의를 제공하기 위한 다양한 프로세스들을 포함할 수 있다. 예를 들어, 제5 계층에는 명령을 쉽게 주거나, 모니터링하기 위한 GUI (Graphic User Interface) 혹은 데이터를 저장해주는 로깅 프로그램이 포함될 수 있다.Accordingly, the fifth layer may include various processes to provide convenience for controlling the robot. For example, the fifth layer may include a GUI (Graphic User Interface) for easily giving a command, monitoring, or a logging program for storing data.

또한, 상기 제5 계층은 외부 프로세스의 접근 가능한 영역으로서, 기존의 ROS와 OPRoS와 같은 로봇 미들웨어들이 에이전트들을 제어하기 위한 하나 이상의 인터페이스 기능을 제공할 수 있다.In addition, the fifth layer is an accessible area of an external process, and existing middleware such as ROS and OPRoS may provide one or more interface functions for controlling agents.

또한, 상위의 다른 로봇 제어 시스템이 존재하여, 제5 계층을 통해 하위의 로봇 제어 시스템(1000)을 제어할 수도 있다. 따라서, 상기 제5 계층을 통해서 로봇 제어 시스템(1000)은 무한히 확장 될 수 있는 구조를 포함할 수 있으며, 이를 통해 하이퍼 멀티 에이전트(hyper multi-agent) 시스템을 제어할 수 있는 구조적인 가능성을 제공할 수 있다.In addition, there is another upper robot control system, it is possible to control the lower robot control system 1000 through the fifth layer. Therefore, through the fifth layer, the robot control system 1000 may include a structure that can be infinitely extended, thereby providing a structural possibility to control a hyper multi-agent system. Can be.

한편, 상술한 본 발명에 따른 시스템 및 방법들은 컴퓨터에서 실행되기 위한 프로그램으로 제작되어 컴퓨터가 읽을 수 있는 기록 매체에 저장될 수 있으며, 컴퓨터가 읽을 수 있는 기록 매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광 데이터 저장장치 등이 있으며, 또한 캐리어 웨이브(예를 들어 인터넷을 통한 전송)의 형태로 구현되는 것도 포함한다.On the other hand, the above-described systems and methods according to the present invention can be stored in a computer-readable recording medium produced as a program for execution in a computer, examples of the computer-readable recording medium is ROM, RAM, CD- ROMs, magnetic tapes, floppy disks, optical data storage, and the like, and also include those implemented in the form of carrier waves (eg, transmission over the Internet).

컴퓨터가 읽을 수 있는 기록 매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다. 그리고, 상기 방법을 구현하기 위한 기능적인(function) 프로그램, 코드 및 코드 세그먼트들은 본 발명이 속하는 기술분야의 프로그래머들에 의해 용이하게 추론될 수 있다.The computer readable recording medium can be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion. In addition, functional programs, codes, and code segments for implementing the method can be easily inferred by programmers in the art to which the present invention belongs.

또한, 이상에서는 본 발명의 바람직한 실시예에 대하여 도시하고 설명하였지만, 본 발명은 상술한 특정의 실시예에 한정되지 아니하며, 청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술분야에서 통상의 지식을 가진 자에 의해 다양한 변형 실시가 가능한 것은 물론이고, 이러한 변형 실시들은 본 발명의 기술적 사상이나 전망으로부터 개별적으로 이해되어서는 안될 것이다.In addition, although the preferred embodiment of the present invention has been shown and described above, the present invention is not limited to the specific embodiments described above, but the technical field to which the invention belongs without departing from the spirit of the invention claimed in the claims. Of course, various modifications can be made by those skilled in the art, and these modifications should not be individually understood from the technical spirit or the prospect of the present invention.

Claims (13)

실시간 디바이스 제어 시스템에 있어서,In the real-time device control system, 하나 이상의 제어 대상 디바이스를 포함하는 제1 계층;A first layer including one or more controlled devices; 상기 제1 계층의 상위단에서 상기 디바이스를 직접적으로 제어하는 디바이스 제어 모듈을 포함하는 제2 계층;A second layer including a device control module directly controlling the device at an upper end of the first layer; 상기 제2 계층의 상위단에서 상기 디바이스 제어 모듈과 연결되는 공유 메모리를 포함하는 제3 계층;A third layer including a shared memory connected to the device control module at an upper end of the second layer; 상기 제3 계층의 상위단에서 상기 공유 메모리를 이용한 독립적인 프로세스를 수행하는 하나 이상의 에이전트들을 포함하는 제4 계층; 및A fourth layer including one or more agents performing an independent process using the shared memory at an upper end of the third layer; And 상기 제4 계층의 상위단에서 사용자 명령에 따라 상기 하나 이상의 에이전트들을 제어하는 제5 계층을 포함하는A fifth layer that controls the one or more agents according to a user command at an upper end of the fourth layer; 계층적 아키텍처를 갖는 실시간 디바이스 제어 시스템.Real-time device control system with hierarchical architecture. 제1항에 있어서,The method of claim 1, 상기 제1 내지 제5 계층들은 상호 인접한 계층간에만 통신 가능한 것을 특징으로 하는 계층적 아키텍처를 갖는 실시간 디바이스 제어 시스템.And the first to fifth layers communicate only between adjacent layers. 제1항에 있어서,The method of claim 1, 상기 제2 계층의 디바이스 제어 모듈은,The device control module of the second layer, 상기 시스템의 백그라운드에서 상주하며, 상기 공유 메모리로부터 획득되는 레퍼런스로부터 상기 디바이스를 제어하기 위한 제어 신호를 상기 제1 계층으로 전달하는 계층적 아키텍처를 갖는 실시간 디바이스 제어 시스템.A real-time device control system residing in the background of the system and having a hierarchical architecture that conveys a control signal for controlling the device from the reference obtained from the shared memory to the first layer. 제3항에 있어서,The method of claim 3, 상기 디바이스 제어 모듈은,The device control module, 상기 디바이스 제어 시스템과 연결된 운영 체제상에, 상기 하나 이상의 에이전트들과 동기화된 제어 주기를 갖는 실시간 쓰레드를 생성하는 모듈인A module for generating a real-time thread on the operating system connected with the device control system having a control period synchronized with the one or more agents. 계층적 아키텍처를 갖는 실시간 디바이스 제어 시스템.Real-time device control system with hierarchical architecture. 제1항에 있어서,The method of claim 1, 상기 공유 메모리는The shared memory 상기 제2 계층의 상기 디바이스 제어 모듈의 동작을 위한 정보를 저장하는 하드웨어 추상화 데이터부; 및A hardware abstraction data unit storing information for operation of the device control module of the second layer; And 상기 제4 계층의 에이전트들간 공유되는 에이전트 공유 데이터를 저장하는 사용자 정의 데이터부를 포함하는And a user-defined data unit for storing agent shared data shared between agents of the fourth layer. 계층적 아키텍처를 갖는 실시간 디바이스 제어 시스템.Real-time device control system with hierarchical architecture. 제1항에 있어서,The method of claim 1, 상기 제4 계층의 에이전트들은 각각 상기 시스템과 연결된 실시간 운영체제상에 실시간 쓰레드를 생성하고, 상기 실시간 쓰레드의 동작 주기는 상기 디바이스 제어 모듈과 동기화되는Agents of the fourth layer each generate a real-time thread on a real-time operating system connected to the system, and an operation period of the real-time thread is synchronized with the device control module. 계층적 아키텍처를 갖는 실시간 디바이스 제어 시스템.Real-time device control system with hierarchical architecture. 제1항에 있어서,The method of claim 1, 상기 제5 계층은 상기 에이전트들에 대응하는 제어 및 모니터링 기능을 제공하는 유저 인터페이스 모듈을 포함하는The fifth layer includes a user interface module that provides a control and monitoring function corresponding to the agents. 계층적 아키텍처를 갖는 실시간 디바이스 제어 시스템.Real-time device control system with hierarchical architecture. 실시간 로봇 제어 시스템에 있어서,In the real-time robot control system, 로봇의 관절 또는 센서에 대응하는 하나 이상의 제어 대상 디바이스; 및At least one controlled device corresponding to a joint or sensor of the robot; And 상기 하나 이상의 제어 대상 디바이스와 연결되어 상기 디바이스를 운영하는 제어 시스템을 포함하고,A control system connected to the one or more devices to be controlled to operate the device, 상기 제어 시스템은The control system 하나 이상의 제어 대상 디바이스를 포함하는 제1 계층과, 상기 제1 계층의 상위 레이어에서 상기 디바이스를 직접적으로 제어하는 디바이스 제어 모듈을 포함하는 제2 계층과, 상기 제2 계층의 상위 레이어에서 상기 디바이스 제어 모듈과 연결되는 공유 메모리를 포함하는 제3 계층과, 상기 제3 계층의 상위 레이어에서 상기 공유 메모리를 이용한 독립적인 프로세스를 수행하는 하나 이상의 에이전트들을 포함하는 제4 계층; 및 상기 제4 계층의 상위 레이어에서 사용자 명령에 따라 상기 하나 이상의 에이전트들을 제어하는 제5 계층을 포함하여 상기 각 계층간 상호 인접한 계층간 통신을 이용하여 상기 하나 이상의 디바이스를 운영하는 실시간 로봇 제어 시스템.A second layer including a first layer including one or more devices to be controlled, a device control module directly controlling the device in an upper layer of the first layer, and controlling the device in an upper layer of the second layer A fourth layer including a third layer including a shared memory connected to a module, and one or more agents performing an independent process using the shared memory in an upper layer of the third layer; And a fifth layer that controls the one or more agents according to a user command in an upper layer of the fourth layer, and operates the one or more devices using inter-layer communication adjacent to each other. 제8항에 있어서,The method of claim 8, 상기 제2 계층의 디바이스 제어 모듈은,The device control module of the second layer, 상기 시스템의 백그라운드에서 상주하며, 상기 공유 메모리로부터 획득되는 레퍼런스로부터 상기 디바이스를 제어하기 위한 제어 신호를 상기 제1 계층으로 전달하는 실시간 로봇 제어 시스템.A real-time robot control system residing in the background of the system and transferring control signals to the first layer to control the device from a reference obtained from the shared memory. 제9항에 있어서,The method of claim 9, 상기 디바이스 제어 모듈은,The device control module, 상기 로봇 제어 시스템과 연결된 운영 체제상에 상기 하나 이상의 에이전트들과 동기화된 제어 주기를 갖는 실시간 쓰레드를 생성하는 모듈인 실시간 로봇 제어 시스템.And a module for generating a real-time thread having a control period synchronized with the one or more agents on an operating system connected with the robot control system. 제8항에 있어서,The method of claim 8, 상기 공유 메모리는The shared memory 상기 제2 계층의 상기 디바이스 제어 모듈의 동작을 위한 정보를 저장하는 하드웨어 추상화 데이터부; 및A hardware abstraction data unit storing information for operation of the device control module of the second layer; And 상기 제4 계층의 에이전트들간 공유되는 에이전트 공유 데이터를 저장하는 사용자 정의 데이터부를 포함하는And a user-defined data unit for storing agent shared data shared between agents of the fourth layer. 실시간 로봇 제어 시스템.Real time robot control system. 제8항에 있어서,The method of claim 8, 상기 제4 계층의 에이전트들은 각각 상기 시스템과 연결된 실시간 운영체제상에 실시간 쓰레드를 생성하고, 상기 실시간 쓰레드의 동작 주기는 상기 디바이스 제어 모듈과 동기화되는Agents of the fourth layer each generate a real-time thread on a real-time operating system connected to the system, and an operation period of the real-time thread is synchronized with the device control module. 실시간 로봇 제어 시스템.Real time robot control system. 제8항에 있어서,The method of claim 8, 상기 제5 계층은 상기 에이전트들에 대응하는 제어 및 모니터링 기능을 제공하는 유저 인터페이스 모듈을 포함하는The fifth layer includes a user interface module that provides a control and monitoring function corresponding to the agents. 실시간 로봇 제어 시스템.Real time robot control system.
PCT/KR2016/008037 2015-09-21 2016-07-22 Real-time device control system having hierarchical architecture and real-time robot control system using same Ceased WO2017052060A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US15/762,063 US10857672B2 (en) 2015-09-21 2016-07-22 Real-time device control system having hierarchical architecture and realtime robot control system using same
JP2018514449A JP6938473B2 (en) 2015-09-21 2016-07-22 Real-time device control system with hierarchical architecture and real-time robot control system using it
CN201680054891.6A CN108136578B (en) 2015-09-21 2016-07-22 Real-time equipment control system with layered architecture and real-time robot control system using the same
EP16848786.6A EP3354416A4 (en) 2015-09-21 2016-07-22 REAL-TIME DEVICE CONTROL SYSTEM HAVING HIERARCHICAL ARCHITECTURE AND REAL-TIME ROBOT CONTROL SYSTEM USING SAME

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US201562221215P 2015-09-21 2015-09-21
US62/221,215 2015-09-21
KR1020160020776A KR102235168B1 (en) 2015-09-21 2016-02-22 A realtime device control system having hierarchical architecture and a realtime robot control system
KR10-2016-0020776 2016-02-22

Publications (1)

Publication Number Publication Date
WO2017052060A1 true WO2017052060A1 (en) 2017-03-30

Family

ID=58386230

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2016/008037 Ceased WO2017052060A1 (en) 2015-09-21 2016-07-22 Real-time device control system having hierarchical architecture and real-time robot control system using same

Country Status (1)

Country Link
WO (1) WO2017052060A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020004428A (en) * 2019-01-10 2020-01-09 ソフトサーボシステムズ株式会社 Motion control program, motion control method and motion control device
JP2020077430A (en) * 2019-01-23 2020-05-21 ソフトサーボシステムズ株式会社 Motion control program, motion control method, and motion control device
JP2020098608A (en) * 2019-01-10 2020-06-25 ソフトサーボシステムズ株式会社 Motion control program, motion control method, and motion control device
CN111580988A (en) * 2020-04-29 2020-08-25 广州虎牙科技有限公司 Method and device for realizing open platform, storage medium and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050240412A1 (en) * 2004-04-07 2005-10-27 Masahiro Fujita Robot behavior control system and method, and robot apparatus
KR20090041997A (en) * 2007-10-25 2009-04-29 강원대학교산학협력단 Hierarchical Structure and Its Structuring Method for Module-based Intelligent Robot System Composed of Heterogeneous Interfaces
US20090254217A1 (en) * 2008-04-02 2009-10-08 Irobot Corporation Robotics Systems
US20100280661A1 (en) * 2009-04-30 2010-11-04 Abdallah Muhammad E Hierarchical robot control system and method for controlling select degrees of freedom of an object using multiple manipulators
KR101275020B1 (en) * 2011-11-18 2013-06-17 한국생산기술연구원 Providing system of mass collaboration space for robot development platform using communication network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050240412A1 (en) * 2004-04-07 2005-10-27 Masahiro Fujita Robot behavior control system and method, and robot apparatus
KR20090041997A (en) * 2007-10-25 2009-04-29 강원대학교산학협력단 Hierarchical Structure and Its Structuring Method for Module-based Intelligent Robot System Composed of Heterogeneous Interfaces
US20090254217A1 (en) * 2008-04-02 2009-10-08 Irobot Corporation Robotics Systems
US20100280661A1 (en) * 2009-04-30 2010-11-04 Abdallah Muhammad E Hierarchical robot control system and method for controlling select degrees of freedom of an object using multiple manipulators
KR101275020B1 (en) * 2011-11-18 2013-06-17 한국생산기술연구원 Providing system of mass collaboration space for robot development platform using communication network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3354416A4 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020004428A (en) * 2019-01-10 2020-01-09 ソフトサーボシステムズ株式会社 Motion control program, motion control method and motion control device
JP2020098608A (en) * 2019-01-10 2020-06-25 ソフトサーボシステムズ株式会社 Motion control program, motion control method, and motion control device
JP7303061B2 (en) 2019-01-10 2023-07-04 モベンシス株式会社 Motion control program, motion control method and motion control device
JP7303132B2 (en) 2019-01-10 2023-07-04 モベンシス株式会社 Motion control program, motion control method and motion control device
JP2020077430A (en) * 2019-01-23 2020-05-21 ソフトサーボシステムズ株式会社 Motion control program, motion control method, and motion control device
JP7303131B2 (en) 2019-01-23 2023-07-04 モベンシス株式会社 Motion control program, motion control method and motion control device
CN111580988A (en) * 2020-04-29 2020-08-25 广州虎牙科技有限公司 Method and device for realizing open platform, storage medium and computer equipment
CN111580988B (en) * 2020-04-29 2023-09-05 广州虎牙科技有限公司 Method and device for realizing open platform, storage medium and computer equipment

Similar Documents

Publication Publication Date Title
KR102235168B1 (en) A realtime device control system having hierarchical architecture and a realtime robot control system
WO2017052061A1 (en) Gpos-connected real-time robot control system and real-time device control system using same
WO2017052060A1 (en) Real-time device control system having hierarchical architecture and real-time robot control system using same
Hild et al. Myon, a new humanoid
Nesnas The claraty project: coping with hardware and software heterogeneity
JP2023038338A (en) ROBOT CONTROL DEVICE, ROBOT CONTROL METHOD, TERMINAL DEVICE, TERMINAL CONTROL METHOD, AND ROBOT CONTROL SYSTEM
KR20080073414A (en) Structure of Component-based Task Management Software for Intelligent Task Management of Intelligent Robots
WO2022097821A1 (en) Coding robot device performing iot function
Moon et al. Real-time EtherCAT master implementation on Xenomai for a robot system
Vick et al. Using OPC UA for distributed industrial robot control
WO2023128654A1 (en) Method for optimizing learning model for target apparatus and system therefor
WO2015141984A1 (en) Robot assembly device
Dominguez-Brito et al. Integrating robotics software
WO2017052059A1 (en) Real-time control system, real-time control device and system control method
WO2019045294A1 (en) Communication method among a plurality of robots for partitioning space for operation and robot for implementing same
WO2022075556A1 (en) Container-based method and system for augmenting and sharing robot intelligence
Zielinski et al. Applications of MRROC++ robot programming framework
Domínguez-Brito et al. Coolbot: A component model and software infrastructure for robotics
Spirleanu et al. An experimental framework for Multi-Agents using RTOS based robotic controllers
WO2025079912A1 (en) Mapping and localization method for robot, and mobile robot using same
US20240278425A1 (en) Containerized plug-in system for robotics
Zhou et al. A real-time controller development framework for high degrees of freedom systems
Fernandez-Perez et al. Integrating systems in robotics
Ruskowski et al. Isaac Sim Integrated Digital Twin for Feasibility Checks in Skill-Based Engineering
Dominguez-Brito et al. Component software in robotics

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16848786

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2018514449

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 15762063

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2016848786

Country of ref document: EP