CN111414688A - Mobile robot simulation system and method based on UNITY engine - Google Patents

Mobile robot simulation system and method based on UNITY engine Download PDF

Info

Publication number
CN111414688A
CN111414688A CN202010193544.XA CN202010193544A CN111414688A CN 111414688 A CN111414688 A CN 111414688A CN 202010193544 A CN202010193544 A CN 202010193544A CN 111414688 A CN111414688 A CN 111414688A
Authority
CN
China
Prior art keywords
simulation
mobile robot
server
client
data
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.)
Pending
Application number
CN202010193544.XA
Other languages
Chinese (zh)
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.)
Shanghai Robot Industrial Technology Research Institute Co Ltd
Original Assignee
Shanghai Robot Industrial Technology Research Institute 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
Application filed by Shanghai Robot Industrial Technology Research Institute Co Ltd filed Critical Shanghai Robot Industrial Technology Research Institute Co Ltd
Priority to CN202010193544.XA priority Critical patent/CN111414688A/en
Publication of CN111414688A publication Critical patent/CN111414688A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Manipulator (AREA)

Abstract

The invention relates to a mobile robot simulation system based on a UNITY engine, which is characterized in that the system construction is completed by a mathematical modeling tool and a scene modeling tool, and the system construction comprises a simulation environment and an intelligent control algorithm. The invention provides a mobile robot simulation method based on the UNITY engine. The invention provides a method and a system for simulation test of a mobile robot, which can greatly save the labor and time cost of field test on one hand, and also provide an idea for the test specification or the test standard of an intelligent algorithm on the other hand. The invention can realize the dynamic simulation, the sensor simulation and the scene simulation of the mobile robot, realize the intelligent algorithm test, the sensor function test and the like of the mobile robot, quickly customize a test system and complete the test task under the condition of saving the labor cost.

Description

Mobile robot simulation system and method based on UNITY engine
Technical Field
The invention belongs to the technical field of mobile robot simulation, relates to the field of mobile robot motion control algorithms, and particularly relates to a mobile robot simulation system and method.
Background
Mobile robots are endowed with increasingly broad functions and have great leaps in function and technology, and can accomplish many complex tasks. Mobile robots are also increasingly used to perform tasks in industrial production, family life, community, hospital, etc. scenarios. Therefore, how to make the robot possess intelligent behaviors through self-study, self-learning, simulation and replication becomes a big problem in the fields of research institutes, academic circles, enterprises and the like.
At present, intelligent algorithms such as neural networks, genetic algorithms, ant colony algorithms and the like are considered to be capable of completing many complex tasks like human beings, but how well, how well and how effectively the intelligent algorithms are completed are worthy of further exploration.
Disclosure of Invention
The invention aims to: the simulation control and test of the robot are realized, so that the intelligent algorithm is conveniently evaluated.
In order to achieve the above object, the technical solution of the present invention is to provide a mobile robot simulation system based on a UNITY engine, which is characterized in that the system construction is completed by a mathematical modeling tool and a scene modeling tool, and includes a simulation environment and an intelligent control algorithm, wherein:
the simulation environment comprises sensor simulation, mobile robot body simulation, mobile robot dynamics simulation, mobile robot control simulation and environment modeling which are completed by using a scene modeling tool, and the scene environment modeling provides a virtual scene and an environment basis for the sensor simulation, the mobile robot body simulation, the mobile robot dynamics simulation and the mobile robot control simulation;
the intelligent control algorithm is an intelligent control algorithm for obstacle avoidance, path finding and path planning of the mobile robot realized by using a mathematical modeling tool;
the sensor simulation, the mobile robot body simulation, the mobile robot dynamics simulation and the environment modeling are operated at a client, and the mobile robot control simulation and the intelligent control algorithm are operated at a server;
the client and the server transmit data through Ethernet and keep communication in real time, the sensor data acquired by the sensor in the simulation environment is sent to an intelligent control algorithm through the Ethernet, the intelligent control algorithm is calculated and then sends a generated control instruction set to the simulation environment, the mobile robot dynamics simulation and the mobile robot control the mobile robot body to simulate the motion in the simulation environment, and the sensor data acquired by the sensor in the simulation process is fed back to the intelligent control algorithm.
Preferably, the mathematical modeling tool adopts MAT L AB, and the scenario modeling tool adopts Unity.
Preferably, a transmission data protocol for transmitting data may be customized to achieve reusability and versatility of the mobile robot simulation system.
Another technical solution of the present invention is to provide a mobile robot simulation method based on a UNITY engine, including the steps of:
the method comprises the following steps: establishing a communication channel between a server and a client, keeping the server in a receiving state, and waiting for verification data of the client;
step two: after receiving the verification data sent by the server, the server verifies whether the verification data is correct or not, if not, the server is disconnected from the server, if so, the server feeds back a verification message passing the verification to the client and then enters the third step, and meanwhile, the client verifies whether the verification message is correct or not, if not, the server is disconnected from the server, if so, the client continues to keep a connection state with the server, and meanwhile, the client sends an initialization message to the server, and the fourth step is entered;
step three: the server side initializes the verification program and then enters the fourth step;
step four: the server side verifies the received initialization message through the verification program, if the initialization message passes the verification, the server side sends an initialization message verification passing message to the client side, and if the initialization message does not pass the verification, the server side returns to the third step;
step five: after the client receives the initialization message verification passing message, starting a motion mode: firstly, a mobile robot controls simulation to control the motion speed of the simulation of a mobile robot body, the mobile robot dynamically simulates to execute motion simulation, and finally, simulation data is acquired through sensor simulation and is sent to an intelligent control algorithm, and a scene environment modeling sends environment information data to the intelligent control algorithm;
step six: after the server receives the environmental information data and the sensor data, an intelligent control algorithm utilizes the received data to build a map and avoid obstacles to obtain the advancing and steering data of the mobile robot, and simultaneously sends the advancing and steering data to the client;
step seven: the client controls simulation to control the simulation motion of the mobile robot body in real time by using the received advancing and steering data of the mobile robot, judges whether to send a movement stop command to the server end in real time, and closes the connection and terminates the simulation if the client judges to send the stop command to the server end;
step eight: when the server receives the stop command, the server closes the connection with the client and terminates the server program.
The invention provides a method and a system for simulation test of a mobile robot, which can greatly save the labor and time cost of field test on one hand, and also provide an idea for the test specification or the test standard of an intelligent algorithm on the other hand. The invention can realize the dynamic simulation, the sensor simulation and the scene simulation of the mobile robot, realize the intelligent algorithm test, the sensor function test and the like of the mobile robot, quickly customize a test system and complete the test task under the condition of saving the labor cost.
Drawings
FIG. 1 is a schematic diagram of a simulation function of a mobile robot;
fig. 2 is a simulation workflow of a mobile robot.
Detailed Description
The invention will be further illustrated with reference to the following specific examples. It should be understood that these examples are for illustrative purposes only and are not intended to limit the scope of the present invention. Further, it should be understood that various changes or modifications of the present invention may be made by those skilled in the art after reading the teaching of the present invention, and such equivalents may fall within the scope of the present invention as defined in the appended claims.
As shown in FIG. 1, the invention uses a mathematical modeling tool MAT L AB and a scene modeling tool Unity to complete the set-up task of the mobile robot simulation system based on the UNITY engine provided by the invention, the system uses the mode of Ethernet connection to complete the following functions:
firstly, an intelligent control algorithm for obstacle avoidance, path finding and path planning of the mobile robot is realized by using a mathematical modeling tool MAT L AB.
Secondly, the method comprises the following steps: the scene modeling tool Unity is used for realizing a simulation environment, and the following simulation functions are completed: robot appearance simulation, dynamics simulation, sensor function simulation, and environmental simulation.
Thirdly, the method comprises the following steps: the sensor data collected by the simulation environment is sent to a control algorithm in a mathematical modeling tool through Ethernet, and after the control algorithm is calculated, a control instruction is sent to the simulation environment to control the motion of the simulation robot in the simulation environment
The system provided by the invention can realize the butt joint of a robot algorithm and a simulation system in a TCPIP protocol, a serial interface protocol and other modes to construct a simulation test system applied to the mobile robot.
Fig. 1 is a schematic diagram of a simulation function of a mobile robot. The invention provides a mobile robot simulation system based on a UNITY engine, which comprises a sensor simulation function realized by sensor simulation, a mobile robot body simulation function realized by mobile robot body simulation, a mobile robot dynamics simulation function realized by mobile robot dynamics simulation, a mobile robot control simulation function realized by mobile robot control simulation and an environment modeling function realized by environment modeling. The environment modeling is the basis of the simulation system provided by the invention, and provides a virtual scene and an environment basis for sensor simulation, mobile robot body simulation, mobile robot dynamics simulation and mobile robot control simulation. Through the 5 functions, the simulation test field of the mobile robot can be basically covered, and finally, a simulation test system special for the mobile robot is completed.
The number 1 in fig. 1 indicates a simulation data packet sent by the simulation environment to the intelligent control algorithm, which may contain sensor data, time-related data, location data, etc.
Reference numeral 2 in fig. 1 denotes a control instruction set that the intelligent control algorithm sends to the simulation environment, and the control instruction set may include information on start and stop of the mobile robot, a moving speed, a steering speed, and the like.
Furthermore, the mobile robot simulation system based on the UNITY engine provided by the invention can customize a data transmission protocol, data can be transmitted between the simulation environment and the intelligent environment through a TCPIP protocol, a serial interface protocol and the like, and the data transmission protocol can be customized, so that the reusability and the universality of the test system are realized.
Fig. 2 is a flow chart of a simulation work of the mobile robot, and based on the flow chart, a mobile robot simulation test system based on Matlab and Unity can be constructed. The system is divided into a server side and a client side, wherein the server side mainly relates to tasks such as speed control, steering control, path planning, map building and the like of the mobile robot, and comprises a mobile robot control simulation and an intelligent control algorithm. The client mainly relates to scene modeling, sensor simulation, mobile robot body simulation, mobile robot dynamics simulation, functions of receiving a mobile terminal instruction and sending simulation data, and comprises sensor simulation, mobile robot body simulation, mobile robot dynamics simulation and environment modeling. The server and the client need to keep communication in real time to keep real-time receiving and sending of simulation data and control commands, such as serial number 1 and serial number 2 in fig. 1. The method comprises the following specific steps:
the method comprises the following steps: establishing a communication channel between a server and a client, keeping the server in a receiving state, and waiting for verification data of the client;
step two: after receiving the verification data sent by the server, the server verifies whether the verification data is correct or not, if not, the server is disconnected from the server, if so, the server feeds back a verification message passing the verification to the client and then enters the third step, and meanwhile, the client verifies whether the verification message is correct or not, if not, the server is disconnected from the server, if so, the client continues to keep a connection state with the server, and meanwhile, the client sends an initialization message to the server, and the fourth step is entered;
step three: the server side initializes the verification program and then enters the fourth step;
step four: the server side verifies the received initialization message through the verification program, if the initialization message passes the verification, the server side sends an initialization message verification passing message to the client side, and if the initialization message does not pass the verification, the server side returns to the third step;
step five: after the client receives the initialization message verification passing message, starting a motion mode: firstly, a mobile robot controls simulation to control the motion speed of the simulation of a mobile robot body, the mobile robot dynamically simulates to execute motion simulation, and finally, simulation data is acquired through sensor simulation and is sent to an intelligent control algorithm, and a scene environment modeling sends environment information data to the intelligent control algorithm;
step six: after the server receives the environmental information data and the sensor data, an intelligent control algorithm utilizes the received data to build a map and avoid obstacles to obtain the advancing and steering data of the mobile robot, and simultaneously sends the advancing and steering data to the client;
step seven: the client controls simulation to control the simulation motion of the mobile robot body in real time by using the received advancing and steering data of the mobile robot, judges whether to send a movement stop command to the server end in real time, and closes the connection and terminates the simulation if the client judges to send the stop command to the server end;
step eight: when the server receives the stop command, the server closes the connection with the client and terminates the server program.
The test system and the test method provided by the invention can reduce the labor cost of the test, shorten the development and test period of the mobile robot control system, realize the substitution of a real scene by using a virtual scene, realize the reproducibility and observability of the control effect and the like.

Claims (4)

1. The utility model provides a mobile robot simulation system based on UNITY engine which characterized in that, accomplishes the system and builds by mathematical modeling instrument and scene modeling instrument, including simulation environment and intelligent control algorithm, wherein:
the simulation environment comprises sensor simulation, mobile robot body simulation, mobile robot dynamics simulation, mobile robot control simulation and environment modeling which are completed by using a scene modeling tool, and the scene environment modeling provides a virtual scene and an environment basis for the sensor simulation, the mobile robot body simulation, the mobile robot dynamics simulation and the mobile robot control simulation;
the intelligent control algorithm is an intelligent control algorithm for obstacle avoidance, path finding and path planning of the mobile robot realized by using a mathematical modeling tool;
the sensor simulation, the mobile robot body simulation, the mobile robot dynamics simulation and the environment modeling are operated at a client, and the mobile robot control simulation and the intelligent control algorithm are operated at a server;
the client and the server transmit data through Ethernet and keep communication in real time, the sensor data acquired by the sensor in the simulation environment is sent to an intelligent control algorithm through the Ethernet, the intelligent control algorithm is calculated and then sends a generated control instruction set to the simulation environment, the mobile robot dynamics simulation and the mobile robot control the mobile robot body to simulate the motion in the simulation environment, and the sensor data acquired by the sensor in the simulation process is fed back to the intelligent control algorithm.
2. The UNITY engine-based mobile robot simulation system of claim 1, wherein the mathematical modeling tool uses MAT L AB and the scenario modeling tool uses UNITY.
3. The UNITY engine-based mobile robot simulation system of claim 1, wherein a transmission data protocol for transmitting data can be customized to achieve reusability and versatility of the mobile robot simulation system.
4. A mobile robot simulation method based on a UNITY engine is characterized by comprising the following steps:
the method comprises the following steps: establishing a communication channel between a server and a client, keeping the server in a receiving state, and waiting for verification data of the client;
step two: after receiving the verification data sent by the server, the server verifies whether the verification data is correct or not, if not, the server is disconnected from the server, if so, the server feeds back a verification message passing the verification to the client and then enters the third step, and meanwhile, the client verifies whether the verification message is correct or not, if not, the server is disconnected from the server, if so, the client continues to keep a connection state with the server, and meanwhile, the client sends an initialization message to the server, and the fourth step is entered;
step three: the server side initializes the verification program and then enters the fourth step;
step four: the server side verifies the received initialization message through the verification program, if the initialization message passes the verification, the server side sends an initialization message verification passing message to the client side, and if the initialization message does not pass the verification, the server side returns to the third step;
step five: after the client receives the initialization message verification passing message, starting a motion mode: firstly, a mobile robot controls simulation to control the motion speed of the simulation of a mobile robot body, the mobile robot dynamically simulates to execute motion simulation, and finally, simulation data is acquired through sensor simulation and is sent to an intelligent control algorithm, and a scene environment modeling sends environment information data to the intelligent control algorithm;
step six: after the server receives the environmental information data and the sensor data, an intelligent control algorithm utilizes the received data to build a map and avoid obstacles to obtain the advancing and steering data of the mobile robot, and simultaneously sends the advancing and steering data to the client;
step seven: the client controls simulation to control the simulation motion of the mobile robot body in real time by using the received advancing and steering data of the mobile robot, judges whether to send a movement stop command to the server end in real time, and closes the connection and terminates the simulation if the client judges to send the stop command to the server end;
step eight: when the server receives the stop command, the server closes the connection with the client and terminates the server program.
CN202010193544.XA 2020-03-18 2020-03-18 Mobile robot simulation system and method based on UNITY engine Pending CN111414688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010193544.XA CN111414688A (en) 2020-03-18 2020-03-18 Mobile robot simulation system and method based on UNITY engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010193544.XA CN111414688A (en) 2020-03-18 2020-03-18 Mobile robot simulation system and method based on UNITY engine

Publications (1)

Publication Number Publication Date
CN111414688A true CN111414688A (en) 2020-07-14

Family

ID=71493019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010193544.XA Pending CN111414688A (en) 2020-03-18 2020-03-18 Mobile robot simulation system and method based on UNITY engine

Country Status (1)

Country Link
CN (1) CN111414688A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112623905A (en) * 2020-12-18 2021-04-09 上海机器人产业技术研究院有限公司 Simulation test system for robot to take elevator
CN114384822A (en) * 2022-01-21 2022-04-22 首域科技(杭州)有限公司 Semi-physical simulation control system for tobacco shred manufacturing equipment
CN117092930A (en) * 2023-08-29 2023-11-21 合肥中科深谷科技发展有限公司 Open semi-physical simulation control system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925431A (en) * 2005-08-31 2007-03-07 华为技术有限公司 Method for file host-host protocol service significance testing
CN101510870A (en) * 2008-04-23 2009-08-19 北京德瑞海普科技有限公司 Method for simulating, verifying and organizing code grade network protocol based on script and module drive
CN107671857A (en) * 2017-10-11 2018-02-09 上海交通大学 For service robot operation demonstration and the three-dimensional artificial platform of proof of algorithm
CN108681264A (en) * 2018-08-10 2018-10-19 成都合纵连横数字科技有限公司 A kind of intelligent vehicle digitalized artificial test device
CN108845802A (en) * 2018-05-15 2018-11-20 天津大学 Unmanned plane cluster formation interactive simulation verifies system and implementation method
CN108858195A (en) * 2018-07-16 2018-11-23 睿尔曼智能科技(北京)有限公司 A kind of Triple distribution control system of biped robot
CN109946995A (en) * 2019-03-26 2019-06-28 湖北亿咖通科技有限公司 Emulation test method, device and the intelligent terminal of automatic Pilot

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925431A (en) * 2005-08-31 2007-03-07 华为技术有限公司 Method for file host-host protocol service significance testing
CN101164287A (en) * 2005-08-31 2008-04-16 华为技术有限公司 File transfer protocol service performance testing method
CN101510870A (en) * 2008-04-23 2009-08-19 北京德瑞海普科技有限公司 Method for simulating, verifying and organizing code grade network protocol based on script and module drive
CN107671857A (en) * 2017-10-11 2018-02-09 上海交通大学 For service robot operation demonstration and the three-dimensional artificial platform of proof of algorithm
CN108845802A (en) * 2018-05-15 2018-11-20 天津大学 Unmanned plane cluster formation interactive simulation verifies system and implementation method
CN108858195A (en) * 2018-07-16 2018-11-23 睿尔曼智能科技(北京)有限公司 A kind of Triple distribution control system of biped robot
CN108681264A (en) * 2018-08-10 2018-10-19 成都合纵连横数字科技有限公司 A kind of intelligent vehicle digitalized artificial test device
CN109946995A (en) * 2019-03-26 2019-06-28 湖北亿咖通科技有限公司 Emulation test method, device and the intelligent terminal of automatic Pilot

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112623905A (en) * 2020-12-18 2021-04-09 上海机器人产业技术研究院有限公司 Simulation test system for robot to take elevator
CN112623905B (en) * 2020-12-18 2023-05-05 上海机器人产业技术研究院有限公司 Simulation test system for robot riding elevator
CN114384822A (en) * 2022-01-21 2022-04-22 首域科技(杭州)有限公司 Semi-physical simulation control system for tobacco shred manufacturing equipment
CN117092930A (en) * 2023-08-29 2023-11-21 合肥中科深谷科技发展有限公司 Open semi-physical simulation control system

Similar Documents

Publication Publication Date Title
CN111414688A (en) Mobile robot simulation system and method based on UNITY engine
CN103753534B (en) A kind of Movement Controller of Mobile Robot and control method thereof
CN109471435B (en) Multi-heterogeneous mobile robot control system
CN101286058A (en) Robot modularized distribution type adaptive control system and method
CN103901889A (en) Multi-robot formation control path tracking method based on Bluetooth communications
CN108762112A (en) A kind of industrial robot emulation and real-time control system based on virtual reality
CN113687718A (en) Man-machine integrated digital twin system and construction method thereof
Ahmed et al. Design and implement of robotic arm and control of moving via IoT with Arduino ESP32.
CN110442133A (en) A kind of method and system of multiple groups industrial robot work compound
CN116384092A (en) Modeling system for digital twin of manufacturing equipment and real-time interaction method
Luo et al. Intelligent autonomous mobile robot control through the Internet
Li et al. Inspection robot based on offline digital twin synchronization architecture
CN209015561U (en) A kind of robot teaching aid
CN117549310A (en) General system of intelligent robot with body, construction method and use method
CN106708034A (en) Implementation method for controlling walking path of robot on basis of mobile phone
CN204883256U (en) High real -time control system of robot framework
CN114227719A (en) Mobile robot remote control system, method and medium
CN112936282B (en) Method and system for improving motion sensing control accuracy of industrial robot
CN214818593U (en) Robot control system
Basha et al. Command Control Robot using Internet of Things on Field Programmable Gate Array
CN115014824A (en) Robot test system, method and computer readable storage medium
CN111571594B (en) Method for improving transparency and stability of teleoperation robot
CN108161953A (en) A kind of intelligent robot head system
Casini et al. MARS: a Matlab simulator for mobile robotics experiments
Bibi et al. PSO based localization of multiple mobile robots emplying LEGO EV3

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200714

RJ01 Rejection of invention patent application after publication