A robot positioning and navigation method, device, terminal equipment and robot
By using coordinate conversion between the preset physical coordinate system and the terminal map coordinate system in the terminal device, and directly using attitude information for translation conversion, the problem of complex coordinate conversion in robot positioning and navigation is solved, and real-time response and precise positioning are achieved.
Patent Information
- Application Number
- CN202110338112.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-30
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-03-30
AI Technical Summary
In the process of robot positioning and navigation, traditional coordinate conversion operations are complex, resulting in slow response and difficulty in ensuring positioning accuracy.
By using the coordinate conversion between the preset physical coordinate system and the terminal map coordinate system in the terminal device, posture information is directly used for translation conversion, simplifying the coordinate conversion process, improving response efficiency and ensuring positioning accuracy.
It achieves real-time response and precise positioning of robot positioning and navigation, simplifies coordinate conversion operations, and improves the overall response rate and ease of use.
Smart Images

Figure CN113124872B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of positioning and navigation technology, and in particular, relates to a robot positioning and navigation method, device, terminal equipment and robot. Background Art
[0002] With the development of robotics technology, ground mobile robots are increasingly used in shopping malls, smart homes, restaurants, firefighting and other fields, and the research on robot remote control has become one of the hot topics today.
[0003] At present, in the process of remote positioning and navigation control of robots, terminal devices mainly use traditional and relatively simple coordinate systems to perform position coordinate conversion operations, which makes the coordinate conversion operations in the positioning and navigation process more complicated, resulting in a slow response in the positioning and navigation control process and difficulty in ensuring positioning accuracy. Summary of the invention
[0004] The embodiments of the present application provide a robot positioning and navigation method, apparatus and terminal device, which can solve the problem that the coordinate conversion operation in the traditional positioning and navigation process is relatively complex, resulting in a slow response in the positioning and navigation control process.
[0005] In a first aspect, an embodiment of the present application provides a robot positioning and navigation method, which is applied to a terminal device, and the method includes:
[0006] Sending a positioning and navigation instruction to the robot, the positioning and navigation instruction includes the posture coordinates corresponding to the destination mark point in a preset physical coordinate system; the positioning and navigation instruction is used to instruct the robot to move to the destination mark point; in the process of controlling the robot to move to the posture coordinates, receiving the state information fed back by the robot, the state information includes the position information and posture information of the robot in the preset physical coordinate system; based on the same posture information, performing coordinate transformation on the position information to obtain the positioning information of the robot in the terminal map coordinate system; updating and displaying the positioning information and the posture information of the robot.
[0007] Through the embodiments of the present application, the terminal device can remotely control the robot to realize the positioning and navigation of the robot; during the positioning and navigation of the robot, the robot's posture information in a preset physical coordinate system is obtained in real time, and the robot's posture information can be displayed in real time through coordinate conversion; during the coordinate conversion process, the terminal device can directly display the posture information fed back by the robot, and only coordinate conversion is performed on the position information, which simplifies the conversion operation process and improves the efficiency of real-time response; at the same time, the coordinate operation is simple, which ensures the accuracy of the real-time positioning of the robot; it has strong ease of use and practicality.
[0008] In a possible implementation manner of the first aspect, before sending the positioning and navigation instructions to the robot, the method further includes:
[0009] Receive a go instruction for the destination marker point input by the user; determine the first position coordinates and first posture information of the destination marker point according to the go instruction, the first position coordinates and the first posture information being the coordinate information of the destination marker point in the terminal map coordinate system; based on the same first posture information, perform coordinate transformation on the first position coordinate to obtain the posture coordinates corresponding to the destination marker point in the preset physical coordinate system.
[0010] In the above manner, before the terminal device sends the positioning and navigation instructions to the robot, it converts the pose coordinates of the destination mark point into the coordinate values of the coordinate system corresponding to the robot, so that the robot can move according to the coordinate values in its own coordinate system. The coordinate conversion process still keeps the pose information before and after unchanged, and only needs to perform linear conversion on the position coordinates, without the need to perform angle transformation calculations based on the pose information before and after the conversion according to the conversion matrix, which simplifies the coordinate conversion process and improves the overall response rate.
[0011] In a possible implementation manner of the first aspect, based on the same first posture information, performing coordinate transformation on the first position coordinates to obtain the posture coordinates corresponding to the destination mark point in the preset physical coordinate system includes:
[0012] The first position coordinates of the target mark point are converted into second position coordinates in the preset physical coordinate system through a first conversion formula; the second position coordinates and the first posture information are used as the posture coordinates corresponding to the target mark point in the preset physical coordinate system; the first conversion formula is expressed as follows:
[0013]
[0014] Among them, (px, py) is the first position coordinate of the destination marker point in the terminal map coordinate system; (mx, my) is the second position coordinate of the destination marker point in the preset physical coordinate system; bmpw is the width of the original size of the map file image, bmph is the height of the original size of the map file image, paintw is the currently displayed width of the map file image, painth is the currently displayed height of the map file, bmpx is the horizontal coordinate of the upper left corner in the terminal device desktop coordinate system, bmpy is the vertical coordinate of the upper left corner in the terminal device desktop coordinate system, and the unit is bit; res is the ratio of the physical map size to the original size of the map file image.
[0015] Exemplarily, after sending the positioning and navigation instructions to the robot, the method further includes:
[0016] If no response instruction is received from the robot within the first preset time period, a navigation start timeout is displayed and the navigation guidance is closed;
[0017] If a response instruction fed back by the robot is received within the first preset time period, the response instruction is received in real time.
[0018] Exemplarily, the response instruction includes status information of the robot. After receiving the response instruction, the method further includes:
[0019] Determining the status information of the robot;
[0020] If it is determined that the status information of the robot is abnormal, the navigation guidance is closed, and one or more prompt messages of navigation positioning failure, obstacle, navigation conflict, navigation cancellation, and navigation prohibition are displayed;
[0021] If it is determined that the state information of the robot is normal, the navigation action continues to be executed, and the position information of the robot at the current position is updated in real time.
[0022] In a possible implementation manner of the first aspect, performing coordinate transformation on the position information based on the same posture information to obtain positioning information of the robot includes:
[0023] The position information of the robot in the preset physical coordinate system is converted into a third position coordinate in the terminal map coordinate system through a second conversion formula; the third position coordinate is used as the positioning information; the second conversion formula is expressed as follows:
[0024]
[0025] Among them, (px, py) is the third position coordinate of the robot's position in the terminal map coordinate system; (mx, my) is the position information of the robot's position in the preset physical coordinate system; bmpw is the width of the original size of the map file image, bmph is the height of the original size of the map file image, paintw is the currently displayed width of the map file image, painth is the currently displayed height of the map file, bmpx is the horizontal coordinate of the upper left corner in the terminal device desktop coordinate system, bmpy is the vertical coordinate of the upper left corner in the terminal device desktop coordinate system, and the unit is bit; res is the ratio of the physical map size to the original size of the map file image.
[0026] It should be understood that after controlling the robot to move to the posture coordinates corresponding to the destination mark point, navigation ends, the navigation guide is closed and the navigation completion is displayed.
[0027] In a possible implementation manner of the first aspect, the method includes:
[0028] Send a posture query instruction to the robot, the posture query instruction is used to instruct the robot to locate and generate current posture information, the current posture information including a fourth position coordinate and a second posture information of the robot's current position in a preset physical coordinate system; receive the current posture information fed back by the robot; based on the same second posture information, convert the fourth position coordinate into a fifth position coordinate in a terminal map coordinate system; use the fifth position coordinate as the positioning information of the robot's current position; and display the positioning information and the second posture information of the robot's current position.
[0029] Exemplarily, after sending a posture query instruction to the robot, the method further includes:
[0030] If no reply command is received from the robot within the second preset time period, the query circle is closed and a timeout for obtaining the posture information is displayed;
[0031] If a reply instruction sent by the robot is received within the second preset time period, the query circle and the timer are closed.
[0032] Exemplarily, the reply instruction includes the map name of the robot side. After receiving the reply instruction sent by the robot, the method further includes:
[0033] Determining the reply instruction;
[0034] If there is an error in the reply command, the map interface will not be loaded, and a pop-up window will be displayed indicating that the robot is not bound, the robot is not locked, the data is illegal, or the map is not selected;
[0035] If the reply instruction is correct, the map interface is loaded and the local map is searched according to the map name.
[0036] In a possible implementation manner of the first aspect, after receiving the current posture information fed back by the robot, the method further includes:
[0037] Obtain the map file name corresponding to the map file currently used by the robot; query a local map with the same map file name according to the map file name; if the local map exists, read and display the information of the local map based on the current posture information.
[0038] For example, if no local map is found according to the map name, a prompt message indicating that there is no local map is displayed;
[0039] If a local map is found according to the map name, it is determined whether the reply instruction contains current posture information;
[0040] If the current position information is not included, the local map information is read and a prompt message indicating that the robot is not positioned or has no positioning information is displayed;
[0041] If the current posture information is included, the local map information is read, and the fourth position coordinate in the current posture information is converted to obtain the current positioning information of the robot.
[0042] Exemplarily, in the process of querying the local map according to the map name, the remote connection status with the robot is monitored in real time. If the connection status is disconnected, a prompt message indicating that the robot is offline is displayed.
[0043] Exemplarily, the method further includes:
[0044] During the process of controlling the robot to move to the posture coordinates corresponding to the destination mark point, if a cancel command is received, a stop navigation command is sent to the robot; a navigation close feedback command sent by the robot is received; if the navigation close feedback command is correct, the navigation guidance is closed and the stop navigation is successful; if the navigation close feedback command is wrong, the navigation guidance is closed and the stop navigation is failed.
[0045] In a second aspect, an embodiment of the present application provides a robot positioning and navigation method, which is applied to a robot, and the method includes:
[0046] Receiving a positioning and navigation instruction sent by a terminal device, wherein the positioning and navigation instruction includes a posture coordinate corresponding to a destination mark point in a preset physical coordinate system;
[0047] According to the posture coordinates, during the movement toward the destination mark point, generating position information and posture information in the preset physical coordinate system;
[0048] The position information and the posture information are sent to the terminal device; the position information is used to instruct the terminal device to perform coordinate conversion, convert the position information into positioning information in the terminal map coordinate system, and the terminal device displays the positioning information and the posture information.
[0049] In a third aspect, an embodiment of the present application provides a robot positioning and navigation device, comprising:
[0050] A sending unit, used to send a positioning and navigation instruction to the robot, wherein the positioning and navigation instruction includes a posture coordinate corresponding to a destination mark point; the positioning and navigation instruction is used to instruct the robot to move toward the destination mark point;
[0051] A receiving unit, used to receive state information fed back by the robot during the process of controlling the robot to move to the position coordinates corresponding to the destination mark point, wherein the state information includes position information and posture information of the robot;
[0052] A processing unit, configured to perform coordinate transformation on the position information based on the same posture information to obtain positioning information of the robot;
[0053] A display unit is used to update and display the positioning information and the posture information of the robot.
[0054] In a fourth aspect, an embodiment of the present application provides a robot positioning and navigation device, including:
[0055] A receiving unit, configured to receive a positioning and navigation instruction sent by a terminal device, wherein the positioning and navigation instruction includes a posture coordinate corresponding to a destination mark point in a preset physical coordinate system;
[0056] A positioning unit, used to generate position information and posture information in the preset physical coordinate system during the movement toward the target mark point according to the posture coordinates;
[0057] A sending unit is used to send the position information and the posture information to the terminal device; the position information is used to instruct the terminal device to perform coordinate conversion, convert the position information into positioning information in the terminal map coordinate system, and the terminal device displays the positioning information and the posture information.
[0058] In a fifth aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the described method when executing the computer program.
[0059] In a sixth aspect, an embodiment of the present application provides a robot comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the described method when executing the computer program.
[0060] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the described method when executed by a processor.
[0061] In an eighth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute any of the methods described in the first aspect above.
[0062] It can be understood that the beneficial effects of the second to eighth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0064] Figure 1 It is a schematic diagram of the system architecture of an application scenario provided by an embodiment of the present application;
[0065] Figure 2 It is a flowchart of a robot positioning and navigation method provided by an embodiment of the present application;
[0066] Figure 3 is a flow chart of a robot positioning method provided by an embodiment of the present application;
[0067] Figure 4 This is a schematic diagram of an interface for displaying positioning information on a terminal device provided by another embodiment of the present application;
[0068] Figure 5 It is a structural schematic diagram of a robot positioning and navigation device provided by an embodiment of the present application;
[0069] Figure 6 is a structural schematic diagram of a robot positioning and navigation device provided by another embodiment of the present application;
[0070] Figure 7 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0071] Figure 8 It is a schematic diagram of the structure of the robot provided in the embodiment of the present application. DETAILED DESCRIPTION
[0072] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0073] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0074] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0075] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0076] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0077] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0078] With the development of the field of robotics, the application of remote control of robots is becoming more and more widespread. At present, robots are generally located based on the Global Positioning System (GPS) and communicate with terminal devices based on the 4G Internet. The stability of communication is greatly affected by the network, and the accuracy of communication is difficult to guarantee. In addition, the coordinate system defined in the robot system for generating positioning information is relatively simple, which makes the coordinate conversion operation in the process of positioning and navigating the robot by remote control of the terminal device more complicated. Matrix operations are required to convert the actual angle information of the robot and the angle information that the terminal device needs to display, which increases the burden of system operations, resulting in a slow response in the process of querying the robot's positioning information and remotely navigating the robot, reducing the efficiency of real-time positioning and navigation of the robot.
[0079] See also Figure 1 , a schematic diagram of the system architecture of an application scenario provided by an embodiment of the present application. Figure 1 As shown, the terminal device and the robot use the same local area network, and the terminal device communicates with the robot through a wired or wireless local area network to ensure the stability of communication. The terminal device and the robot use the same map file, the terminal device uses the terminal map coordinate system, and the robot uses the preset physical coordinate system. The terminal device sends a positioning and navigation instruction to the robot. After the robot receives the positioning and navigation instruction, the robot locates according to the agreed map file and obtains the real-time physical location information of the location. Among them, the preset physical coordinate system is a predetermined robot that uses the center point of the actual physical map corresponding to the map file image as the coordinate origin, so that the angle of the posture information generated by the robot in the actual preset physical coordinate system and the posture information displayed by the terminal map coordinate system used in the terminal device does not need to be matrix converted. The terminal device can directly use the angle generated by the robot as the angle to be displayed, that is, based on the same posture information, only the translation conversion of the position coordinates in different coordinate systems is required. The computational burden of coordinate conversion in different coordinate systems is reduced, and matrix operations are not required, which improves the efficiency of real-time positioning and navigation.
[0080] The following describes in detail the process of remotely controlling the robot by the terminal device to perform positioning and navigation through a specific embodiment. Figure 2 , is a flow chart of a robot positioning and navigation method provided by an embodiment of the present application, the method is applied to Figure 1 The terminal device in the embodiment sends control instructions to the robot with the terminal device as the execution subject, so as to realize the remote positioning and navigation of the robot in real time. The embodiment specifically includes the following steps:
[0081] Step S201: The terminal device sends a positioning and navigation instruction to the robot. The positioning and navigation instruction includes the posture coordinates corresponding to the destination mark point in a preset physical coordinate system; the positioning and navigation instruction is used to instruct the robot to move toward the destination mark point.
[0082] In some embodiments, the terminal device and the robot are in the same local area network and communicate through a wired or wireless local area network. The terminal device and the robot use the same map file to display and locate the position information of the robot in different coordinate systems. The terminal device can receive the instructions input by the user through the browser interface or the software application interface, and send the instructions to the robot end to realize remote control of the positioning and navigation of the robot.
[0083] Among them, the posture coordinates corresponding to the destination mark point in the preset physical coordinate system include the position coordinates of the destination mark point and the posture information that the robot needs to achieve at the destination mark point.
[0084] Exemplarily, the positioning navigation instruction is an instruction generated based on the information of the corresponding destination marker point input by the user according to the navigation instructions on the display interface of the terminal device, including the posture coordinates corresponding to the destination marker point in the preset physical coordinate system of the robot, for example (x, y, α); wherein x and y represent the position information corresponding to the destination marker point, and α represents the posture information that the robot needs to achieve at the destination marker point.
[0085] like Figure 4 As shown in Figure (b), 01-Station Point is used as the destination mark point. When the terminal device receives the user's click on the "Go" control below the destination mark point, the terminal device can generate a positioning navigation instruction and send the positioning navigation instruction to the robot through the local area network communication; wherein, the positioning navigation instruction includes the posture coordinates corresponding to 01-Station Point in the preset physical coordinate system of the robot. The positioning navigation instruction is used to control the robot to move from the current position to the destination mark point and reach the posture in the posture coordinates at the destination mark point. For example, Figure 4 The display interface of the terminal device is shown in Figure (b), and the terminal device controls the robot to move from the current position to the position of 01-the guard point.
[0086] In some embodiments, before the terminal device sends the positioning and navigation instructions to the robot, the method further includes:
[0087] A1. The terminal device receives a direction to a destination mark point input by a user.
[0088] A2. The terminal device determines the first position coordinates and first posture information of the destination mark point according to the go instruction. The first position coordinates and the first posture information are the coordinate information of the destination mark point in the terminal map coordinate system.
[0089] A3. Based on the same first posture information, the terminal device performs coordinate transformation on the first position coordinates to obtain the corresponding posture coordinates of the destination mark point in the preset physical coordinate system.
[0090] In some embodiments, the terminal device may receive instructions input by the user through a browser interface or a software application interface, for example Figure 4 As shown in Figure (b), a destination mark point is set on the positioning and navigation software display interface, and the current position of the robot can also be displayed.
[0091] It should be noted that, corresponding to different map files or application scenarios, the marking points can have different names. For example, in the map file corresponding to the shopping mall application scenario, the marking points are named and marked according to the merchant or store name, such as bookstore, flower shop, supermarket, etc. Figure 4 The display interface in is only an example and is not limited to this.
[0092] Among them, a "Go" control is set near each mark point. When the terminal device receives a "Go" control near a mark point on the display interface by a user clicking the mouse or touching it, the mark point is used as the destination mark point, and the first position coordinates of the destination mark point in the terminal map coordinate system of the terminal device and the first posture information that the robot needs to reach at the destination mark point are obtained.
[0093] In addition, since the robot and the terminal device use different coordinate systems, the terminal device needs to convert the first position coordinates and the first posture information corresponding to the destination mark point into coordinate representations in the robot coordinate system. Since the robot uses a preset physical coordinate system with the center point of the actual physical map corresponding to the map file image as the coordinate origin, which corresponds to the terminal map coordinate system of the terminal device, the first posture information can be directly used when performing coordinate conversion between the two coordinate systems. The first posture information does not need to be matrix transformed, and only the first position coordinates need to be translated.
[0094] In some embodiments, based on the same first posture information, the terminal device performs coordinate transformation on the first position coordinates to obtain the posture coordinates corresponding to the destination mark point in a preset physical coordinate system, including:
[0095] A31. Through the first conversion formula, the terminal device converts the first position coordinates of the destination marking point into the second position coordinates in the preset physical coordinate system.
[0096] A32. The terminal device uses the second position coordinates and the first posture information as the posture coordinates corresponding to the destination mark point in the preset physical coordinate system; the first conversion formula is expressed as follows:
[0097]
[0098] Among them, (px, py) is the first position coordinate of the destination marker point in the terminal map coordinate system; (mx, my) is the second position coordinate of the destination marker point in the preset physical coordinate system; bmpw is the width of the original size of the map file image, bmph is the height of the original size of the map file image, paintw is the currently displayed width of the map file image, and painth is the currently displayed height of the map file; bmpx is the horizontal coordinate of the upper left corner in the terminal device desktop coordinate system, bmpy is the vertical coordinate of the upper left corner in the terminal device desktop coordinate system (or bmpx and bmpy are the relative translation of the coordinate system origin between the terminal map coordinate system and the preset physical coordinate system), and the units are all bits; res is the ratio of the physical map size to the original size of the map file image.
[0099] In some embodiments, the coordinate transformation of the first position coordinate of the destination mark point is realized by formula (1), without the need to transform the posture information before and after by matrix operation. Thus, the posture information corresponding to the destination mark point in the preset physical coordinate system of the robot is obtained, so that the robot moves to the destination mark point according to the posture information.
[0100] Step S202, in the process of controlling the robot to move to the said posture coordinates, the terminal device receives the state information fed back by the robot, and the state information includes the position information and posture information of the robot in the preset physical coordinate system.
[0101] In some embodiments, the terminal device can display the current position information of the robot in real time during the process of controlling the robot to perform positioning and navigation. During the control process, the robot communicates through the local area network and feeds back status information to the terminal device in real time.
[0102] The status information includes information such as whether the robot is in a state of failure, movement is blocked, or navigation is normal. The status information also includes the position information and posture information of the robot in the preset physical coordinate system. For example, if the status information includes information that the robot is in a state of failure, the robot will feedback the position coordinates of the robot, the posture information of the robot at the position, and the fault information of the robot (such as information such as the robot falling down or colliding at the current position) to the terminal device.
[0103] It should be noted that the position information and posture information fed back by the robot in the preset physical coordinate system is the posture information generated by positioning with the center point of the actual physical map corresponding to the map file image as the coordinate origin.
[0104] Step S203: Based on the same posture information, the terminal device performs coordinate transformation on the position information to obtain the positioning information of the robot in the terminal map coordinate system.
[0105] In some embodiments, since the robot adopts a preset physical coordinate system with the center point of the actual physical map corresponding to the map file image as the coordinate origin, which corresponds to the terminal map coordinate system of the terminal device, when converting the position information and posture information generated by the robot in the preset physical coordinate system, the posture information can be used directly. The posture information does not need to be matrix transformed, and only the position information needs to be translated to obtain the positioning information of the robot in the terminal map coordinate system.
[0106] In some embodiments, based on the same posture information, the terminal device performs coordinate transformation on the position information to obtain the positioning information of the robot, including:
[0107] The terminal device converts the position information of the robot in the preset physical coordinate system into the third position coordinate in the terminal map coordinate system through the second conversion formula; the third position coordinate is used as the positioning information; the second conversion formula is expressed as follows:
[0108]
[0109] Among them, (px, py) is the third position coordinate of the robot's position in the terminal map coordinate system; (mx, my) is the position information of the robot's position in the preset physical coordinate system; bmpw is the width of the original size of the map file image, bmph is the height of the original size of the map file image, paintw is the currently displayed width of the map file image, and painth is the currently displayed height of the map file; bmpx is the horizontal coordinate of the upper left corner in the terminal device desktop coordinate system, bmpy is the vertical coordinate of the upper left corner in the terminal device desktop coordinate system (or bmpx and bmpy are the relative translation of the coordinate system origin between the terminal map coordinate system and the preset physical coordinate system), and the unit is bit; res is the ratio of the physical map size to the original size of the map file image.
[0110] It should be noted that the map file is drawn with the upper left corner of the display interface as the coordinate origin. The desktop coordinate system of the terminal device is with the lower right corner as the coordinate origin.
[0111] Step S204: the terminal device updates and displays the positioning information and posture information of the robot.
[0112] In some embodiments, during the positioning navigation control process, the browser interface or software application interface of the terminal device can update and display the positioning information of the robot and the posture information of the robot at the location in real time, such as Figure 4 As shown in Figure (b) in the figure. Or when the mouse moves to the positioning point showing the current position, the robot's position coordinates, such as (x, y, α), can be displayed.
[0113] In some embodiments, after the terminal device sends a positioning navigation instruction to the robot, it starts a timer and displays navigation instructions on the display interface. The navigation instructions include go, mark point names and cancel buttons or controls. Then, under the timing of the timer, the terminal device determines whether a response instruction fed back by the robot is received within the first preset time period. If no response instruction from the robot is received within the first preset time period, a prompt message of non-daily start navigation timeout is given on the display interface and the navigation instructions are closed. If a response instruction from the robot is received within the first preset time period, the terminal device further judges the right or wrong of the response instruction. If there is an error in the response instruction or the received response instruction is incomplete, the terminal device closes the navigation instructions and displays a prompt message of failed start navigation on the display interface; if the received response instruction is complete and correct, the status information returned by the robot continues to be received in real time.
[0114] In some embodiments, the terminal device further determines the operating state of the robot based on the state information. If the robot is in an abnormal state, the terminal device turns off the navigation guidance and displays prompt information on the display interface indicating navigation positioning failure, obstacles, navigation conflicts, navigation cancellation, or navigation prohibition. If the robot is in a normal state, the terminal device continues to control the robot through navigation and updates the robot's current position information in real time. After the navigation is completed, the terminal device turns off the navigation guidance and displays that the navigation is completed.
[0115] In some embodiments, if the terminal device receives a cancel command input by the user through the cancel button of the navigation guide during the process of controlling the robot to move to the destination mark point, the terminal device sends a stop navigation command to the robot and obtains the robot's reply command. If the correct reply command is obtained successfully, the terminal device closes the navigation guide and displays that the navigation is successfully stopped; if the reply command fails to be obtained or the reply command obtained contains an error (such as garbled characters), the terminal device closes the navigation guide and displays that the navigation is failed.
[0116] In some embodiments, in addition to positioning and navigating the robot, the terminal device may also query the current location of the robot. The method further includes:
[0117] B1. The terminal device sends a posture query instruction to the robot. The posture query instruction is used to instruct the robot to locate and generate current posture information. The current posture information includes the fourth position coordinates and the second posture information of the robot's current position in the preset physical coordinate system.
[0118] B2. The terminal device receives the current posture information fed back by the robot; based on the same second posture information, the terminal device converts the fourth position coordinates into fifth position coordinates in the terminal map coordinate system.
[0119] B3. The terminal device uses the fifth position coordinates as the positioning information of the current position of the robot; and displays the positioning information of the current position of the robot and the second posture information.
[0120] In some embodiments, when the terminal device receives an instruction input by the user by clicking a control or button of the "current location" (e.g. Figure 4 As shown in Figure (a), a posture query command is sent to the robot, and the query timer is started to display the query circle. The posture query command is used to instruct the robot to locate based on the preset physical coordinate system and generate the current posture information.
[0121] The current position information includes the fourth position coordinates of the robot's current position in a preset physical coordinate system and the second posture information. The robot can obtain the second posture information of its current position through a posture sensor (such as an acceleration sensor or a gyroscope, etc.).
[0122] Exemplarily, after receiving the current posture information fed back by the robot, the terminal device converts the fourth position coordinate in the current posture information into the fifth position coordinate in the terminal map coordinate system based on the same coordinate conversion principle as above and through formula (2) based on the same second posture information, and uses the fifth position coordinate as the positioning information of the robot's current position, and uses the second posture information as the posture information of the robot's current position; and displays the positioning information and the second posture information of the robot's current position.
[0123] In some embodiments, after the terminal device sends a posture query instruction to the robot, the query timer is started. Under the timing of the timer, the terminal device determines whether a reply instruction sent by the robot is received within a second preset time period. If no reply instruction is received from the robot within the second preset time period, the query circle is closed and a timeout for obtaining posture information is displayed; if a reply instruction is received from the robot within the second preset time period, the query circle and the timer are closed.
[0124] In some embodiments, after the terminal device receives the current posture information fed back by the robot, the method further includes:
[0125] C1. Get the map file name corresponding to the map file currently used by the robot.
[0126] C2. Based on the map file name, search for a local map with the same name as the map file.
[0127] C3. If a local map exists, the local map is read based on the current position information and the interface of the local map is displayed.
[0128] In some embodiments, the reply instruction includes the map name of the robot side. After receiving the reply instruction sent by the robot, the terminal device judges the reply instruction; if there is an error in the reply instruction, the map interface will not be loaded, and a pop-up window will be displayed indicating that the robot is not bound, the robot is not locked, illegal data or the map is not selected; if the reply instruction is correct, the map interface will be loaded, and the local map will be queried according to the map name.
[0129] In some embodiments, if the terminal device does not find a local map according to the map name, a prompt message indicating that there is no local map is displayed; if the terminal device finds a local map according to the map name, it determines whether the reply instruction contains the current posture information. If the current posture information is not contained, the terminal device reads the local map information and displays a prompt message indicating that the robot is not positioned or has no positioning information; if the current posture information is contained, the terminal device reads the local map information, performs coordinate conversion on the fourth position coordinate in the current posture information according to formula (2), and obtains the current positioning information of the robot.
[0130] In some embodiments, during the process of querying the local map according to the map name, the terminal device can also monitor the remote connection status with the robot in real time. If the connection status is disconnected, a prompt message indicating that the robot is offline is displayed.
[0131] Through the embodiments of the present application, the terminal device can remotely control the robot to realize the positioning and navigation of the robot; during the positioning and navigation of the robot, the robot's posture information in a preset physical coordinate system is obtained in real time, and the robot's posture information can be displayed in real time through coordinate conversion; during the coordinate conversion process, the terminal device can directly display the posture information fed back by the robot, and only coordinate conversion is performed on the position information, which simplifies the conversion operation process and improves the efficiency of real-time response; at the same time, the coordinate operation is simple, which ensures the accuracy of the real-time positioning of the robot.
[0132] For the robot side, it is in the same local area network as the terminal device, and communicates with the terminal device based on a wired or wireless local area network. At the same time, during the remote control process of receiving the terminal device's positioning and navigation, it uses the same map file as the terminal device for real-time positioning response. With the robot as the execution subject, during the positioning and navigation process, the robot responds to the positioning and navigation instructions and generates real-time positioning information, which specifically includes the following steps:
[0133] Step S301: The robot receives a positioning and navigation instruction sent by a terminal device, where the positioning and navigation instruction includes the position and posture coordinates corresponding to the destination mark point in a preset physical coordinate system.
[0134] Step S302, based on the position and posture coordinates, the robot generates position information and posture information in a preset physical coordinate system during the movement toward the destination mark point.
[0135] Step S303, the robot sends position information and posture information to the terminal device; the position information is used to instruct the terminal device to perform coordinate conversion, convert the position information into positioning information in the terminal map coordinate system, and the terminal device displays the positioning information and the posture information.
[0136] Through the embodiments of the present application, the preset physical coordinate system used when the robot is positioned is agreed to use the center point of the actual physical map corresponding to the map file image as the coordinate origin, so that the angles of the posture information generated by the robot in the actual preset physical coordinate system and the posture information displayed by the terminal map coordinate system used in the terminal device do not need to be matrix converted. The terminal device can directly use the angle generated by the robot as the angle to be displayed, that is, based on the same posture information, only the translation conversion of the position coordinates in different coordinate systems is required. The computational burden of coordinate conversion in different coordinate systems is reduced, and matrix operations are not required, which improves the efficiency of real-time positioning and navigation.
[0137] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0138] Corresponding to the robot positioning and navigation method described in the above embodiment, Figure 5 A structural block diagram of a robot positioning and navigation device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0139] Reference Figure 5 , the device comprises:
[0140] The sending unit 51 is used to send a positioning and navigation instruction to the robot, wherein the positioning and navigation instruction includes the position coordinates corresponding to the destination mark point; the positioning and navigation instruction is used to instruct the robot to move toward the destination mark point;
[0141] A receiving unit 52 is used to receive state information fed back by the robot during the process of controlling the robot to move to the position coordinates corresponding to the destination mark point, wherein the state information includes position information and posture information of the robot;
[0142] A processing unit 53 is used to perform coordinate transformation on the position information based on the same posture information to obtain positioning information of the robot;
[0143] The display unit 54 is used to update and display the positioning information and the posture information of the robot.
[0144] Corresponding to the robot positioning and navigation method described in the above embodiment, Figure 6 A structural block diagram of a robot positioning and navigation device provided in another embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0145] Reference Figure 6 , the device comprises:
[0146] The receiving unit 61 is used to receive a positioning and navigation instruction sent by a terminal device, wherein the positioning and navigation instruction includes a posture coordinate corresponding to a destination mark point in a preset physical coordinate system;
[0147] A positioning unit 62, configured to generate position information and posture information in the preset physical coordinate system according to the posture coordinates during the movement toward the target marking point;
[0148] The sending unit 63 is used to send the position information and the posture information to the terminal device; the position information is used to instruct the terminal device to perform coordinate conversion, convert the position information into positioning information in the terminal map coordinate system, and the terminal device displays the positioning information and the posture information.
[0149] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0150] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0151] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0152] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0153] Figure 7 This is a schematic diagram of the structure of a terminal device 7 provided in an embodiment of the present application. Figure 7 As shown, the terminal device 7 of this embodiment includes: at least one processor 70 ( Figure 7 Only one is shown in the figure) a processor, a memory 71, and a computer program 72 stored in the memory 71 and executable on the at least one processor 70, wherein the processor 70 implements the steps in any of the above-mentioned embodiments of the robot positioning and navigation when executing the computer program 72.
[0154] The terminal device 7 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device 7 may include, but is not limited to, a processor 70 and a memory 71. Those skilled in the art will appreciate that Figure 7 It is only an example of the terminal device 7 and does not constitute a limitation on the terminal device 7. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0155] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0156] In some embodiments, the memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or memory of the terminal device 7. In other embodiments, the memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 71 may also be used to temporarily store data that has been output or is to be output.
[0157] Figure 8 This is a schematic diagram of the structure of a robot 8 provided in one embodiment of the present application. Figure 8 As shown, the robot 8 of this embodiment includes: at least one processor 80 ( Figure 8 Only one is shown in the figure) a processor, a memory 81, and a computer program 82 stored in the memory 81 and executable on the at least one processor 80, and when the processor 80 executes the computer program 82, the steps in any of the above-mentioned embodiments of the robot positioning and navigation are implemented.
[0158] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0159] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0160] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0161] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0162] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0163] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A robot positioning and navigation method, characterized in that: Applied to a terminal device, the method comprises: Sending a positioning and navigation instruction to the robot, wherein the positioning and navigation instruction includes the position coordinates corresponding to the destination mark point in a preset physical coordinate system; the positioning and navigation instruction is used to instruct the robot to move toward the destination mark point; In the process of controlling the robot to move to the position coordinates, receiving state information fed back by the robot, the state information including position information and posture information of the robot in the preset physical coordinate system; Based on the same posture information, coordinate transformation is performed on the position information to obtain positioning information of the robot in the terminal map coordinate system; Updating and displaying the positioning information and the posture information of the robot; The terminal device and the robot use the same map file, the terminal device adopts a terminal map coordinate system, and the robot adopts a preset physical coordinate system with the center point of the actual physical map corresponding to the map file as the coordinate origin.
2. The method according to claim 1, characterized in that Before sending the positioning and navigation instructions to the robot, the method further includes: Receive a direction to the destination mark point input by a user; Determine, according to the go instruction, first position coordinates and first posture information of the destination marking point, where the first position coordinates and the first posture information are coordinate information of the destination marking point in a terminal map coordinate system; Based on the same first posture information, the first position coordinates are transformed to obtain the posture coordinates corresponding to the target mark point in the preset physical coordinate system.
3. The method according to claim 2, characterized in that The step of performing coordinate transformation on the first position coordinates based on the same first posture information to obtain the posture coordinates corresponding to the destination mark point in the preset physical coordinate system includes: The first position coordinates of the target mark point are converted into second position coordinates in the preset physical coordinate system by a first conversion formula; Using the second position coordinates and the first posture information as the posture coordinates corresponding to the destination mark point in the preset physical coordinate system; The first conversion formula is expressed as follows: Among them, (px, py) is the first position coordinate of the destination marker point in the terminal map coordinate system; (mx, my) is the second position coordinate of the destination marker point in the preset physical coordinate system; bmpw is the width of the original size of the map file image, bmph is the height of the original size of the map file image, paintw is the currently displayed width of the map file image, painth is the currently displayed height of the map file, bmpx is the horizontal coordinate of the upper left corner in the terminal device desktop coordinate system, bmpy is the vertical coordinate of the upper left corner in the terminal device desktop coordinate system, and the unit is bit; res is the ratio of the physical map size to the original size of the map file image.
4. The method according to claim 1, characterized in that The coordinate transformation of the position information based on the same posture information to obtain the positioning information of the robot includes: The position information of the robot in the preset physical coordinate system is converted into a third position coordinate in the terminal map coordinate system by a second conversion formula; Using the third position coordinates as the positioning information; The second conversion formula is expressed as follows: Among them, (px, py) is the third position coordinate of the robot's position in the terminal map coordinate system; (mx, my) is the position information of the robot's position in the preset physical coordinate system; bmpw is the width of the original size of the map file image, bmph is the height of the original size of the map file image, paintw is the currently displayed width of the map file image, painth is the currently displayed height of the map file, bmpx is the horizontal coordinate of the upper left corner in the terminal device desktop coordinate system, bmpy is the vertical coordinate of the upper left corner in the terminal device desktop coordinate system, and the unit is bit; res is the ratio of the physical map size to the original size of the map file image.
5. The method according to claim 1, characterized in that The method further comprises: Sending a posture query instruction to the robot, wherein the posture query instruction is used to instruct the robot to locate and generate current posture information, wherein the current posture information includes fourth position coordinates and second posture information of the current position of the robot in a preset physical coordinate system; Receiving the current posture information fed back by the robot; Based on the same second posture information, converting the fourth position coordinates into fifth position coordinates in a terminal map coordinate system; Using the fifth position coordinate as positioning information of the current position of the robot; The positioning information of the current position of the robot and the second posture information are displayed.
6. The method according to claim 5, characterized in that After receiving the current posture information fed back by the robot, the method further includes: Obtain the map file name corresponding to the map file currently used by the robot; According to the map file name, query the local map with the same name as the map file; If the local map exists, the local map is read based on the current position information and the interface of the local map is displayed.
7. A robot positioning and navigation method, characterized in that: Applied to a robot, the method comprises: Receiving a positioning and navigation instruction sent by a terminal device, wherein the positioning and navigation instruction includes a posture coordinate corresponding to a destination mark point in a preset physical coordinate system; According to the posture coordinates, during the movement toward the destination mark point, generating position information and posture information in the preset physical coordinate system; Sending the position information and the posture information to the terminal device; the position information is used to instruct the terminal device to perform coordinate conversion, convert the position information into positioning information in the terminal map coordinate system, and the terminal device displays the positioning information and the posture information; The terminal device and the robot use the same map file, the terminal device adopts a terminal map coordinate system, and the robot adopts a preset physical coordinate system with the center point of the actual physical map corresponding to the map file as the coordinate origin.
8. A robot positioning and navigation device, characterized in that: include: A sending unit, used to send a positioning and navigation instruction to the robot, wherein the positioning and navigation instruction includes a position coordinate corresponding to a destination mark point in a preset physical coordinate system; the positioning and navigation instruction is used to instruct the robot to move toward the destination mark point; A receiving unit, configured to receive state information fed back by the robot in a process of controlling the robot to move to the position coordinates, wherein the state information includes position information and posture information of the robot in the preset physical coordinate system; A processing unit, configured to perform coordinate transformation on the position information based on the same posture information to obtain positioning information of the robot in a terminal map coordinate system; A display unit, used for updating and displaying the positioning information and the posture information of the robot; The terminal device and the robot use the same map file, the terminal device adopts a terminal map coordinate system, and the robot adopts a preset physical coordinate system with the center point of the actual physical map corresponding to the map file as the coordinate origin.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
10. A robot comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to claim 7 is implemented.
11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 or claim 7 is implemented.
Citation Information
Patent Citations
Navigation terminal and navigation method
CN101769748A
Radar antenna alignment tracking control method under dynamic platform
CN105425217A
Navigation method and system for rapid routing inspection on mine ground
CN106940187A
Robot based additional shaft calibration method and terminal
CN108195327A
Indoor robot positioning method and robot
CN110319834A
