CN115026811B - A multi-robot serial port to WIFI communication and coordinated motion control method - Google Patents

A multi-robot serial port to WIFI communication and coordinated motion control method Download PDF

Info

Publication number
CN115026811B
CN115026811B CN202210558533.6A CN202210558533A CN115026811B CN 115026811 B CN115026811 B CN 115026811B CN 202210558533 A CN202210558533 A CN 202210558533A CN 115026811 B CN115026811 B CN 115026811B
Authority
CN
China
Prior art keywords
robot
serial port
slave
host
opencr
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.)
Active
Application number
CN202210558533.6A
Other languages
Chinese (zh)
Other versions
CN115026811A (en
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.)
Beijing Institute of Technology BIT
Original Assignee
Beijing Institute of Technology BIT
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 Beijing Institute of Technology BIT filed Critical Beijing Institute of Technology BIT
Priority to CN202210558533.6A priority Critical patent/CN115026811B/en
Publication of CN115026811A publication Critical patent/CN115026811A/en
Application granted granted Critical
Publication of CN115026811B publication Critical patent/CN115026811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1679Programme controls characterised by the tasks executed
    • B25J9/1682Dual arm manipulator; Coordination of several manipulators
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1656Programme controls characterised by programming, planning systems for manipulators
    • B25J9/1664Programme controls characterised by programming, planning systems for manipulators characterised by motion, path, trajectory planning
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

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

Abstract

本发明提出一种多机器人串口转WIFI通讯及协同运动控制方法,包括步骤1:在上位机添加虚拟串口,在多个机器人中确定主机机器人和从机机器人,所述多个机器人具有OpenCR控制器;为所述主机机器人的OpenCR控制器安装配置两个串口转WIFI芯片,并为所述从机机器人的OpenCR控制器安装配置一个串口转WIFI芯片;步骤2:将所述上位机与所述主机机器人连接到同一个无线网络下,所述上位机作为服务端与所述主机机器人之间建立TCP连接,并发送控制指令给所述主机机器人;步骤3:所述从机机器人跟随主机机器人作协同运动。

The present invention proposes a multi-robot serial port to WIFI communication and coordinated motion control method, comprising step 1: adding a virtual serial port in a host computer, determining a host robot and a slave robot among multiple robots, wherein the multiple robots have an OpenCR controller; installing and configuring two serial port to WIFI chips for the OpenCR controller of the host robot, and installing and configuring one serial port to WIFI chip for the OpenCR controller of the slave robot; step 2: connecting the host computer and the host robot to the same wireless network, establishing a TCP connection between the host computer as a server and the host robot, and sending a control instruction to the host robot; step 3: the slave robot follows the host robot to perform coordinated motion.

Description

Multi-robot serial port-to-WIFI communication and cooperative motion control method
Technical Field
The invention belongs to the technical field of multi-agent control, and particularly relates to a multi-robot serial port-to-WIFI communication method and a cooperative motion control method.
Background
In recent years, with the gradual increase of the intelligent level of robots, the applicable scenes of the robots become very wide, and as tasks to be executed and functions to be realized become more and more complex, single robots cannot meet application requirements, and control of multiple robots is an important research direction nowadays. In the coordinated motion control of multiple robots, communication is required between each robot and an upper computer to obtain data information. The current common method is to connect robots with respective upper computers through serial ports and then perform network communication among the upper computers, but the method has high cost due to the fact that each robot needs to be provided with an upper computer, and the upper computers occupy a certain space and are not suitable for application scenes of some small robots. Therefore, the solution to the above problem is very critical by directly implementing the communication from serial port to WIFI on OpenCR controllers.
Disclosure of Invention
In view of the above, the present invention provides a multi-robot serial port to WIFI communication and cooperative motion control method, including:
Step 1: adding a virtual serial port in an upper computer, and determining a master robot and a slave robot in a plurality of robots, wherein the robots are provided with OpenCR controllers; two serial port-to-WIFI chips are installed and configured for a OpenCR controller of the master robot, and one serial port-to-WIFI chip is installed and configured for a OpenCR controller of the slave robot;
Step 2: connecting the upper computer and the host robot to the same wireless network, establishing TCP connection between the upper computer and the host robot as a server, and sending a control instruction to the host robot;
step 3: the slave robots move cooperatively with the master robots.
In step 1, a TCP server is established in the upper computer, IP and port are set, and connection is established with a virtual serial port through software; and setting the baud rate and the data bit of the virtual serial port, and sending the monitored virtual serial port data in the form of a TCP client.
Particularly, in the step 2, the upper computer sends a control command to the upper computer, wherein the control command can be output by adopting keyboard control, and the angle rotation of each steering engine is directly controlled.
In particular, step 2 further includes that the upper computer can control task coordinates of the robot through keys, and the rotation angles of the steering engines are obtained through inverse kinematics calculation to control.
In particular, step 2 also includes setting special gestures, rotation tracks or rotation speeds of some fixed points through keys; wherein the speed of the robot can be controlled by controlling the moving time between target points, and the actuating mechanism of the robot is formed by a plurality of PID links to form position feedback control.
Specifically, the host robot also sends the data of each steering engine sensor to the upper computer through the TCP client.
Specifically, in the step 3, the master robot establishes a TCP server, the slave robots each establish a TCP client to respectively establish a connection with the master robot, and the transmitted data is converted by OpenCR driving program, WIFI transmission and serial-to-WIFI chip conversion and finally transmitted to OpenCR controllers of the slave robots; and the slave robot sends a control instruction to each joint steering engine by a OpenCR controller according to the obtained data.
The beneficial effects are that:
1) According to the invention, communication from serial port to WIFI is directly realized on the OpenCR controller, the inconvenience that a plurality of serial ports are required to be connected with a plurality of upper computers in a plurality of robot scenes can be solved through the WIFI protocol, and the resource consumption and the space occupation are saved;
2) According to the invention, the host robot and the slave robot are connected by adopting the TCP protocol between the host computer and the host robot, so that the stability of connection and the accuracy of data transmission are ensured;
3) The upper computer can directly control the state of the host robot in various modes such as steering engine angles, task coordinates, special postures, rotation tracks or rotation speeds of the host robot, and the like, so that the high-speed robot has higher flexibility;
4) The host robot also transmits the data of each steering engine sensor to the upper computer through the TCP client, so that a closed loop of the control system is formed, and the control system can be used for verifying whether a control command is effective.
Drawings
FIG. 1 is a schematic diagram of a multi-robot serial-to-WIFI communication and cooperative motion control architecture;
fig. 2 is a schematic diagram of a multi-robot cooperative motion real scene.
Detailed Description
The invention will now be described in detail by way of example with reference to the accompanying drawings.
The invention provides a method for converting serial ports of multiple robots into WIFI communication and cooperative motion control, wherein the process is shown in fig. 1, the actual scene is shown in fig. 2, and the method specifically comprises the following steps:
Step 1: adding a virtual serial port in an upper computer, and determining a master robot and a slave robot in a plurality of robots, wherein the robots are provided with OpenCR controllers; two serial-to-WIFI chips are installed and configured for a OpenCR controller of the master robot, and one serial-to-WIFI chip is installed and configured for a OpenCR controller of the slave robot.
The invention takes the Ubuntu system as an upper computer and installs the Ubuntu system on Vmware Workstation virtual machines. And installing virtual serial port application software on the Windows system, adding a virtual serial port for the system, adding and using the virtual serial port on the host system on the virtual machine, setting a network as a bridging network, and monitoring the data of the virtual serial port.
Each robot comprises five steering engines, steering engine wires are connected to steering engine interfaces of OpenCR controllers, two serial port-to-WIFI chips are installed on a UART/USART port of a OpenCR controller of a host robot, one of the chips is connected with an upper computer as a TCP client, the other chip is connected with a slave computer as a TCP server, a OpenCR controller of the slave robot is provided with a serial port-to-WIFI chip on the UART/USART port of the slave robot, the chip is connected with the host robot as a TCP client, and bidirectional transparent transmission of serial port data and WIFI data is automatically achieved.
Step 2: and connecting the upper computer and the host robot to the same wireless network, establishing TCP connection between the upper computer serving as a server and the host robot, and sending a control instruction to the host robot.
And establishing a TCP server for the host computer system of the upper computer, setting IP, ports and the like, and establishing connection with the virtual serial port through software. Setting parameters such as the baud rate of the virtual serial port, data bits and the like, and sending the monitored virtual serial port data in the form of a TCP client, wherein the sending mode is a transparent transmission mode, namely, the serial port data is not processed. Meanwhile, the return information received by the client is also sent to the virtual serial port, so that bidirectional data conversion and transmission of the virtual serial port and the WIFI are realized.
The upper computer and the chip of the host robot are connected to the same WIFI network, and the host robot chip is used as a TCP client to be connected with a TCP server of the upper computer.
The upper computer outputs control commands by adopting keyboard control, wherein a part of keys directly control the angle rotation of each steering engine to comprise opening and closing of a robot gripper, a part of keys control xyz task coordinates of the robot, the rotation angles of the steering engines are obtained by inverse kinematics calculation to control, special gestures of certain fixed points can be set by one key, the rotation track is used as a solution when the maximum value of the rotation angles in all joints is minimum, and the rotation speed can be set before the steering engines rotate. The steering engine is controlled by position control, and the steering engine is internally composed of a plurality of PID links.
Opening a virtual serial port, outputting a control instruction to the virtual serial port in a serial port data form, after the virtual serial port data is monitored, transmitting the data by the virtual serial port application software through the TCP connection between an upper computer and a host robot chip, converting the data after being transmitted to the chip and outputting the data to a UART/USART serial port, burning a conversion program from the serial port to a steering engine interface in advance in a OpenCR controller, and finally transmitting the data to a steering engine for control.
Meanwhile, the angle position and rotation speed information acquired by the steering engine sensor are transmitted in an inverted sequence, namely, the information is firstly subjected to OpenCR controller conversion program and then is transmitted to the serial port to WIFI chip, and finally, the information is fed back to the upper computer through TCP connection and monitoring of the virtual serial port, so that closed-loop control is realized.
Step 3: the slave robots move cooperatively with the master robots.
All robots are connected under the same WIFI, the host robot establishes a TCP server, and the slave robots respectively establish TCP clients and respectively establish connection with the host.
The host robot sends the data of each steering engine sensor to the upper computer through the TCP client, and also sends the data to all the slave robots through the TCP server, and the data is finally transmitted to OpenCR controllers of all the slave robots through OpenCR program conversion, WIFI transmission and chip conversion.
The control program is burnt in advance by the OpenCR controller of the slave machine, specifically, the same steering engine position control instruction is directly sent to the steering engine of the slave machine robot according to the obtained information of the master machine robot, so that the steering engine angle is the same as that of the master machine robot, and meanwhile, the steering engine angle is directly fed back to the OpenCR controller by the sensor of the slave machine robot, so that closed-loop control is realized.
In summary, the above embodiments are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
It will be evident to those skilled in the art that the embodiments of the invention are not limited to the details of the foregoing illustrative embodiments, and that the embodiments of the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of embodiments being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units, modules or means recited in a system, means or terminal claim may also be implemented by means of software or hardware by means of one and the same unit, module or means. The terms first, second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the embodiment of the present invention, and not for limiting, and although the embodiment of the present invention has been described in detail with reference to the above-mentioned preferred embodiments, it should be understood by those skilled in the art that modifications and equivalent substitutions can be made to the technical solution of the embodiment of the present invention without departing from the spirit and scope of the technical solution of the embodiment of the present invention.

Claims (5)

1. The method for converting serial port of multiple robots into WIFI communication and controlling cooperative motion is characterized by comprising the following steps:
Step 1: adding a virtual serial port in an upper computer, and determining a master robot and a slave robot in a plurality of robots, wherein the robots are provided with OpenCR controllers; two serial port-to-WIFI chips are installed and configured for a OpenCR controller of the host robot, wherein one of the chips is used as a TCP client to be connected with an upper computer, and the other chip is used as a TCP server to be connected with a slave computer; a serial port-to-WIFI chip is installed and configured for a OpenCR controller of the slave robot and is used as a TCP client to be connected with the host robot;
Step 2: connecting the upper computer and the host robot to the same wireless network, establishing TCP connection between the upper computer and the host robot as a server, and sending a control instruction to the host robot;
step 3: the slave robot moves cooperatively with the master robot; the method comprises the following steps:
The host robot sends the data of each steering engine sensor to the upper computer through a TCP client, and also sends the data to all the slave robots through a TCP server, and the data is finally transmitted to OpenCR controllers of all the slave robots through OpenCR program conversion, WIFI transmission and chip conversion;
the OpenCR controller of the slave machine burns a control program in advance, and directly sends the same steering engine position control instruction to the steering engine of the slave machine robot according to the obtained information of the master machine robot, so that the steering engine angle of the slave machine robot is the same as that of the master machine robot.
2. The method for converting serial port of multiple robots to WIFI communication and cooperative motion control according to claim 1, wherein the method is characterized in that in step 1, a TCP server is established in the upper computer, IP and port setting are performed, and connection is established with a virtual serial port through software; and setting the baud rate and the data bit of the virtual serial port, and sending the monitored virtual serial port data in the form of a TCP client.
3. The method for converting serial port of multiple robots to WIFI communication and cooperative motion control according to claim 1, wherein in step 2, the upper computer sends control instructions to the host robot, wherein keyboard control is adopted to output control instructions, and the angular rotation of each steering engine is directly controlled.
4. The method for converting serial port of multiple robots to WIFI communication and cooperative motion control according to claim 3, wherein in step 2, the upper computer further comprises the step of controlling task coordinates of the robots through keys, and obtaining rotation angles of steering engines through inverse kinematics calculation to control.
5. The multi-robot serial port-to-WIFI communication and cooperative motion control method of claim 3, wherein: the step 2 also comprises setting special postures, rotation tracks or rotation speeds of some fixed points through keys; wherein the speed of the robot is controlled by controlling the moving time between target points, and the executing mechanism of the robot is formed by a plurality of PID links to form position feedback control.
CN202210558533.6A 2022-05-20 2022-05-20 A multi-robot serial port to WIFI communication and coordinated motion control method Active CN115026811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210558533.6A CN115026811B (en) 2022-05-20 2022-05-20 A multi-robot serial port to WIFI communication and coordinated motion control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210558533.6A CN115026811B (en) 2022-05-20 2022-05-20 A multi-robot serial port to WIFI communication and coordinated motion control method

Publications (2)

Publication Number Publication Date
CN115026811A CN115026811A (en) 2022-09-09
CN115026811B true CN115026811B (en) 2024-11-26

Family

ID=83121582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210558533.6A Active CN115026811B (en) 2022-05-20 2022-05-20 A multi-robot serial port to WIFI communication and coordinated motion control method

Country Status (1)

Country Link
CN (1) CN115026811B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634310A (en) * 2019-03-01 2019-04-16 郑州大学 One kind is based on adaptive multirobot optimization formation control method and system

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04304982A (en) * 1991-04-02 1992-10-28 Toshiba Corp Controller of robot
CN105425791B (en) * 2015-11-06 2019-01-29 武汉理工大学 A kind of the group robot control system and method for view-based access control model positioning
CN105955261B (en) * 2016-05-06 2019-02-19 河源职业技术学院 A kind of multiple robots system for tracking based on ZigBee communication
CN207264199U (en) * 2017-09-20 2018-04-20 庄子豪 A kind of central controlled Climbing Robot system of host computer
CN107770181B (en) * 2017-10-26 2020-10-30 南京诚思机器人科技有限公司 Interaction method, interaction processing device and system of robot system
CN108247632A (en) * 2017-12-28 2018-07-06 哈尔滨工业大学深圳研究生院 A kind of cooperation robot control system based on ROS
CN208737303U (en) * 2018-09-30 2019-04-12 南京航空航天大学金城学院 A warehouse robot system with centralized control by the host computer
CN111300412A (en) * 2020-02-28 2020-06-19 华南理工大学 A method of controlling robots based on Unreal Engine
CN111283680B (en) * 2020-02-28 2023-07-18 华南理工大学 System and method for wireless remote control robot
CN212683969U (en) * 2020-06-11 2021-03-12 西北农林科技大学 An orchard multi-robot physical model
CN113485312A (en) * 2021-08-24 2021-10-08 哈尔滨工程大学 Multi-underwater robot cooperative tracking control algorithm verification system
CN216286301U (en) * 2021-12-09 2022-04-12 上海辛莫智能科技有限公司 AGV remote control device realized by using multiple communication modes of upper computer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634310A (en) * 2019-03-01 2019-04-16 郑州大学 One kind is based on adaptive multirobot optimization formation control method and system

Also Published As

Publication number Publication date
CN115026811A (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN107363812B (en) Wireless control six-degree-of-freedom mechanical arm demonstration system
CN109471435B (en) A multi-heterogeneous mobile robot control system
CN104786221B (en) A kind of open method for controlling robot based on Ethernet
CN106502095B (en) A kind of cooperative control method of more industrial robots
CN110427039A (en) A kind of distributed cloud navigation system and air navigation aid based on ROS2
CN115442202B (en) A 5G network cloud-end collaborative virtual PLC control method and system
CN107544299B (en) PC (personal computer) end APP (application) system for teaching control of six-degree-of-freedom mechanical arm
CN107901039A (en) Python-based desktop-level robot offline programming simulation system
US9950425B2 (en) Robot control apparatus and robot system
JP2013526419A (en) Method for controlling an automated work cell
CN110549334A (en) Control method of four-degree-of-freedom mechanical arm
Mertes et al. Development of a 5G-enabled Digital Twin of a Machine Tool
CN106945044A (en) Robot pause motion control method and system
CN115026820A (en) Human-machine collaborative assembly robot control system and control method
CN115026811B (en) A multi-robot serial port to WIFI communication and coordinated motion control method
CN108772839B (en) Master-slave operation and man-machine integration system
WO2024198301A1 (en) Coal mine edge control system
US12398902B2 (en) Control system
CN103246253A (en) Multi-motor distributed type control system under wireless network and multi-motor distributed type control method
CN115741676A (en) Control system for multi-robot cooperative work
CN112947903B (en) Graphical programming system, platform and method based on Scratch for education unmanned aerial vehicle
CN222472517U (en) Controller and robot system
CN106774178B (en) Automatic control system and method and mechanical equipment
CN113110364A (en) Service robot control system based on industrial Ethernet
CN110509277A (en) A kind of robot movement-control system and robot

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
GR01 Patent grant
GR01 Patent grant