Robot control method, device and computer readable storage medium
By installing a mechanical arm and an image acquisition device on the robot to analyze the elevator button positions and execute button actions, the problem of elevator rides under the influence of the elevator control system network is solved, and a low-cost automatic elevator ride function is realized.
Patent Information
- Application Number
- CN202211157550.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-09-22
AI Technical Summary
When the robot rides in the elevator, if the network signal quality of the elevator control system is poor or disconnected, communication will be blocked, the elevator cannot be successfully completed, and regular maintenance costs will be high.
Install a robotic arm and an image acquisition device on the robot, determine the location of the elevator buttons through area of interest analysis, and drive the robotic arm to perform button actions. The robot can be controlled to take the elevator without an elevator control system.
It realizes that the robot can still take the elevator smoothly despite the influence of the elevator system network, which reduces the cost and avoids the failure of taking the elevator due to network problems.
Smart Images

Figure CN115625703B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of robot control technology, and in particular to a robot control method, device and computer-readable storage medium. Background Art
[0002] At present, intelligent mobile robots have been widely used in various fields, especially in the catering and hotel industries, where robots are sometimes needed to deliver items. This includes some situations where cross-floor delivery is required, and robots need to take the elevator to complete the delivery.
[0003] However, taking the elevator is still somewhat difficult for robots. In order to enable the robot to take the elevator smoothly and autonomously to complete the delivery task, the elevator is generally modified and an elevator control system is installed. The robot communicates and interacts with the elevator control system so that the robot can take the elevator smoothly.
[0004] When using the elevator control system, if the network signal quality is poor or the network is disconnected, the communication will be blocked, resulting in the robot being unable to take the elevator smoothly. In addition, in order to maintain good performance, the elevator control system needs to be maintained regularly, which is costly. Summary of the invention
[0005] The embodiments of the present application provide a robot control method, device and computer-readable storage medium. The robot needs to rely on an elevator control system to take the elevator, and the communication of the elevator control system is affected by the network. If the network quality is poor, the communication is blocked, resulting in the robot being unable to successfully complete the elevator task. The robot can successfully complete the elevator task without relying on the elevator control system, preventing the robot from failing to take the elevator due to poor network quality.
[0006] The present application provides a robot control method, the method comprising:
[0007] When receiving an elevator instruction, determining a direction of movement according to the current floor and the target floor, and acquiring a first environment image captured by the image acquisition device;
[0008] determining a target pattern based on the movement direction, and performing a region of interest analysis on the first environment image based on the target pattern;
[0009] Determine a first key position according to the analysis result of the region of interest, and drive the end of the mechanical arm to move to the first key position;
[0010] Controlling the robotic arm to perform key actions;
[0011] When it is detected that the elevator door is opened and the running direction is consistent with the movement direction, the robot is controlled to move into the elevator car.
[0012] Optionally, a pressure sensor is provided on the contact, and the step of controlling the mechanical arm to perform a key action includes:
[0013] When the pressure collected by the pressure sensor is greater than or equal to a preset pressure value, it is determined that the key action is completed; or
[0014] The first button position image is acquired, and if it is detected that the indicator light corresponding to the first button is lit, it is determined that the button action is completed.
[0015] Optionally, an elevator pass card is arranged on the contact, and after the step of determining the direction of action according to the current floor and the target floor when receiving the elevator instruction, the following steps are included:
[0016] Determine whether the target floor requires a card swipe;
[0017] If a card is required, obtaining a second environment image captured by the image acquisition device, and performing an area of interest analysis on the second environment image;
[0018] The card swiping position is determined according to the analysis result of the region of interest, and the end of the mechanical arm is driven to move to the card swiping position to perform the card swiping action.
[0019] Optionally, when it is detected that the elevator door is opened and the running direction is consistent with the action direction, the step of controlling the robot to move into the elevator car includes:
[0020] Collecting an elevator door image, analyzing the elevator door image, determining that the elevator door is open and determining a preset door blocking position;
[0021] Driving the end portion to move to the preset door-blocking position and collecting an image of the interior of the elevator car;
[0022] Determining whether a pre-stop area in the elevator is occupied according to the interior image of the elevator car;
[0023] If the pre-stop area is not occupied, the robot is driven to enter the elevator car.
[0024] Optionally, after the step of judging whether the pre-stop area in the elevator is occupied according to the interior image of the elevator car, the following steps are included:
[0025] If the pre-stop area is occupied, control the at least one joint to retract the end, and after waiting for a preset time, execute the step of controlling the robot arm to execute the key action.
[0026] Optionally, if the pre-stop area is not occupied, the step of driving the robot to enter the elevator car comprises:
[0027] Collect images of the interior of the elevator car within a preset time period and analyze the movement trends of objects inside the elevator;
[0028] Determining whether the conditions for entering the elevator are met according to the movement trend;
[0029] If the passage conditions are met, the robot is controlled to enter the elevator.
[0030] Optionally, after the step of controlling the robot to move into the elevator car when it is detected that the elevator door is opened and the running direction is consistent with the action direction, the method further comprises:
[0031] Controlling the robot to move to a pre-stop area in the elevator, and driving the end to move to a preset position, and collecting a third environment image;
[0032] Analyze the third environment image to determine the button position of the target floor;
[0033] According to the position of the target floor button, the robotic arm is controlled to trigger the target floor button.
[0034] Optionally, after the step of controlling the end to trigger the target floor button according to the target floor button position, the method further comprises:
[0035] Continuously acquiring the image of the target floor button, and if it is detected that the color of the image changes, acquiring the image of the elevator internal display screen;
[0036] Analyze the number displayed on the display screen image, and if the number is consistent with the target floor, control the robot to drive out of the elevator;
[0037] If the number is inconsistent with the target floor, the end is controlled again to trigger the target floor button.
[0038] In addition, to achieve the above-mentioned purpose, an embodiment of the present invention also provides a device, including a memory, a processor, and a robot control program stored in the memory and executable on the processor, and when the processor executes the robot control program, the method described above is implemented.
[0039] In addition, to achieve the above-mentioned purpose, an embodiment of the present invention further provides a computer-readable storage medium, on which a control program of a robot is stored. When the control program of the robot is executed by a processor, the method as described above is implemented.
[0040] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0041] A mechanical arm is installed on the robot body, and a picture acquisition device and a contact are installed on the end of the mechanical arm. The mechanical arm has at least one joint, and the at least one joint is used to control the movement of the end of the mechanical arm. When the robot receives the elevator command, it determines the direction of action according to the current floor and the target floor, and obtains the first environment image acquired by the image acquisition device; determines the target pattern based on the direction of action, and then analyzes the region of interest of the first environment image based on the target pattern, determines the first button position, that is, the position of the up button and the down button according to the analysis result, and drives the end of the mechanical arm to move to the first button position to execute the button action; then, when it is detected that the elevator door is open and the elevator running direction is consistent with the direction of action, the robot is controlled to move into the elevator car. The robot can be controlled to complete the elevator task without the elevator control system, so that the robot's elevator riding process is not affected by the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 This is a flow chart of the first embodiment of the control method of the robot of the present application;
[0043] Figure 2 This is a flow chart of the second embodiment of the control method of the robot of the present application;
[0044] Figure 3 This is a flow chart of the third embodiment of the robot control method of the present application;
[0045] Figure 4 A schematic diagram of the terminal structure of the hardware operating environment involved in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to solve the problem that the robot is affected by the elevator control system network when taking the elevator, resulting in the inability to successfully complete the elevator task. This application installs a mechanical arm on the robot, and installs a picture acquisition device and a contact at the end of the mechanical arm. When receiving the elevator command, the direction of action is determined according to the current floor and the target floor, and the first environment image captured by the image acquisition device is obtained; the target pattern is determined based on the direction of action, and the first environment image is analyzed based on the target pattern. The first button position is determined according to the result of the area of interest analysis, and the end of the mechanical arm is driven to move to the first button position; the mechanical arm is controlled to perform the button action; when it is detected that the elevator door is open and the running direction is consistent with the direction of action, the robot is controlled to move into the elevator car. The present invention allows the robot to take the elevator smoothly without the help of the elevator control system, is not affected by the elevator control system network, and has a low cost.
[0047] In order to better understand the above technical solution, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0048] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0049] Embodiment 1
[0050] Reference Figure 1 , a robot control method proposed in this embodiment includes the following steps:
[0051] Step S10: upon receiving the elevator instruction, determining the direction of movement according to the current floor and the target floor, and acquiring the first environment image captured by the image acquisition device;
[0052] In this embodiment, a mechanical arm is installed on the robot body, and an image acquisition device and a contact are installed at the end of the mechanical arm. The mechanical arm has at least one joint, and the at least one joint is used to control the movement of the end of the mechanical arm. The image acquisition device is used to acquire images related to elevator buttons. The contact is used to press the elevator buttons. The first environment image refers to the image corresponding to the up and down buttons outside the elevator.
[0053] As an optional implementation, when the robot receives an elevator command, it first determines the current floor position, and then analyzes the target floor corresponding to the elevator command. When the target floor is greater than the current floor, the robot's movement direction is determined to be upward, and when the target floor is less than the current floor, the robot's movement direction is determined to be downward.
[0054] For example, after the robot completes a task corresponding to an elevator instruction, if it does not receive a new elevator instruction within a period of time, it returns to the cabin and waits for the next work instruction. After receiving the elevator instruction again, the direction of action is determined according to the target floor and the floor where the cabin is located. If a new elevator instruction is received within a period of time, the direction of action can be determined according to the floor position corresponding to the elevator instruction just executed and the target floor corresponding to the new elevator instruction.
[0055] As another optional implementation, an image acquisition device is also configured on the top of the robot body. The image acquisition device can be used to collect images on the road during the robot's walking process, avoid obstacles, or detect preset parking areas outside and inside the elevator. It can also be used to detect the opening and closing of the elevator door when performing the elevator task. When the elevator arrives, the density of people and objects in the elevator can be detected based on the infrared sensing device to determine whether to enter the elevator.
[0056] For example, the patterns corresponding to the preset stop areas outside and inside the elevator are composed of three circles with the same radius, and the three circles are arranged in an equilateral triangle. The built-in algorithm of the image acquisition device located on the top of the robot can easily identify the stop area pattern. By running a lightweight neural network to infer the position of the stop area pattern in the collected image, the center point, width, height and other data of the stop area pattern are determined, and then converted into an image ROI (Region Of Interest), the ROI area is imported into the detection algorithm, and the pixel coordinate data of the center points of the three geometric shapes in the stop area pattern are obtained, and then the positional relationship between the stop area and the current position is calculated, and the robot is driven to the preset stop area.
[0057] As another optional implementation, the robotic arm on the robot body is a detachable and replaceable robotic arm that can adapt to elevator buttons at different heights. For example, in some buildings with a large number of floors, the elevator buttons on the highest floor are often also high. In order to enable the robot to trigger the high-floor buttons, the robot can be replaced with a robotic arm with a longer upper arm, or the number of joints of the robotic arm can be increased. After replacing the robotic arm, when used for the first time, the robot can be controlled to touch the highest floor button through manual debugging. The robot calculates the movement path of the robotic arm when pressing other floors based on the extension height of the robotic arm and the degree of joint relaxation after debugging. Because of the machine learning function, the robot can be suitable for different elevator models for different users.
[0058] Step S20: determining a target pattern based on the movement direction, and performing a region of interest analysis on the first environment image based on the target pattern;
[0059] In this embodiment, the target pattern refers to the pattern corresponding to the up button and the down button in the elevator. After determining the direction of action, the corresponding pattern is determined according to the up or down direction, and according to the determined target pattern, it is analyzed whether the target pattern exists in the first environment image.
[0060] Step S30: determining a first key position according to the analysis result of the region of interest, and driving the end of the mechanical arm to move to the first key position;
[0061] In this embodiment, the first button position refers to the position of the up button or the down button determined according to the direction of movement. After the robot determines the direction of movement according to the elevator command, it is driven to the pre-stop area outside the elevator, and the robot arm is controlled to collect the first environment image until a button pattern is detected in the collected image, then the first environment image is stopped, and the pattern is analyzed to determine the position of the up button or the down button, and then the end of the robot arm is driven to move to the position of the up button or the down button.
[0062] Step S40: controlling the mechanical arm to perform a key action;
[0063] In this embodiment, after the robot determines the key position, it calculates the relative position relationship between the robotic arm and the key, determines the movement path and movement distance of the robotic arm, drives the robotic arm to move to the key position, and executes the key action.
[0064] As an optional implementation, a pressure sensor is configured on the contact at the end of the robotic arm. During the process of executing a key action, when the pressure collected by the pressure sensor is greater than or equal to a preset pressure value, it is determined that the key action is completed.
[0065] As another optional implementation, when the elevator button is not triggered, the button light is off, and when the button is pressed, the button light is on. Therefore, the completion of the button action can be determined by detecting the flickering state of the button light. The first button position image is collected, and if it is detected that the indicator light corresponding to the first button is on, it is determined that the button action is completed.
[0066] For example, after determining the button position through the analysis result of the region of interest, the first button position and the on / off status of the indicator light are detected. If the indicator light is on, there is no need to control the robot arm to perform the button action. If the indicator light is not on, the robot arm is driven to perform the button action. During the button execution process, the first button position image is continuously collected to determine the status of the indicator light corresponding to the button. If the indicator light is on, it is determined that the action is executed in place and the robot arm is retracted.
[0067] Step S50: When it is detected that the elevator door is opened and the running direction is consistent with the movement direction, the robot is controlled to move into the elevator car.
[0068] In this embodiment, after the image acquisition device on the robot arm or the image acquisition device on the top of the robot detects that the elevator door is open, it does not enter the elevator immediately, but first detects the elevator running direction on the display screen outside the elevator. If the elevator running direction is consistent with the action direction, the robot is controlled to move into the elevator car. Optionally, after detecting that the elevator door is open, it can also be determined whether the elevator running direction is consistent with the action direction by detecting whether the button light of the first position button is off.
[0069] As an optional implementation, the image acquisition device acquires an image of the elevator door, analyzes the image of the elevator door, determines that the elevator door is open and determines a preset door-blocking position; drives the end portion to move to the preset door-blocking position, and acquires an image of the interior of the elevator car; determines whether a pre-stop area in the elevator is occupied based on the image of the interior of the elevator car; if the pre-stop area is not occupied, drives the robot to enter the elevator car.
[0070] For example, when the elevator reaches the current floor and opens the door, it determines that the elevator's running direction is consistent with the movement direction, and stops the robot arm at the preset door-blocking position to prevent the elevator door from closing and damaging the robot during the robot's entry. After the robot arm stops at the preset door-blocking position, it can also capture the image inside the elevator car through the image acquisition device to detect whether the pre-stop area inside the elevator car is occupied. The pre-stop area is located on the side of the elevator button, which is convenient for the robot arm to touch the elevator level button. If the complete pre-stop area pattern can be detected, it means that the pre-stop area is not occupied, and the robot is driven to enter the elevator car.
[0071] Optionally, if the detected pre-stop area pattern is incomplete, or the pre-stop area pattern cannot be detected, it is determined that the pre-stop area is occupied, the robotic arm is retracted, the elevator is not taken, and the elevator button is retriggered.
[0072] As another optional implementation, if the detected pre-stop area pattern is incomplete, or no pre-stop area pattern can be detected, it is determined that the pre-stop area is occupied, and the internal image of the elevator car can be scanned to determine the number of people in the elevator or the remaining space in the car based on the infrared detection results. When the number of people in the elevator is less than the maximum capacity of the elevator, or but the remaining space in the car is greater than a preset threshold, a voice prompt message can be issued to prompt passengers occupying the pre-stop area to vacate the pre-stop area.
[0073] For example, if it is determined that there is enough space in the elevator, a voice prompt message is issued to prompt passengers occupying the pre-stop area to vacate the pre-stop area. Three seconds after the voice prompt message is issued, the image inside the elevator car is collected again. If the pre-stop area pattern is detected again, the robot is driven to enter the elevator car. If the pre-stop area pattern still cannot be detected, the robot arm parked at the preset door blocking position is retracted, and the elevator door is closed before the action of triggering the elevator button is executed again.
[0074] Optionally, if the pre-stop area is occupied, control the at least one joint to retract the end, wait for a preset time, such as 10 seconds, determine that the elevator door is closed, and execute the step of controlling the robotic arm to perform a key action.
[0075] As another optional implementation, while the robot is entering the elevator car, its movement distance is calculated. When the walking distance is equal to a preset value, it is determined that the robot body has completely entered the elevator, and the robotic arm parked at the preset door-blocking position is retracted so that the elevator can close the elevator door.
[0076] Exemplarily, the preset value can be determined based on the distance between the pre-stop area outside the elevator and the elevator door frame, and the width of the robot base. When the robot starts to move from the pre-stop area, the movement distance is calculated. When the movement distance is greater than or equal to the preset value, the robotic arm is retracted.
[0077] As another optional implementation, after the elevator door is opened and it is determined that the elevator running direction is consistent with the movement direction, the robot arm is suspended at a preset door blocking position, and within a preset time period, the image inside the elevator car is collected to analyze the movement trend of objects inside the elevator; based on the movement trend, it is determined whether the passage conditions for entering the elevator are met; if the passage conditions are met, the robot is controlled to enter the elevator. The passage condition means that no passengers leave the elevator.
[0078] Exemplarily, after the robotic arm is hovered at the preset door-blocking position, within 10 seconds, the image inside the elevator car is continuously collected, the image difference is calculated, and the calculation results are thresholded and filtered to make the analysis results more stable. Feature points are selected based on the changes in the joints of the human body when walking, such as the knee joint. By selecting feature points, the amount of calculation can be reduced, and only the most interesting image areas are calculated. The selected feature points are tracked by the LK optical flow method, and statistical analysis is performed to calculate the motion vectors of the feature points, the distribution of the motion vectors is statistically analyzed, and the preset motion patterns are matched to determine whether there are passengers leaving the elevator.
[0079] In this embodiment, a robot arm is installed on the robot body. After receiving the elevator command and determining the direction of movement, the robot arm is controlled to touch the up button or the down button. When the elevator door is detected to be open and the elevator movement direction is consistent with the robot movement direction, the robot is controlled to enter the elevator car. The robot can automatically take the elevator without the help of the elevator control system or manual operation. This avoids the situation where the elevator control system cannot be in place in time due to poor network connection, which leads to the robot being unable to take the elevator.
[0080] Embodiment 2
[0081] Reference Figure 2 , another embodiment of the present application is proposed, wherein after the step of determining the direction of action according to the current floor and the target floor upon receiving the elevator instruction, the following steps are included:
[0082] Step S11: Determine whether the target floor requires a card swipe;
[0083] In this embodiment, for floors that require a card swipe to take the elevator, an elevator pass card is provided on the contact of the robotic arm. After obtaining the elevator instruction and parsing the target floor, it determines whether the target floor requires a card swipe based on the floor restrictions pre-stored in the robot system.
[0084] Step S12: if a card is required, obtaining a second environment image captured by the image acquisition device, and performing an area of interest analysis on the second environment image;
[0085] Step S13: determining the card swiping position according to the analysis result of the region of interest, and driving the end of the robot arm to move to the card swiping position to perform the card swiping action.
[0086] In this embodiment, the second environment image refers to the image of the card swiping area. Feature analysis is performed on the collected second environment image to determine whether the second environment image contains pattern features of the card swiping area. If it contains pattern features of the card swiping area, the end of the robotic arm is driven to move to the card swiping position to execute the card swiping action.
[0087] As an optional implementation, after the contact at the end of the driving robot arm moves to the card swiping position, it stays for a certain time to complete the card swiping action, for example, it can stay for 2 seconds and then retract the robot arm. The stay time can be specifically adjusted according to the reaction time of the sensor in different card swiping areas.
[0088] As another optional implementation, after the elevator pass card chip configured on the robotic arm contact completes the card swiping, an electrical signal is generated to drive the robotic arm to retract, thus completing the card swiping action.
[0089] For example, when the elevator pass card chip is in a normal state, the electrical signal is 0. When the card swiping action is completed, the electrical signal is set to 1, and an electrical signal indicating that the card swiping is completed is sent to the robot control system to drive the robotic arm to retract and complete the card swiping action.
[0090] As another optional implementation, the card swiping position of this embodiment is located outside the elevator. After completing the card swiping action, the elevator system can determine the target floor according to the number of floors corresponding to the IC card, that is, after swiping the card, the elevator can automatically locate the target floor. Alternatively, after completing the card swiping action, you can take the elevator, and after entering the elevator, press the target floor button according to the target floor corresponding to the elevator instruction. In addition, in some usage scenarios, the card swiping area is set inside the elevator, and the robot can perform the card swiping action after entering the elevator.
[0091] In this embodiment, for floors that require permission to reach, the robot's mechanical arm end contact is equipped with an elevator pass card, and the robot can perform a card swiping action according to the target floor permission corresponding to the elevator instruction, making the robot applicable to a wider range of areas.
[0092] Embodiment 3
[0093] Reference Figure 3 , another embodiment of the present application is proposed, after the step of controlling the robot to move into the elevator car when the elevator door is detected to be open and the running direction is consistent with the action direction, the step includes:
[0094] Step S60: controlling the robot to move to a pre-stop area in the elevator, and driving the end to move to a preset position, and collecting a third environment image;
[0095] Step S70: analyzing the third environment image to determine the button position of the target floor;
[0096] Step S80: According to the position of the target floor button, controlling the robotic arm to trigger the target floor button.
[0097] In this embodiment, the pattern of the pre-stop area inside the elevator is consistent with the pattern of the pre-stop area outside the elevator, both of which are equilateral triangle arrays composed of three circles, which makes it easier for the robot's built-in algorithm to identify the location of the pre-stop area. The third environment image refers to the image of the elevator interior where the elevator buttons are located.
[0098] As an optional implementation, after the robot stops in the pre-stop area in the elevator, it controls the image acquisition device on the robotic arm to capture the image of the floor button area in the elevator according to the number of the target floor that has been determined, determines the position of the target floor button, and drives the robotic arm to touch the target floor button.
[0099] Exemplarily, the image acquisition device on the robot arm uses a non-targeted image acquisition method to acquire the elevator button image. After determining the image corresponding to the target floor number, the image acquisition stops, and according to the coordinate position of the target floor button in the image, the movement path of the robot arm is planned to trigger the target floor button. When the pressure detected by the pressure sensor on the pressure contact is greater than or equal to the preset pressure value, it is determined that the button action is completed.
[0100] Optionally, the robot can also quickly locate the predicted position of the target floor button according to the pre-debugged button position and the target floor number, drive the mechanical arm to locate to the predicted position, and then collect the third environment image. Improve the elevator riding speed.
[0101] As another optional implementation, after the robot triggers the target floor button, the image of the target floor button is continuously acquired. If a color change of the image is detected, the image of the display screen inside the elevator is acquired. The number displayed on the display screen image is analyzed. If the number is consistent with the target floor, the robot is controlled to exit the elevator. If the number is inconsistent with the target floor, the end is controlled again to trigger the target floor button.
[0102] Exemplarily, after the elevator button is triggered, the indicator light becomes brighter, and then the indicator light of the target floor button is continuously monitored. If the indicator light is detected to be dimmed, the image of the display screen inside the elevator showing the current floor number is collected. If the number on the display screen is consistent with the target floor number, it is determined that the target floor has been reached, and the robot is controlled to drive out of the elevator. In the process of driving out of the elevator, the robotic arm is still parked at the preset door position, and the robotic arm is retracted after the robot body has completely driven out of the elevator.
[0103] Optionally, if it is detected that the floor number displayed on the display screen is inconsistent with the target floor after the elevator indicator light turns dark, it means that the task is canceled and the end of the robot arm needs to be controlled again to trigger the target floor button. The abnormality is recorded. If the elevator task is abnormal again, the abnormal elevator information is sent to the manager to notify the manager to investigate the cause of the abnormality.
[0104] As another optional implementation, after arriving at the target floor, the robot can allow passengers to exit the elevator first, or it can exit the elevator first according to the exit strategy set by the system.
[0105] For example, during the elevator ride, the robot monitors the changes in the numbers on the elevator floor display screen in real time. When the number on the display screen approaches the target floor number, it can send a voice reminder to the passengers that the robot is about to reach the target floor and is ready to exit the elevator, and remind passengers who need to exit the elevator at the target floor to exit the elevator first. Or remind passengers at the door to avoid scratches.
[0106] In this embodiment, after the robot enters the elevator, it can automatically trigger the target floor button without the need to trigger the target floor through the elevator control system or manual assistance. Therefore, the robot's elevator riding task is not affected by the network quality. It only needs to install a mechanical arm on the robot, without the need to modify the elevator, which greatly reduces the cost of the robot's elevator riding.
[0107] Embodiment 4
[0108] In an embodiment of the present application, a control device for a robot is provided.
[0109] Reference Figure 4 , Figure 4 A schematic diagram of the terminal structure of the hardware operating environment involved in an embodiment of the present application.
[0110] like Figure 4As shown, the control terminal may include: a processor 1001, such as a CPU, a network interface 1003, a memory 1004, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The network interface 1003 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1004 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1004 may also be a storage device independent of the aforementioned processor 1001.
[0111] Those skilled in the art will understand that Figure 4 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0112] like Figure 4 As shown, the memory 1004 as a computer storage medium may include an operating system, a network communication module, and a robot control program.
[0113] exist Figure 4 In the robot control device hardware structure shown in FIG. 1 , the processor 1001 can call the robot control program stored in the memory 1004 and perform the following operations:
[0114] When receiving an elevator instruction, determining a direction of movement according to the current floor and the target floor, and acquiring a first environment image captured by the image acquisition device;
[0115] determining a target pattern based on the movement direction, and performing a region of interest analysis on the first environment image based on the target pattern;
[0116] Determine a first key position according to the analysis result of the region of interest, and drive the end of the mechanical arm to move to the first key position;
[0117] Controlling the robotic arm to perform key actions;
[0118] When it is detected that the elevator door is opened and the running direction is consistent with the movement direction, the robot is controlled to move into the elevator car.
[0119] Optionally, the processor 1001 may call a control program of the robot stored in the memory 1004, and further perform the following operations:
[0120] When the pressure collected by the pressure sensor is greater than or equal to a preset pressure value, it is determined that the key action is completed; or
[0121] The first button position image is acquired, and if it is detected that the indicator light corresponding to the first button is lit, it is determined that the button action is completed.
[0122] Optionally, the processor 1001 may call a control program of the robot stored in the memory 1004, and further perform the following operations:
[0123] Determine whether the target floor requires a card swipe;
[0124] If a card is required, obtaining a second environment image captured by the image acquisition device, and performing an area of interest analysis on the second environment image;
[0125] The card swiping position is determined according to the analysis result of the region of interest, and the end of the mechanical arm is driven to move to the card swiping position to perform the card swiping action.
[0126] Optionally, the processor 1001 may call a control program of the robot stored in the memory 1004, and further perform the following operations:
[0127] Collecting an elevator door image, analyzing the elevator door image, determining that the elevator door is open and determining a preset door blocking position;
[0128] Driving the end portion to move to the preset door-blocking position and collecting an image of the interior of the elevator car;
[0129] Determining whether a pre-stop area in the elevator is occupied according to the interior image of the elevator car;
[0130] If the pre-stop area is not occupied, the robot is driven to enter the elevator car.
[0131] Optionally, the processor 1001 may call a control program of the robot stored in the memory 1004, and further perform the following operations:
[0132] If the pre-stop area is occupied, control the at least one joint to retract the end, and after waiting for a preset time, execute the step of controlling the robot arm to execute the key action.
[0133] Optionally, the processor 1001 may call a control program of the robot stored in the memory 1004, and further perform the following operations:
[0134] Collect images of the interior of the elevator car within a preset time period and analyze the movement trends of objects inside the elevator;
[0135] Determining whether the conditions for entering the elevator are met according to the movement trend;
[0136] If the passage conditions are met, the robot is controlled to enter the elevator.
[0137] Optionally, the processor 1001 may call a control program of the robot stored in the memory 1004, and further perform the following operations:
[0138] Controlling the robot to move to a pre-stop area in the elevator, and driving the end to move to a preset position, and collecting a third environment image;
[0139] Analyze the third environment image to determine the button position of the target floor;
[0140] According to the position of the target floor button, the robotic arm is controlled to trigger the target floor button.
[0141] Optionally, the processor 1001 may call a control program of the robot stored in the memory 1004, and further perform the following operations:
[0142] Continuously acquiring the image of the target floor button, and if it is detected that the color of the image changes, acquiring the image of the elevator internal display screen;
[0143] Analyze the number displayed on the display screen image, and if the number is consistent with the target floor, control the robot to drive out of the elevator;
[0144] If the number is inconsistent with the target floor, the end is controlled again to trigger the target floor button.
[0145] In addition, to achieve the above-mentioned purpose, an embodiment of the present invention also provides a device, including a memory, a processor, and a robot control program stored in the memory and executable on the processor, and when the processor executes the robot control program, the robot control method as described above is implemented.
[0146] In addition, to achieve the above-mentioned purpose, an embodiment of the present invention further provides a computer-readable storage medium, on which a control program of a robot is stored. When the control program of the robot is executed by a processor, the control method of the robot as described above is implemented.
[0147] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0148] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0149] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0150] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0151] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0152] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0153] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A robot control method, characterized in that: Applied to a robot, the robot body is equipped with a mechanical arm, the end of the mechanical arm is equipped with an image acquisition device and a contact, the mechanical arm has at least one joint, and the at least one joint is used to control the movement of the end of the mechanical arm. The method includes: When receiving an elevator instruction, determining a direction of movement according to the current floor and the target floor, and acquiring a first environment image captured by the image acquisition device; determining a target pattern based on the movement direction, and performing a region of interest analysis on the first environment image based on the target pattern; Determine a first key position according to the analysis result of the region of interest, and drive the end of the mechanical arm to move to the first key position; Controlling the robotic arm to perform key actions; When it is detected that the elevator door is open and the running direction is consistent with the movement direction, the robot is controlled to move into the elevator car, including: collecting the elevator door image, analyzing the elevator door image, determining that the elevator door is open and determining the preset door-blocking position; driving the end to move to the preset door-blocking position, and collecting the interior image of the elevator car; judging whether the pre-stop area in the elevator is occupied according to the interior image of the elevator car, wherein the pre-stop area is located on the elevator button side; if the pre-stop area is not occupied, driving the robot to enter the elevator car; in the process of the robot entering the elevator car, calculating the movement distance; when the movement distance is equal to the preset value, determining that the robot body has completely entered the elevator, retracting the mechanical arm parked at the preset door-blocking position, so that the elevator can close the elevator door.
2. The robot control method according to claim 1, characterized in that: The contact has a pressure sensor, and the step of controlling the mechanical arm to perform a key action includes: When the pressure collected by the pressure sensor is greater than or equal to a preset pressure value, it is determined that the key action is completed; or The first button position image is acquired, and if it is detected that the indicator light corresponding to the first button is lit, it is determined that the button action is completed.
3. The robot control method according to claim 1, characterized in that: The contact is provided with an elevator pass card. After the step of determining the direction of action according to the current floor and the target floor upon receiving the elevator instruction, the method includes: Determine whether the target floor requires a card swipe; If a card is required, obtaining a second environment image captured by the image acquisition device, and performing an area of interest analysis on the second environment image; The card swiping position is determined according to the analysis result of the region of interest, and the end of the mechanical arm is driven to move to the card swiping position to perform the card swiping action.
4. The robot control method according to claim 1, characterized in that: After the step of judging whether the pre-stop area in the elevator is occupied according to the interior image of the elevator car, the method further comprises: If the pre-stop area is occupied, control the at least one joint to retract the end, and after waiting for a preset time, execute the step of controlling the robot arm to execute the key action.
5. The robot control method according to claim 1, characterized in that: If the pre-stop area is not occupied, the step of driving the robot to enter the elevator car comprises: Collect images of the interior of the elevator car within a preset time period and analyze the movement trends of objects inside the elevator; Determining whether the conditions for entering the elevator are met according to the movement trend; If the passage conditions are met, the robot is controlled to enter the elevator.
6. The robot control method according to claim 1, characterized in that: After the step of controlling the robot to move into the elevator car when it is detected that the elevator door is opened and the running direction is consistent with the action direction, the method further comprises: Controlling the robot to move to a pre-stop area in the elevator, and driving the end to move to a preset position, and collecting a third environment image; Analyze the third environment image to determine the button position of the target floor; According to the position of the target floor button, the robotic arm is controlled to trigger the target floor button.
7. The robot control method according to claim 6, characterized in that: After the step of controlling the end to trigger the target floor button according to the target floor button position, the method further comprises: Continuously acquiring the image of the target floor button, and if it is detected that the color of the image changes, acquiring the image of the elevator internal display screen; Analyze the number displayed on the display screen image, and if the number is consistent with the target floor, control the robot to drive out of the elevator; If the number is inconsistent with the target floor, the end is controlled again to trigger the target floor button.
8. A device, characterized in that: The method comprises a memory, a processor and a robot control program stored in the memory and executable on the processor, wherein when the processor executes the robot control program, the method described in any one of claims 1 to 7 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a control program of the robot, and when the control program of the robot is executed by the processor, the method described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Interactive method of robot and elevator
CN109748165A
Robot remote elevator interaction system and method
CN110116947A
Intelligent robot for autonomously taking elevator and control method of intelligent robot
CN112591571A
Robot control method and device, electronic equipment and readable storage medium
CN114104881A
Method and system for controlling robot to take elevator, elevator, robot system and storage medium
US20210122607A1
