WO2020140605A1 - Motion detection method and apparatus, and computer non-volatile readable storage medium - Google Patents
Motion detection method and apparatus, and computer non-volatile readable storage medium Download PDFInfo
- Publication number
- WO2020140605A1 WO2020140605A1 PCT/CN2019/116455 CN2019116455W WO2020140605A1 WO 2020140605 A1 WO2020140605 A1 WO 2020140605A1 CN 2019116455 W CN2019116455 W CN 2019116455W WO 2020140605 A1 WO2020140605 A1 WO 2020140605A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- robot
- front wheel
- motion parameter
- center
- linear velocity
- Prior art date
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B25—HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
- B25J—MANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
- B25J19/00—Accessories fitted to manipulators, e.g. for monitoring, for viewing; Safety devices combined with or specially adapted for use in connection with manipulators
- B25J19/0095—Means or methods for testing manipulators
Definitions
- the present application relates to the field of robots, and in particular to a motion detection method, device, and computer non-volatile readable storage medium.
- robots to reduce the pressure of manual operations, such as home robots, surgical robots, writing robots, and hotel robots.
- Users can use robots to accomplish many things. For example, when users use home robots, they can control the robots through mobile phone applications, realize remote video chat and voice calls with home robots, and even use home robots as home stewards to help the master. Manage daily life, etc.
- robots are generally powerful, many robots have the problem of poor stability during motion.
- a processor with better performance In order to cope with the problem of poor robot motion stability, better hardware devices can be used to control the robot, such as a processor with better performance, a braking device, and an acceleration device.
- the embodiments of the present application provide a motion detection method that can detect abnormal motion of the robot.
- a warning message is prompted to prompt the management personnel to take countermeasures, so that the present application improves from the perspective of prevention Robot stability.
- an embodiment of the present application provides a motion detection method.
- the method includes:
- the first motion parameter including a linear velocity and an angular velocity, the linear velocity being a linear velocity of the center of mass of the robot;
- the second motion parameter including the linear velocity of the left front wheel and the linear velocity of the right front wheel of the robot;
- a first warning message is prompted, the first warning message is used to indicate that the robot motion is unstable .
- an embodiment of the present application provides a motion detection device, the motion detection device including a unit for executing the motion detection method of the first aspect, the motion detection device includes:
- the measuring unit is used to measure a first motion parameter of the robot, the first motion parameter includes a linear velocity and an angular velocity, and the linear velocity is a linear velocity of the center of mass of the robot;
- a calculation unit configured to calculate a second movement parameter of the robot using the first movement parameter, the second movement parameter including a linear velocity of a left front wheel and a linear velocity of a right front wheel of the robot;
- a comparing unit configured to compare the first motion parameter and the second motion parameter with corresponding threshold ranges respectively;
- the prompting unit is configured to prompt first warning information if any one of the first motion parameter and the second motion parameter is not within the corresponding threshold range, and the first warning information is used to indicate The robot movement is unstable.
- an embodiment of the present application provides another motion detection device, including an encoder, a processor, and a display, where:
- An encoder for measuring a first motion parameter of the robot where the first motion parameter includes a linear velocity and an angular velocity, and the linear velocity is the linear velocity of the center of mass of the robot;
- the processor is used to calculate the second motion parameter of the robot by using the first motion parameter, the second motion parameter includes the linear speed of the left front wheel and the linear speed of the right front wheel of the robot;
- the first motion parameter and the second motion parameter are compared with corresponding threshold ranges respectively;
- the display is used for prompting first warning information if any one of the first sports parameter and the second sports parameter is not within the corresponding threshold range, and the first warning information is used to indicate the Robot movement is unstable.
- an embodiment of the present application provides a robot including the motion detection device according to the third aspect, configured to execute the motion detection method according to any one of the implementation manners of the first aspect to the first aspect.
- an embodiment of the present application provides a computer non-volatile readable storage medium, wherein the computer storage medium stores a computer program, and the computer program includes program instructions, and the program instructions are processed Executed by the controller to execute the method of any one of the implementation manners of the first aspect to the first aspect.
- This application monitors the abnormal motion of the robot by monitoring the motion parameters, greatly improving the efficiency of abnormal detection, and improving the stability of the robot from the perspective of prevention.
- FIG. 1 is a schematic flowchart of a motion detection method provided by an embodiment of the present application
- FIG. 2 is a schematic flowchart of a motion detection method provided by another embodiment of the present application.
- FIG. 3 is a schematic block diagram of a motion detection device provided by an embodiment of the present application.
- FIG. 4 is a structural block diagram of a motion detection device provided by an embodiment of the present application.
- FIG. 5 is a schematic structural diagram of a robot provided by an embodiment of the present application.
- FIG. 6 is a schematic structural diagram of a robot chassis provided by an embodiment of the present application.
- FIG. 7 is a schematic diagram of a pose of a robot provided by an embodiment of the present application.
- the present application is mainly applied to a motion detection device of a robot.
- the motion detection device may be a traditional motion detection device or the motion detection device described in the third and fourth embodiments of the present application.
- the robot may be a traditional robot or the The robot described in the fifth embodiment of the application is not limited in this application.
- the motion detection device sends data, the characteristics of the data are recorded and transmitted according to a preset format, where the characteristics of the data include time, location, type, and so on.
- the motion detection method may include:
- the angular velocity of the robot and the linear velocity of the centroid of the robot are measured by a measuring device installed at the centroid of the robot to obtain the first motion parameter of the robot.
- measuring devices such as encoders, etc.
- An encoder is a device that can collect motion data such as linear velocity and angular velocity, and compile and convert the motion data into a signal form that can be used for communication, transmission, and storage.
- the center of mass refers to the imaginary point where the mass of the robot is concentrated on one point, which can be the center point on the chassis of the robot. Assuming that the chassis of the robot is circular, the centroid is the center of the circle. Assuming that the chassis of the robot is rectangular, the center of mass is the two of the rectangle. The intersection of diagonal lines.
- the measuring device can simultaneously measure the linear velocity and angular velocity of the center of mass, where the angular velocity refers to the radian that the robot rotates per unit time is the angular velocity.
- the linear speed refers to the moving speed of the robot along the tangential direction of the motion track.
- the angular velocity of each point on the robot is equal, and the linear velocity of different points on the robot may be equal or may not be equal, because the linear velocity of any point on the robot depends on the The distance from the point to the instantaneous center, the greater the distance, the greater the linear velocity, so the linear velocity of the point on the robot with the same distance to the instantaneous center is equal, otherwise it is not equal.
- the instantaneous center is the instantaneous rotation center of the robot in the curved motion, and it can be understood that the robot moves in a circular motion around the instantaneous center at the instant of the curved motion.
- the first motion parameter is used to calculate the second motion parameter of the robot, wherein the second motion parameter includes the linear velocity of the left front wheel and the linear velocity of the right front wheel of the robot, and the robot The left front wheel and the right front wheel are located on the straight line connecting the robot's center of mass and instantaneous center.
- the distances between the left front wheel and the right front wheel to the instantaneous center are calculated using the first motion parameters, that is, the first distance L1 from the left front wheel to the instantaneous center, and the second distance L2 from the right front wheel to the instantaneous center;
- the angular velocity ⁇ of the first motion parameter, the first distance L1 and the second distance L2 are calculated to obtain the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel.
- the above calculation of the distance between the left front wheel and the right front wheel to the instantaneous center using the first motion parameter refers to calculating the distance r between the center of mass and the instantaneous center according to the angular velocity V and the angular velocity ⁇ of the first motion parameter; Set the distances of the center of mass to the left front wheel and the right front wheel; according to the distance r of the center of mass and the instant center, and the distance T of the center of mass to the left front wheel and the right front wheel, calculate the left front wheel and the right front wheel respectively.
- the left front wheel and the right front wheel are located on a straight line connecting the center of mass and the instantaneous center.
- the robot including the chassis is rotating around the instant center M at the moment when the curve moves.
- the center point of the chassis that is, the center of mass P
- an encoder that measures the first motion parameters of the robot.
- a dashed line containing an arrow indicates the direction of advancement of the robot, and the left and right front wheels are included on both sides of the encoder , The center of the left front wheel and the center of the right front wheel are located on the connecting line between the center of the encoder and the instant center, the distance T between the left front wheel and the encoder, and the distance T between the right front wheel and the encoder are known to be fixed The value is measured and stored in the robot's memory before the robot leaves the factory.
- the distance from the center of mass P to the instantaneous center M can be calculated, which is the radius of rotation r of the robot. Then according to the rotation radius r of the center of mass to the instantaneous center, the distance T of the center of mass to the left front wheel, the distance T of the center of mass to the right front wheel can be calculated to the first distance L1 from the left front wheel to the instantaneous center, the right front wheel to the instantaneous center The second distance L2.
- V and ⁇ are measured by the encoder. It is known. T can be obtained by measuring the size of the robot in advance, so it is also known, and r can be calculated from the known V and ⁇ . After r is obtained, Then you can calculate the VL of the left front wheel and the VR of the right front wheel.
- another method is used to obtain the first motion parameter and the second motion parameter.
- the rotational speed of the robot, the acceleration of the left front wheel and the acceleration of the right front wheel are measured; the angular velocity of the first motion parameter of the robot is calculated according to the rotational speed; the acceleration and The acceleration of the right front wheel is integrated separately to obtain the linear velocity of the left front wheel and the right front wheel of the robot and the second motion parameter of the robot; the left front wheel using the second motion parameter
- the linear velocity and the linear velocity of the right front wheel are used to calculate the linear velocity of the center of mass to obtain the linear velocity of the first motion parameter.
- accelerators and gyro sensors are installed at the left and right front wheels, respectively, where the accelerator is used to provide power to the left and right front wheels to power the left and right wheels.
- the right front wheel accelerates, and the accelerator can also measure the acceleration a1 of the left front wheel and the acceleration a2 of the right front wheel.
- the gyro sensor is used to measure the rotation speed n1 of the left front wheel and the rotation speed n2 of the right front wheel.
- the rotation speed n1 of the wheel, the rotation speed n2 of the right front wheel, and the rotation speed n of the center of mass are equal, so that the rotation speed n of the center of mass can be obtained.
- the acceleration a1 of the left front wheel and the acceleration a2 of the right front wheel are respectively integrated, and the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel can be calculated.
- the first motion parameter including the angular velocity ⁇ of the robot and the linear velocity V of the centroid, and the second motion including the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel are obtained in the above steps
- obtain the threshold ranges corresponding to each motion parameter the threshold range [ ⁇ min, ⁇ max] corresponding to the angular velocity ⁇ of the robot
- ⁇ min represents the minimum angular velocity of the robot
- ⁇ max represents the maximum angular velocity of the robot
- Vmin represents the centroid of the robot
- the minimum linear velocity, Vmax represents the maximum linear velocity of the robot's center of mass
- VLmin represents the minimum linear velocity of the left front wheel
- VLmax represents the maximum linear velocity of the
- the robot when any of the motion parameters of the angular velocity ⁇ of the robot, the linear velocity V, the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel are not within their corresponding threshold ranges, the robot is judged Abnormal movement, and prompt the first warning message.
- the first warning information is used to indicate that the robot motion is unstable.
- the first warning information includes abnormal motion parameters of the robot.
- the method of prompting includes displaying the first warning information on the display screen, or prompting the first warning information by voice The warning information, or the first warning information is prompted by means of light, and the method of prompting the warning information is not limited in this application.
- VL ⁇ VL min or VL ⁇ VL max it is judged that the mobile robot has an abnormal state in motion
- VR ⁇ VR min or VR ⁇ VR max it is judged that the mobile robot has an abnormal state in motion
- V ⁇ Vmin or V ⁇ VMax to judge the abnormal state of the mobile robot's motion state
- ⁇ min or ⁇ max to judge the abnormal state of the mobile robot's motion state.
- the posture of the robot is calculated according to the first motion parameter, the posture includes the position and deflection angle of the robot, and the position includes the horizontal displacement distance and the vertical displacement distance; On the running track; if it is determined that the robot is not on the running track, a second warning message is prompted.
- the motion of the robot in addition to monitoring whether the first and second motion parameters of the robot are not within the corresponding threshold range to monitor whether the motion of the robot is abnormal, the motion of the robot is also monitored by monitoring the posture of the robot Is there any abnormality?
- the first motion parameters are used to calculate the robot's posture, which is used to describe the robot's running posture, including the robot's position and deflection direction, and the position includes the robot's horizontal displacement distance and vertical displacement Distance, and then judge whether the robot is on the running track according to the posture of the robot. If it is determined that the robot is not on the running track, a second warning message is prompted.
- the second warning information includes abnormal motion parameters in the posture, and the method of prompting the second warning information can refer to the prompting method of the first warning information, which will not be repeated here.
- the above calculation of the position and posture of the robot based on the first motion parameter refers to the calculation of the instantaneous deflection angle of the robot, the instantaneous horizontal speed in the horizontal direction, and the instantaneous in the vertical direction using the first motion parameter Vertical speed; Integrate the instantaneous deflection angle, instantaneous horizontal speed and instantaneous vertical speed separately to get the deflection angle, horizontal displacement distance and vertical displacement distance of the robot.
- (x, y) and angle ⁇ are used to describe the robot's pose (x, y, ⁇ ), where (x, y) represents the position of the mobile robot relative to world coordinates (translation component), and x represents the robot Is the horizontal displacement distance, y represents the vertical displacement distance of the robot, and ⁇ represents the deflection angle of the robot's advancing direction relative to the x axis.
- the above calculation of the pose of the robot through the first motion parameter refers to obtaining the first motion parameter to calculate the instantaneous deflection angle, instantaneous horizontal speed, and instantaneous vertical speed of the robot, where the instantaneous deflection angle is the robot In the angle deflected at the instant, the instantaneous horizontal speed is the instantaneous moving speed of the robot in the horizontal direction, and the instantaneous vertical speed is the instantaneous moving speed of the robot in the vertical direction.
- the instantaneous deflection angle is the angular velocity of the robot.
- the instantaneous horizontal velocity Vx and the instantaneous vertical velocity Vy is a functional relationship between the linear velocity v and the angular velocity ⁇ in the first motion parameter and the instantaneous deflection angle W of the robot, the instantaneous horizontal velocity Vx and the instantaneous vertical velocity Vy as follows:
- the above determination of whether the robot is on the running track according to the pose refers to determining whether the robot is on the running track according to the position of the robot; if the robot is not on the running track, it is determined that the robot is not on the running track; if the robot is on the running track Calculate the deflection angle of the tangent of the position of the robot on the running track; determine whether the deflection angle of the robot is consistent with the deflection angle of the tangent; if the deflection angle of the robot is not consistent with the deflection angle of the tangent, determine that the robot is not on the running trajectory.
- the above judgment of whether the robot is on the running track according to the pose refers to first determining whether the robot is on the running track according to the position in the pose of the robot.
- the running track describes the movement range of the robot. Whether the robot is on the motion track can determine whether the robot is within a predetermined range of motion.
- the robot If it is determined that the robot is not on the running track, it indicates that the robot is operating abnormally; if it is determined that the robot is on the running track, the deflection angle in the pose of the robot is obtained, And the deflection angle of the tangent of the position of the robot on the above running track, if the deflection angle of the robot is consistent with the deflection angle of the tangent, if it is consistent, it means that the robot is on the running track, otherwise, it is predicted that the robot will leave the running track, so Make sure that the robot is not on the running trajectory, where the running trajectory describes the running range of the robot and the deflection angle at each position.
- the difference between the above-mentioned running track and the above-mentioned running track is that the above-mentioned running track describes the range of motion of the robot, and the running track not only describes the range in which the robot can move, but also describes the deflection of the robot at each position of the range of motion. angle. Therefore, when the robot is on the running track, it means that the robot is on the running route, and when the robot is on the running track, it means that the robot is traveling along the running route, and there is no tendency to deviate from the running route.
- the method of calculating the position of the pose of the mobile robot further includes a method of using a beacon of an ultrasonic sensor and a method of using an indoor global positioning system (GPS, Global Positioning System).
- GPS Global Positioning System
- the embodiment of the present application obtains multiple motion parameters of the robot through direct measurement and calculation, and then determines whether the robot is in an abnormal motion state according to whether any one of the motion parameters of the robot is within the corresponding threshold range, and then determines whether the robot appears In case of abnormality, alert information is reminded to remind customers and store staff. Therefore, the embodiment of the present application detects the abnormal motion state of the robot in time by monitoring multiple motion parameters of the robot in real time before prompting serious consequences of the abnormal motion of the robot, and prompts the management personnel to take corresponding measures, so that the embodiment of the present application monitors Simple motion parameters can realize the abnormal motion monitoring of the robot, greatly improving the efficiency of abnormal detection.
- the motion detection method may include:
- the angular velocity of the robot and the linear velocity of the centroid of the robot are measured by a measuring device installed at the centroid of the robot to obtain the first motion parameter of the robot.
- measuring devices such as encoders, etc.
- An encoder is a device that can collect motion data such as linear velocity and angular velocity, and compile and convert the motion data into a signal form that can be used for communication, transmission, and storage.
- the center of mass refers to the imaginary point where the mass of the robot is concentrated on one point, which can be the center point on the chassis of the robot. Assuming that the chassis of the robot is circular, the centroid is the center of the circle. Assuming that the chassis of the robot is rectangular, the center of mass is the two of the rectangle. The intersection of diagonal lines.
- the measuring device can simultaneously measure the linear velocity and angular velocity of the center of mass, where the angular velocity refers to the radian that the robot rotates per unit time is the angular velocity.
- the linear speed refers to the moving speed of the robot along the tangential direction of the motion track.
- the angular velocity of each point on the robot is equal, and the linear velocity of different points on the robot may be the same or may be inconsistent, because the linear velocity of any point on the robot depends on the point
- the distance to the instantaneous center the greater the distance, the greater the linear velocity, so the linear velocity of the point on the robot with the same distance to the instantaneous center is consistent, otherwise it is inconsistent.
- the instantaneous center is the instantaneous rotation center of the robot in the curve motion, and it can be understood that the robot moves in a circular motion around the rotation center at the instant of the curve motion.
- the first motion parameter is used to calculate the second motion parameter of the robot, wherein the second motion parameter includes the linear velocity of the left front wheel and the linear velocity of the right front wheel of the robot, and the robot The left front wheel and the right front wheel are located on the straight line connecting the robot's center of mass and instantaneous center.
- the distances between the left front wheel and the right front wheel to the instantaneous center are calculated using the first motion parameters, that is, the first distance L1 from the left front wheel to the instantaneous center, and the second distance L2 from the right front wheel to the instantaneous center;
- the angular velocity ⁇ of the first motion parameter, the first distance L1 and the second distance L2 are calculated to obtain the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel.
- the above calculation of the distance between the left front wheel and the right front wheel to the instantaneous center using the first motion parameter refers to calculating the distance r between the center of mass and the instantaneous center according to the angular velocity V and the angular velocity ⁇ of the first motion parameter; Set the distances of the center of mass to the left front wheel and the right front wheel; according to the distance r of the center of mass and the instant center, and the distance T of the center of mass to the left front wheel and the right front wheel, calculate the left front wheel and the right front wheel respectively.
- the left front wheel and the right front wheel are located on a straight line connecting the center of mass and the instantaneous center.
- the robot including the chassis is rotating around the instant center M at the moment when the curve moves.
- the center point of the chassis that is, the center of mass P
- an encoder that measures the first motion parameters of the robot.
- a dashed line containing an arrow indicates the direction of advancement of the robot, and the left and right front wheels are included on both sides of the encoder , The center of the left front wheel and the center of the right front wheel are located on the connecting line between the center of the encoder and the instant center, the distance T between the left front wheel and the encoder, and the distance T between the right front wheel and the encoder are known to be fixed The value is measured and stored in the robot's memory before the robot leaves the factory.
- the distance from the center of mass P to the instantaneous center M can be calculated, which is the radius of rotation r of the robot. Then according to the rotation radius r of the center of mass to the instantaneous center, the distance T of the center of mass to the front left wheel, the distance T of the center of mass to the front right wheel can be calculated to the first distance L1 from the front left wheel to the center of instantaneous, the front right wheel to the center of instantaneous The second distance L2.
- V and ⁇ are measured by the encoder. It is known. T can be obtained by measuring the size of the robot in advance, so it is also known, and r can be calculated from the known V and ⁇ . After r is obtained, Then you can calculate the VL of the left front wheel and the VR of the right front wheel.
- another method is used to obtain the first motion parameter and the second motion parameter.
- the rotational speed of the robot, the acceleration of the left front wheel and the acceleration of the right front wheel are measured; the angular velocity of the first motion parameter of the robot is calculated according to the rotational speed; the acceleration and The acceleration of the right front wheel is integrated separately to obtain the linear velocity of the left front wheel and the right front wheel of the robot and the second motion parameter of the robot; the left front wheel using the second motion parameter
- the linear velocity and the linear velocity of the right front wheel are used to calculate the linear velocity of the center of mass to obtain the linear velocity of the first motion parameter.
- accelerators and gyro sensors are installed at the left and right front wheels, respectively, where the accelerator is used to provide power to the left and right front wheels to power the left and right wheels.
- the right front wheel accelerates, and the accelerator can also measure the acceleration a1 of the left front wheel and the acceleration a2 of the right front wheel.
- the gyro sensor is used to measure the rotation speed n1 of the left front wheel and the rotation speed n2 of the right front wheel.
- the rotation speed n1 of the wheel, the rotation speed n2 of the right front wheel, and the rotation speed n of the center of mass are equal, so that the rotation speed n of the center of mass can be obtained.
- the acceleration a1 of the left front wheel and the acceleration a2 of the right front wheel are respectively integrated, and the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel can be calculated.
- the first motion parameter including the angular velocity ⁇ of the robot and the linear velocity V of the centroid, and the second motion including the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel are obtained in the above steps
- the robot when any of the motion parameters of the angular velocity ⁇ of the robot, the linear velocity V, the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel are not within their corresponding threshold ranges, the robot is judged Abnormal movement, and prompt the first warning message.
- the first warning information contains abnormal motion parameters of the robot
- the prompting method includes displaying the first warning information on the display screen, or prompting the first warning information by voice, or prompting the first warning information by light Warning information, this application does not limit the way of warning information.
- VL ⁇ VL min or VL ⁇ VL max it is judged that the mobile robot has an abnormal state in motion
- VR ⁇ VR min or VR ⁇ VR max it is judged that the mobile robot has an abnormal state in motion
- V ⁇ Vmin or V ⁇ VMax to judge the abnormal state of the mobile robot's motion state
- ⁇ min or ⁇ max to judge the abnormal state of the mobile robot's motion state.
- the motion of the robot in addition to monitoring whether the first and second motion parameters of the robot are not within the corresponding threshold range to monitor whether the motion of the robot is abnormal, the motion of the robot is also monitored by monitoring the posture of the robot Is there any abnormality?
- the first motion parameters are used to calculate the robot's posture, which is used to describe the robot's running posture, including the robot's position and deflection direction, and the position includes the robot's horizontal displacement distance and vertical displacement distance.
- the above calculation of the position and posture of the robot based on the first motion parameter refers to the use of the first motion parameter to calculate the instantaneous deflection angle of the robot, the instantaneous horizontal speed in the horizontal direction, and the vertical Instantaneous vertical speed; integrate the instantaneous deflection angle, instantaneous horizontal speed and instantaneous vertical speed respectively to obtain the deflection angle, horizontal displacement distance and vertical displacement distance of the robot.
- (x, y) and angle ⁇ are used to describe the robot's posture (x, y, ⁇ ), where (x, y) represents the position of the mobile robot relative to the world coordinates (translation component), and ⁇ represents the robot The deflection angle of the advancing direction relative to the x axis.
- the above calculation of the pose of the robot through the first motion parameter refers to obtaining the first motion parameter to calculate the instantaneous deflection angle, instantaneous horizontal speed, and instantaneous vertical speed of the robot, where the instantaneous deflection angle is the robot In the angle deflected at the instant, the instantaneous horizontal speed is the instantaneous moving speed of the robot in the horizontal direction, and the instantaneous vertical speed is the instantaneous moving speed of the robot in the vertical direction.
- the instantaneous deflection angle is the angular velocity of the robot.
- the instantaneous horizontal velocity Vx and the instantaneous vertical velocity Vy as follows:
- the above determination of whether the robot is on the running track according to the pose refers to determining whether the robot is on the running track according to the position of the robot; if the robot is not on the running track, it is determined that the robot is not on the running track; if the robot is on the running track Calculate the deflection angle of the tangent of the position of the robot on the running track; determine whether the deflection angle of the robot is consistent with the deflection angle of the tangent; if the deflection angle of the robot is not consistent with the deflection angle of the tangent, determine that the robot is not on the running trajectory.
- the above determination of whether the robot is on the running track according to the pose refers to first determining whether the robot is on the running track according to the position in the pose of the robot.
- the running track describes the movement range of the robot. Whether the robot is on the motion track can determine whether the robot is within a predetermined range of motion.
- the robot If it is determined that the robot is not on the running track, it indicates that the robot is operating abnormally; if it is determined that the robot is on the running track, the deflection angle in the pose of the robot is obtained, And the deflection angle of the tangent of the position of the robot on the above running track, if the deflection angle of the robot is consistent with the deflection angle of the tangent, if it is consistent, it means that the robot is on the running track, otherwise, it is predicted that the robot will leave the running track, so Make sure that the robot is not on the running trajectory, where the running trajectory describes the running range of the robot and the deflection angle at each position.
- the difference between the above-mentioned running track and the above-mentioned running track is that the above-mentioned running track describes the range of motion of the robot, and the running track not only describes the range in which the robot can move, but also describes the deflection of the robot at each position of the range of motion. angle. Therefore, when the robot is on the running track, it means that the robot is on the running route, and when the robot is on the running track, it means that the robot is traveling along the running route, and there is no tendency to deviate from the running route.
- the method of calculating the position of the pose of the mobile robot further includes a method of using a beacon of an ultrasonic sensor and a method of using an indoor global positioning system (GPS, Global Positioning System).
- GPS Global Positioning System
- the second warning information includes abnormal motion parameters in the posture
- the method of prompting the second warning information can refer to the prompting method of the first warning information.
- the embodiment of the present application does not limit the manner of prompting the warning information.
- the posture of the robot is also monitored, and the robot is judged according to the posture of the robot Whether it is on the running track or not, if it is judged that the robot is not on the running track, a second warning message is prompted to remind the manager to take corresponding measures. It can be seen that the embodiments of the present application further improve the detection efficiency of the abnormal movement of the robot.
- An embodiment of the present application further provides a motion detection device, which is used for a unit that executes any one of the foregoing motion detection methods.
- FIG. 3 it is a schematic block diagram of a motion detection device provided by an embodiment of the present application.
- the motion detection device of this embodiment includes a measurement unit 310, a calculation unit 320, a comparison unit 330, and a prompt unit 340. specific:
- the measuring unit 310 is configured to measure a first motion parameter of the robot, where the first motion parameter includes a linear velocity and an angular velocity, and the linear velocity is a linear velocity of the center of mass of the robot;
- the calculation unit 320 is configured to calculate a second motion parameter of the robot using the first motion parameter, and the second motion parameter includes a linear velocity of a left front wheel and a linear velocity of a right front wheel of the robot;
- the calculation unit 320 is specifically configured to calculate the distances from the left front wheel and the right front wheel to the instantaneous center using the first motion parameter; using the angular velocity of the first motion parameter and the left front The distance between the wheel and the right front wheel and the instant center, respectively, to calculate the linear velocity of the left front wheel and the linear velocity of the right front wheel;
- the calculation unit 320 is more specifically configured to calculate a radius of rotation from the center of mass to the instantaneous center according to the first motion parameter; obtain the preset center of mass to the left front wheel and the right front respectively The distance of the wheel; calculate the left front wheel and the right front wheel according to the turning radius of the center of mass to the instantaneous center, and the distances of the center of mass to the left front wheel and the right front wheel respectively A first distance and a second distance to the instant center, the left front wheel and the right front wheel are located on a straight line connecting the center of mass and the instant center;
- the comparing unit 330 is configured to compare the first motion parameter and the second motion parameter with corresponding threshold ranges respectively;
- the prompting unit 340 is configured to prompt the first warning information if any one of the first motion parameter and the second motion parameter is not within the corresponding threshold range.
- the calculation unit 320 is further configured to calculate a pose of the robot according to the first motion parameter, the pose includes a position and a deflection angle of the robot, and the position includes a horizontal displacement distance and a vertical Displacement distance; the motion detection device further includes a judging unit 350 for judging whether the robot is on the running track according to the posture; the prompting unit 340 is also used for determining that the robot is not on the running track, Then the second warning information is prompted, and the second warning information is used to indicate that the robot is not on the running track.
- calculation unit 320 is specifically configured to calculate the instantaneous deflection angle of the robot, the instantaneous horizontal velocity in the horizontal direction, and the instantaneous vertical velocity in the vertical direction using the first motion parameter;
- the deflection angle, the instantaneous horizontal speed and the instantaneous vertical speed are respectively integrated to obtain the deflection angle of the robot, the horizontal displacement distance, and the vertical displacement distance.
- the judging unit 350 is specifically configured to judge whether the robot is on a running track according to the position of the robot, and the running track is a preset running line; if the robot is not on the running track, determine The robot is not on the running trajectory; if the robot is on the motion trajectory, it is determined whether the deflection angle of the robot is consistent with the tangent angle of the tangent; if the deflection angle of the robot is consistent with the tangent If the deflection angles are not consistent, it is determined that the robot is not on the running track.
- calculation unit 320 is further configured to calculate the deflection angle of the tangent of the position of the robot on the running track if the robot is on the running track.
- the measuring unit 310 is also used to measure the rotation speed of the robot, the acceleration of the left front wheel and the acceleration of the right front wheel.
- the calculation unit 320 is further configured to calculate the angular velocity of the first motion parameter of the robot according to the rotation speed; integrate the acceleration of the left front wheel and the acceleration of the right front wheel respectively to obtain the robot’s The linear velocity of the left front wheel and the linear velocity of the right front wheel of the second motion parameter; using the linear velocity of the left front wheel and the linear velocity of the right front wheel of the second motion parameter, the linear velocity of the centroid is calculated To obtain the linear velocity of the first motion parameter.
- the measurement unit 310 and the calculation unit 320 are used to obtain multiple motion parameters of the robot, and then the comparison unit 330 determines whether the robot is in an abnormal motion state according to whether any one of the motion parameters of the robot is within a corresponding threshold range, and In the case where it is judged that the robot is abnormal, the warning information is prompted by the prompting unit 340 to remind the customer and the store staff. Therefore, the embodiment of the present application detects the abnormal motion state of the robot in time by monitoring multiple motion parameters of the robot in real time before prompting serious consequences of the abnormal motion of the robot, and prompts the management personnel to take corresponding measures, so that the embodiment of the present application monitors Simple motion parameters can realize the abnormal motion monitoring of the robot, greatly improving the efficiency of abnormal detection.
- the motion detection device in this embodiment may include: an encoder 410, a processor 420, and a display 430.
- the encoder 410, the processor 420, and the display 430 are connected through a bus 440. specific:
- the encoder 410 is used to perform the function of the measuring unit 310 for measuring a first motion parameter of the robot, where the first motion parameter includes a linear velocity and an angular velocity, and the linear velocity is a linear velocity of the center of mass of the robot;
- the processor 420 is configured to execute the function of the calculation unit 320 for calculating the second motion parameter of the robot using the first motion parameter, the second motion parameter including the linear velocity of the left front wheel of the robot and the right Front wheel linear speed; also used to perform the function of the comparing unit 330, and also used to compare the first motion parameter and the second motion parameter with corresponding threshold ranges respectively;
- the above processor 420 is specifically configured to calculate the distances from the left front wheel and the right front wheel to the instantaneous center using the first motion parameter; using the angular velocity of the first motion parameter and the left front wheel And the distance between the right front wheel and the instant center, respectively, to calculate the linear velocity of the left front wheel and the linear velocity of the right front wheel;
- the above processor 420 more specifically calculates the radius of rotation from the center of mass to the instantaneous center according to the first motion parameter; acquiring the preset center of mass to the left front wheel and the right front wheel respectively Distance; according to the radius of rotation from the center of mass to the instantaneous center, and the distance of the center of mass to the left front wheel and the right front wheel respectively, calculate the left front wheel and the right front wheel to all
- the first distance and the second distance of the instant center, the left front wheel and the right front wheel are located on a straight line connecting the center of mass and the instant center;
- the display 430 is used to execute the function of the display unit 340, and is used to prompt the first warning information if any one of the first motion parameter and the second motion parameter is not within the corresponding threshold range.
- the above processor 420 is further configured to calculate the posture of the robot according to the first motion parameter, the posture includes a position and a deflection angle of the robot, and the position includes a horizontal displacement distance and a vertical displacement Distance; the above processor 420 is also used to execute the function of the judging unit 350, used to judge whether the robot is on the running track according to the pose.
- the above display 430 is also used to prompt second warning information if it is determined that the robot is not on the running track, and the second warning information is used to indicate that the robot is not on the running track.
- the above processor 420 is specifically used to calculate the instantaneous deflection angle of the robot, the instantaneous horizontal velocity in the horizontal direction, and the instantaneous vertical velocity in the vertical direction using the first motion parameter; deflect the instantaneous The angle, the instantaneous horizontal speed and the instantaneous vertical speed are respectively integrated to obtain the deflection angle of the robot, the horizontal displacement distance, and the vertical displacement distance.
- the processor 420 is specifically configured to determine whether the robot is on a running track according to the position of the robot, and the running track is a preset running line; if the robot is not on the running track, determine The robot is not on the running track; if the robot is on the running track, calculate the deflection angle of the tangent of the position of the robot on the running track; determine whether the deflection angle of the robot is the same as the The deflection angle of the tangent line is consistent; if the deflection angle of the robot does not match the deflection angle of the tangent line, it is determined that the robot is not on the running trajectory.
- the motion detection device further includes at least two accelerators 450 and two gyro sensors 460, wherein the gyro sensor is also used to perform the function of the measuring unit 310 to measure the rotational speed of the robot; the accelerator is also used to perform The function of the measuring unit 310 is to measure the acceleration of the left front wheel and the acceleration of the right front wheel.
- the processor 420 is further used to calculate the angular velocity of the first motion parameter of the robot according to the rotation speed; integrate the acceleration of the left front wheel and the acceleration of the right front wheel respectively to obtain the first The linear velocity of the left front wheel and the linear velocity of the right front wheel of the second motion parameter; using the linear velocity of the left front wheel and the linear velocity of the right front wheel of the second motion parameter, calculating the linear velocity of the centroid, The linear velocity of the first motion parameter is obtained.
- the above-mentioned motion detection device further includes a storage device 470 for storing a computer program, the computer program includes program instructions, and the processor 420 is configured to call the program instructions.
- the memory package 470 contains a computer non-volatile readable storage medium, characterized in that the computer non-volatile readable storage medium stores a computer program, the computer program includes program instructions, and the program instructions are treated as When the processor 420 executes, it causes the processor 420 to execute.
- the encoder 410, the processor 420, and the display 430 may be a central processing unit (Central Processing Unit, CPU), and the processor 420 may also be other general-purpose processors, digital signal processing (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete Hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
- the memory 470 may include a read-only memory and a random access memory, and provide instructions and data to the processor 420. A portion of the memory 470 may also include non-volatile random access memory. For example, the memory 470 may also store device type information.
- the computer non-volatile readable storage medium may be an internal storage unit of the motion detection device of any of the foregoing embodiments, such as a hard disk or a memory of the motion detection device.
- the non-volatile computer-readable storage medium may also be an external storage device of the motion detection device, such as a plug-in hard disk equipped on the motion detection device, a smart memory card (Smart, Media, Card, SMC), and secure digital (SD) ) Card, flash card (Flash Card), etc.
- the computer non-volatile readable storage medium may also include both an internal storage unit of the motion detection device and an external storage device.
- the computer non-volatile storage medium is used to store computer programs and other programs and data required by the motion detection device. Computer non-volatile storage media can also be used to temporarily store data that has been or will be output.
- the processor 420 described in the embodiments of the present application can execute the implementation methods described in the first and second embodiments of the motion detection method provided by the embodiments of the present application, and can also execute the embodiments of the present application The implementation of the described motion detection device will not be repeated here.
- the robot shown in FIG. 5 includes a sports chassis, dual speakers, speakers, high-definition display screens, control equipment, and a general-purpose processor. Includes the encoder 410, accelerator and rotating gyroscope of the motion detection device, the high-definition display screen is the display, the general-purpose processor is the processor, and the control device sends control information to the robot for controlling the robot motion and When the movement is stopped, the dual speakers and the speakers are used to emit sound, and can be used together with the display 430 to prompt the abnormal warning information.
- the robot shown in FIG. 5 does not limit the specific structure of the robot.
- the disclosed motion detection device and motion detection method may be implemented in other ways.
- the device embodiments described above are only schematic.
- the division of units is only a division of logical functions.
- there may be other divisions for example, multiple units or components may be combined or integrated To another system, or some features can be ignored, or not implemented.
- the displayed or discussed mutual couplings or direct couplings or communication connections may be indirect couplings or communication connections through some interfaces, devices, or units, and may also be electrical, mechanical, or other forms of connection.
- the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or software function unit.
- 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.
- the technical solution of the present application essentially or part of the contribution to the existing technology, or all or part of the technical solution can be embodied in the form of a software product
- the computer software product is stored in a storage medium
- several instructions are included to enable a computer device (which may be a personal computer, a motion detection device, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .
Landscapes
- Engineering & Computer Science (AREA)
- Robotics (AREA)
- Mechanical Engineering (AREA)
- Manipulator (AREA)
- Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
Abstract
A motion detection method and apparatus, and a computer non-volatile readable storage medium, which is applied in the field of smart cities, wherein the method comprises: measuring a first motion parameter of a robot (101), the first motion parameter comprising linear velocity and angular velocity, the linear velocity being the linear velocity of the center of mass of the robot; calculating a second motion parameter of the robot by using the first motion parameter above (102), the second motion parameter comprising the linear velocity of the left front wheel and the linear velocity of the right front wheel of the robot; comparing the first motion parameter above and the second motion parameter above to corresponding threshold ranges respectively (103); and if any one motion parameter among the first motion parameter above and second motion parameter above is not within the corresponding threshold range, prompting a first warning message (104). The described method obtains a plurality of motion parameters of the robot by means of direct measurement and operation, and then determines whether the robot is in an abnormal motion state according to whether any one of the motion parameters of the robot is within the corresponding threshold range.
Description
本申请要求于2019年01月04日提交中国专利局、申请号为201910015235.0、申请名称为“一种运动检测方法、运动检测装置及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the China Patent Office on January 4, 2019, with the application number 201910015235.0 and the application name as "a motion detection method, motion detection device, and computer-readable storage medium", all of which The content is incorporated into this application by reference.
本申请涉及机器人领域,尤其涉及一种运动检测方法、装置及计算机非易失性可读存储介质。The present application relates to the field of robots, and in particular to a motion detection method, device, and computer non-volatile readable storage medium.
随着机器人技术的蓬勃发展,各行各业都开始尝试使用机器人来减轻人工作业的压力,如家庭机器人、手术机器人、写作机器人和酒店机器人等。用户可利用机器人来完成许多事情,例如用户在使用家庭机器人的时候,通过手机应用程序来操控机器人,实现与家庭机器人的远程视频聊天、语音通话等功能,甚至将家庭机器人作为家庭管家帮助主人打理日常生活等。尽管机器人总的来说功能强大,但是许多机器人都存在着运动时候稳定性较差的问题。With the vigorous development of robot technology, all walks of life have begun to use robots to reduce the pressure of manual operations, such as home robots, surgical robots, writing robots, and hotel robots. Users can use robots to accomplish many things. For example, when users use home robots, they can control the robots through mobile phone applications, realize remote video chat and voice calls with home robots, and even use home robots as home stewards to help the master. Manage daily life, etc. Although robots are generally powerful, many robots have the problem of poor stability during motion.
为了应对机器人的运动稳定性较差的问题,可以采用更好的硬件装置来对机器人进行控制,例如采取性能比较好的处理器,刹车装置和加速装置等。In order to cope with the problem of poor robot motion stability, better hardware devices can be used to control the robot, such as a processor with better performance, a braking device, and an acceleration device.
但无论采用多么好的硬件装置,还是不能很好的解决机器人稳定性差的问题,因为控制性能再好的机器人也不能保证一定不会出现运动异常,因此缺少一种可以在第一时间检测出机器人异常运动的方法。However, no matter how good the hardware device is, it can't solve the problem of poor robot stability, because the robot with the best control performance can not guarantee that there will be no abnormal movement, so there is a lack of a robot that can be detected in the first place. Abnormal movement method.
发明内容Summary of the invention
本申请实施例提供一种运动检测方法,可以对机器人的运动异常进行检测,当机器人的运动异常的时候,提示警示信息,以提示管理人员采取应对措施,从而本申请从预防的角度出发来提高机器人的稳定性。The embodiments of the present application provide a motion detection method that can detect abnormal motion of the robot. When the motion of the robot is abnormal, a warning message is prompted to prompt the management personnel to take countermeasures, so that the present application improves from the perspective of prevention Robot stability.
第一方面,本申请实施例提供了一种运动检测方法,该方法包括:In a first aspect, an embodiment of the present application provides a motion detection method. The method includes:
测量机器人的第一运动参数,所述第一运动参数包括线速度和角速度,所述线速度为所述机器人的质心的线速度;Measuring a first motion parameter of the robot, the first motion parameter including a linear velocity and an angular velocity, the linear velocity being a linear velocity of the center of mass of the robot;
利用所述第一运动参数计算所述机器人的第二运动参数,所述第二运动参数包括所述机器人的左前轮的线速度和右前轮的线速度;Calculating the second motion parameter of the robot using the first motion parameter, the second motion parameter including the linear velocity of the left front wheel and the linear velocity of the right front wheel of the robot;
将所述第一运动参数和所述第二运动参数分别与对应的阈值范围进行比较;Comparing the first motion parameter and the second motion parameter with corresponding threshold ranges respectively;
若所述第一运动参数和所述第二运动参数中,存在任意一个运动参数不在对应的阈值范围内,则提示第一警示信息,所述第一警示信息用于表示所述机器人运动不稳定。If there is any one of the first motion parameter and the second motion parameter that is not within the corresponding threshold range, a first warning message is prompted, the first warning message is used to indicate that the robot motion is unstable .
第二方面,本申请实施例提供了一种运动检测装置,该运动检测装置包括用于执行上 述第一方面的运动检测方法的单元,该运动检测装置包括:In a second aspect, an embodiment of the present application provides a motion detection device, the motion detection device including a unit for executing the motion detection method of the first aspect, the motion detection device includes:
测量单元,用于测量机器人的第一运动参数,所述第一运动参数包括线速度和角速度,所述线速度为所述机器人的质心的线速度;The measuring unit is used to measure a first motion parameter of the robot, the first motion parameter includes a linear velocity and an angular velocity, and the linear velocity is a linear velocity of the center of mass of the robot;
计算单元,用于利用所述第一运动参数计算所述机器人的第二运动参数,所述第二运动参数包括所述机器人的左前轮的线速度和右前轮的线速度;A calculation unit, configured to calculate a second movement parameter of the robot using the first movement parameter, the second movement parameter including a linear velocity of a left front wheel and a linear velocity of a right front wheel of the robot;
比较单元,用于将所述第一运动参数和所述第二运动参数分别与对应的阈值范围进行比较;A comparing unit, configured to compare the first motion parameter and the second motion parameter with corresponding threshold ranges respectively;
提示单元,用于若所述第一运动参数和所述第二运动参数中,存在任意一个运动参数不在对应的阈值范围内,则提示第一警示信息,所述第一警示信息用于表示所述机器人运动不稳定。The prompting unit is configured to prompt first warning information if any one of the first motion parameter and the second motion parameter is not within the corresponding threshold range, and the first warning information is used to indicate The robot movement is unstable.
第三方面,本申请实施例提供了另一种运动检测装置,包括编码器、处理器和显示器,其中:In a third aspect, an embodiment of the present application provides another motion detection device, including an encoder, a processor, and a display, where:
编码器,用于测量机器人的第一运动参数,所述第一运动参数包括线速度和角速度,所述线速度为所述机器人的质心的线速度;An encoder for measuring a first motion parameter of the robot, where the first motion parameter includes a linear velocity and an angular velocity, and the linear velocity is the linear velocity of the center of mass of the robot;
处理器,用于利用所述第一运动参数计算所述机器人的第二运动参数,所述第二运动参数包括所述机器人的左前轮线速度和右前轮线速度;还用于将所述第一运动参数和所述第二运动参数分别与对应的阈值范围进行比较;The processor is used to calculate the second motion parameter of the robot by using the first motion parameter, the second motion parameter includes the linear speed of the left front wheel and the linear speed of the right front wheel of the robot; The first motion parameter and the second motion parameter are compared with corresponding threshold ranges respectively;
显示器,用于若所述第一运动参数和所述第二运动参数中,存在任意一个运动参数不在对应的阈值范围内,则提示第一警示信息,所述第一警示信息用于表示所述机器人运动不稳定。The display is used for prompting first warning information if any one of the first sports parameter and the second sports parameter is not within the corresponding threshold range, and the first warning information is used to indicate the Robot movement is unstable.
第四方面,本申请实施例提供了一种机器人,包含上述第三方面的运动检测装置,用以执行上述第一方面至第一方面的任意一种实现方式的运动检测方法。According to a fourth aspect, an embodiment of the present application provides a robot including the motion detection device according to the third aspect, configured to execute the motion detection method according to any one of the implementation manners of the first aspect to the first aspect.
第五方面,本申请实施例提供了一种计算机非易失性可读存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行,用以执行上述第一方面至第一方面的任意一种实现方式的方法。According to a fifth aspect, an embodiment of the present application provides a computer non-volatile readable storage medium, wherein the computer storage medium stores a computer program, and the computer program includes program instructions, and the program instructions are processed Executed by the controller to execute the method of any one of the implementation manners of the first aspect to the first aspect.
本申请通过监控运动参数实现机器人的异常运动监控,大大的提高的异常检测的效率,以及从预防的角度出发来提高机器人的稳定性。This application monitors the abnormal motion of the robot by monitoring the motion parameters, greatly improving the efficiency of abnormal detection, and improving the stability of the robot from the perspective of prevention.
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。In order to explain the technical solutions of the embodiments of the present application more clearly, the drawings required in the description of the embodiments will be briefly introduced below.
图1是本申请实施例提供的一种运动检测方法的示意流程图;FIG. 1 is a schematic flowchart of a motion detection method provided by an embodiment of the present application;
图2是本申请另一实施例提供的一种运动检测方法的示意流程图;2 is a schematic flowchart of a motion detection method provided by another embodiment of the present application;
图3是本申请实施例提供的一种运动检测装置的示意性框图;3 is a schematic block diagram of a motion detection device provided by an embodiment of the present application;
图4是本申请实施例提供的一种运动检测装置的结构性框图;4 is a structural block diagram of a motion detection device provided by an embodiment of the present application;
图5是本申请实施例提供的一种机器人的结构示意图;5 is a schematic structural diagram of a robot provided by an embodiment of the present application;
图6是本申请实施例提供的一种机器人的底盘的结构示意图;6 is a schematic structural diagram of a robot chassis provided by an embodiment of the present application;
图7是本申请实施例提供的一种机器人的位姿示意图。7 is a schematic diagram of a pose of a robot provided by an embodiment of the present application.
本申请主要应用于机器人的运动检测装置,该运动检测装置可以是传统运动检测装置或者本申请第三实施例和第四实施例所描述的运动检测装置,机器人可以是传统的机器人或者是如本申请中的第五实施例所描述的机器人,本申请对此不做限制。当运动检测装置发送数据的时候,按照预设格式进行对数据的特性进行记录并传送,其中,数据的特性包括时间、地点、类型等。The present application is mainly applied to a motion detection device of a robot. The motion detection device may be a traditional motion detection device or the motion detection device described in the third and fourth embodiments of the present application. The robot may be a traditional robot or the The robot described in the fifth embodiment of the application is not limited in this application. When the motion detection device sends data, the characteristics of the data are recorded and transmitted according to a preset format, where the characteristics of the data include time, location, type, and so on.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application.
参见图1,是本申请实施例提供一种应用于机器人的运动检测方法的示意流程图,如图1所示运动检测方法可包括:1 is a schematic flowchart of a motion detection method applied to a robot according to an embodiment of the present application. As shown in FIG. 1, the motion detection method may include:
101:测量机器人的第一运动参数。101: Measure the first motion parameter of the robot.
在本申请实施例中,通过安装在机器人的质心处的测量装置来测量机器人的角速度,以及机器人的质心的线速度,以得到机器人的第一运动参数。其中,测量装置例如编码器等装置,编码器是一种可以采集线速度和角速度等运动数据,并将运动数据进行编制、转换为可用以通讯、传输和存储的信号形式的设备。质心指的是机器人的质量集中于一点的假想点,可以是机器人的底盘上的中心点,假设机器人的底盘是圆形,则质心为圆心,假设机器人的底盘是矩形,则质心为矩形的两条对角线的交点。In the embodiment of the present application, the angular velocity of the robot and the linear velocity of the centroid of the robot are measured by a measuring device installed at the centroid of the robot to obtain the first motion parameter of the robot. Among them, measuring devices such as encoders, etc. An encoder is a device that can collect motion data such as linear velocity and angular velocity, and compile and convert the motion data into a signal form that can be used for communication, transmission, and storage. The center of mass refers to the imaginary point where the mass of the robot is concentrated on one point, which can be the center point on the chassis of the robot. Assuming that the chassis of the robot is circular, the centroid is the center of the circle. Assuming that the chassis of the robot is rectangular, the center of mass is the two of the rectangle. The intersection of diagonal lines.
需要说明的是,由于测量装置安装在机器人的质心,于是测量装置可以同时测量质心的线速度和角速度,其中角速度指的是机器人在单位时间内所转的弧度即为角速度。线速度指的是机器人沿运动轨道的切线方向的移动速度。由于机器人进行曲线运动的时候,机器人上的每一点的角速度都是相等的,而机器人上的不同点的线速度可能相等,可能不相等,这是因为机器人上的任意一点的线速度取决于该点到瞬心的距离,距离越远线速度越大,于是机器人上到瞬心的距离相同的点的线速度是相等的,反之则不相等。其中,瞬心为机器人在曲线运动的瞬时转动中心,可以理解为机器人在曲线运动的瞬间是绕着瞬心进行着圆周运动。It should be noted that, because the measuring device is installed in the center of mass of the robot, the measuring device can simultaneously measure the linear velocity and angular velocity of the center of mass, where the angular velocity refers to the radian that the robot rotates per unit time is the angular velocity. The linear speed refers to the moving speed of the robot along the tangential direction of the motion track. When the robot performs a curved motion, the angular velocity of each point on the robot is equal, and the linear velocity of different points on the robot may be equal or may not be equal, because the linear velocity of any point on the robot depends on the The distance from the point to the instantaneous center, the greater the distance, the greater the linear velocity, so the linear velocity of the point on the robot with the same distance to the instantaneous center is equal, otherwise it is not equal. Among them, the instantaneous center is the instantaneous rotation center of the robot in the curved motion, and it can be understood that the robot moves in a circular motion around the instantaneous center at the instant of the curved motion.
102:利用上述第一运动参数计算上述机器人的第二运动参数。102: Calculate the second motion parameter of the robot using the first motion parameter.
在本申请实施例中,利用上述第一运动参数计算上述机器人的第二运动该参数,其中,第二运动参数包括上述机器人的左前轮的线速度和右前轮的线速度,而该机器人的左前轮和右前轮的位于机器人的质心与瞬心的连接的直线上。In the embodiment of the present application, the first motion parameter is used to calculate the second motion parameter of the robot, wherein the second motion parameter includes the linear velocity of the left front wheel and the linear velocity of the right front wheel of the robot, and the robot The left front wheel and the right front wheel are located on the straight line connecting the robot's center of mass and instantaneous center.
具体的,利用第一运动参数计算左前轮和右前轮分别到瞬心的距离,即左前轮到瞬心的第一距离L1,以及右前轮到瞬心的第二距离L2;根据第一运动参数的角速度ω、第一距离L1和第二距离L2,计算得到左前轮的线速度VL与所述右前轮的线速度VR。Specifically, the distances between the left front wheel and the right front wheel to the instantaneous center are calculated using the first motion parameters, that is, the first distance L1 from the left front wheel to the instantaneous center, and the second distance L2 from the right front wheel to the instantaneous center; The angular velocity ω of the first motion parameter, the first distance L1 and the second distance L2 are calculated to obtain the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel.
更具体的,上述利用第一运动参数计算左前轮和右前轮分别到瞬心的距离指的是,根 据第一运动参数的角速度V和角速度ω计算质心与瞬心的距离r;获取预设的质心分别到左前轮和右前轮的距离;根据质心与瞬心的距离r,以及质心分别与左前轮和右前轮的距离T,计算左前轮和右前轮分别与瞬心的距离L1和L2,左前轮和右前轮位于所述质心与瞬心相连的直线上。More specifically, the above calculation of the distance between the left front wheel and the right front wheel to the instantaneous center using the first motion parameter refers to calculating the distance r between the center of mass and the instantaneous center according to the angular velocity V and the angular velocity ω of the first motion parameter; Set the distances of the center of mass to the left front wheel and the right front wheel; according to the distance r of the center of mass and the instant center, and the distance T of the center of mass to the left front wheel and the right front wheel, calculate the left front wheel and the right front wheel respectively. For the distances L1 and L2 of the center, the left front wheel and the right front wheel are located on a straight line connecting the center of mass and the instantaneous center.
在本申请实施例中,如图6所示机器人的底盘,包含该底盘的机器人正在在曲线运动的瞬间正在绕着瞬心M转动。该底盘的中心点(即为质心P)安装有测量机器人的第一运动参数的编码器,包含箭头的一条虚线指示了机器人的前进方向,在编码器的两侧包含左前轮和右前轮,左前轮的中心和右前轮的中心位于编码器的中心与瞬心的连接直线上,左前轮与编码器的距离T,以及右前轮与编码器的距离T是已知的固定值,在机器人出厂之前便已经被测量出来并存储在机器人的存储器中。In the embodiment of the present application, as shown in the chassis of the robot shown in FIG. 6, the robot including the chassis is rotating around the instant center M at the moment when the curve moves. The center point of the chassis (that is, the center of mass P) is equipped with an encoder that measures the first motion parameters of the robot. A dashed line containing an arrow indicates the direction of advancement of the robot, and the left and right front wheels are included on both sides of the encoder , The center of the left front wheel and the center of the right front wheel are located on the connecting line between the center of the encoder and the instant center, the distance T between the left front wheel and the encoder, and the distance T between the right front wheel and the encoder are known to be fixed The value is measured and stored in the robot's memory before the robot leaves the factory.
当编码器测量得到机器人的角速度以及质心的线速度之后,便可以计算质心P到瞬心M的距离,也即是机器人的转动半径r。然后再根据质心到瞬心的转动半径r,质心与左前轮的距离T,质心与右前轮的距离T可以计算得到左前轮到瞬心的第一距离L1,右前轮到瞬心的第二距离L2。具体的,机器人的角速度ω、质心的线速度V、左前轮的线速度VL、右前轮的线速度VR、左前轮与质心的距离T以及右前轮与质心的距离T存在函数关系,ω=V/r=VL/(r-T)=VR/(r+T)。After the encoder measures the angular velocity of the robot and the linear velocity of the center of mass, the distance from the center of mass P to the instantaneous center M can be calculated, which is the radius of rotation r of the robot. Then according to the rotation radius r of the center of mass to the instantaneous center, the distance T of the center of mass to the left front wheel, the distance T of the center of mass to the right front wheel can be calculated to the first distance L1 from the left front wheel to the instantaneous center, the right front wheel to the instantaneous center The second distance L2. Specifically, there is a functional relationship between the angular velocity ω of the robot, the linear velocity V of the center of mass, the linear velocity VL of the left front wheel, the linear velocity VR of the right front wheel, the distance T between the left front wheel and the center of mass, and the distance T between the right front wheel and the center of mass , Ω=V/r=VL/(rT)=VR/(r+T).
其中,V和ω由编码器测量得到,为已知的,T可以通过事先测量机器人的尺寸得到,于是也是已知的,而r可以由已知的V和ω计算得到,得到r了之后,便可以计算得到机器人的左前轮的VL和右前轮的VR。Among them, V and ω are measured by the encoder. It is known. T can be obtained by measuring the size of the robot in advance, so it is also known, and r can be calculated from the known V and ω. After r is obtained, Then you can calculate the VL of the left front wheel and the VR of the right front wheel.
需要说明的是,由于左前轮与右前轮分别与质心的距离是相等的,于是左前轮的线速度VL、右前轮的线速度VR以及质心的线速度V存在以下函数关系,V=(VL+VR)/2。It should be noted that since the distances between the left front wheel and the right front wheel are equal to the center of mass, the linear velocity VL of the left front wheel, the linear velocity VR of the right front wheel, and the linear velocity V of the center of mass have the following functional relationship, V = (VL+VR)/2.
可见,如图6所示,由于机器人的底盘上的两侧上还安装了左前轮和右前轮,且两个轮子上安装有独立驱动电机,于是两个轮子和编码器处的速度并非总是一致的,假设机器人在进行曲线运动时,机器人上的不同点根据离转弯的圆心的距离的长短不同,其速度不同。于是为了较准确的描述机器人的运动状态,除了需要获取机器人本体的线速度V和角速度ω以外,还需要获取机器人的左前轮的线速度VL和右前轮的线速度VR,而机器人上的各处的角速度都是一致的。利用先前测量得到的V和ω进行一系列的计算便可以得到计算得到机器人的左前轮线速度VL和右前轮线速度VR。It can be seen that, as shown in Figure 6, because the left front wheel and the right front wheel are also installed on both sides of the robot chassis, and the two wheels are equipped with independent drive motors, the speed at the two wheels and the encoder is not It is always the same. It is assumed that when the robot is performing a curved motion, different points on the robot have different speeds according to the length of the distance from the center of the circle. Therefore, in order to describe the motion state of the robot more accurately, in addition to the linear velocity V and the angular velocity ω of the robot body, the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel of the robot need to be acquired. The angular velocity is consistent everywhere. Using the previously measured V and ω to perform a series of calculations, the linear velocity of the left front wheel VL and the linear velocity of the right front wheel VR of the robot can be obtained.
可选的,采用另外一种方法来得到上述第一运动参数和上述第二运动参数。具体的,测量所述机器人的转速、所述左前轮的加速度和所述右前轮的加速度;根据所述转速计算得到机器人的第一运动参数的角速度;对所述左前轮的加速度和右前轮的加速度分别进行积分,得到所述机器人,以及所述机器人的第二运动参数的左前轮的线速度和右前轮的线速度;利用所述第二运动参数的左前轮的线速度和所述右前轮的线速度,计算所述质心的线速度,得到所述第一运动参数的线速度。Optionally, another method is used to obtain the first motion parameter and the second motion parameter. Specifically, the rotational speed of the robot, the acceleration of the left front wheel and the acceleration of the right front wheel are measured; the angular velocity of the first motion parameter of the robot is calculated according to the rotational speed; the acceleration and The acceleration of the right front wheel is integrated separately to obtain the linear velocity of the left front wheel and the right front wheel of the robot and the second motion parameter of the robot; the left front wheel using the second motion parameter The linear velocity and the linear velocity of the right front wheel are used to calculate the linear velocity of the center of mass to obtain the linear velocity of the first motion parameter.
在本申请实施例中,如图6所示左前轮和右前轮处都分别安装了加速器和陀螺传感器,其中,加速器用于给左前轮和右前轮提供动力以给左前轮和右前轮加速,并且加速器还可 以测量左前轮的加速度a1和右前轮处的加速度a2,陀螺传感器用于测量左前轮处的转速n1和右前轮处的转速n2,其中,左前轮的转速n1、右前轮的转速n2以及质心的转速n是相等的,于是可以得到质心的转速度n。然后对左前轮的加速度a1和右前轮的加速度a2分别进行积分,便可以计算得到左前轮的线速度VL和右前轮的线速度VR。并根据角速度ω和转速n之间的函数关系,ω·r=2πnr计算得到角速度ω,其中,π=3.1415926...。In the embodiment of the present application, as shown in FIG. 6, accelerators and gyro sensors are installed at the left and right front wheels, respectively, where the accelerator is used to provide power to the left and right front wheels to power the left and right wheels. The right front wheel accelerates, and the accelerator can also measure the acceleration a1 of the left front wheel and the acceleration a2 of the right front wheel. The gyro sensor is used to measure the rotation speed n1 of the left front wheel and the rotation speed n2 of the right front wheel. The rotation speed n1 of the wheel, the rotation speed n2 of the right front wheel, and the rotation speed n of the center of mass are equal, so that the rotation speed n of the center of mass can be obtained. Then, the acceleration a1 of the left front wheel and the acceleration a2 of the right front wheel are respectively integrated, and the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel can be calculated. According to the functional relationship between the angular velocity ω and the rotation speed n, ω·r=2πnr calculates the angular velocity ω, where π=3.1415926...
103:将上述第一运动参数和上述第二运动参数分别与对应的阈值范围进行比较。103: Compare the first motion parameter and the second motion parameter to the corresponding threshold range, respectively.
在本申请实施例中,在上述步骤中得到包含机器人的角速度ω和质心的线速度V的第一运动参数,以及包含左前轮的线速度VL和右前轮的线速度VR的第二运动参数之后,获取每个运动参数分别对应的阈值范围,机器人的角速度ω对应的阈值范围[ωmin,ωmax],质心的线速度V对应的阈值范围[V min,V max],左前轮的线速度VL对应的阈值范围[VL min,VL max],右前轮对应的阈值范围[VR min,VR max],其中ωmin表示机器人的最小角速度,ωmax表示机器人的最大角速度,V min表示机器人的质心的最小线速度,V max表示机器人的质心的最大线速度,VL min表示左前轮的最小线速度,VL max表示左前轮的最大线速度,VR min表示右前轮的最小线速度,VR max表示右前轮的最大线速度。In the embodiment of the present application, the first motion parameter including the angular velocity ω of the robot and the linear velocity V of the centroid, and the second motion including the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel are obtained in the above steps After the parameters, obtain the threshold ranges corresponding to each motion parameter, the threshold range [ωmin, ωmax] corresponding to the angular velocity ω of the robot, the threshold range [Vmin, Vmax] corresponding to the linear velocity V of the center of mass, the line of the left front wheel The threshold range corresponding to the speed VL [VL min, VL max], the threshold range corresponding to the right front wheel [VR min, VR max], where ωmin represents the minimum angular velocity of the robot, ωmax represents the maximum angular velocity of the robot, and Vmin represents the centroid of the robot The minimum linear velocity, Vmax represents the maximum linear velocity of the robot's center of mass, VLmin represents the minimum linear velocity of the left front wheel, VLmax represents the maximum linear velocity of the left front wheel, VRmin represents the minimum linear velocity of the right front wheel, VR max represents the maximum linear velocity of the front right wheel.
104:若上述第一运动参数和上述第二运动参数中,存在任意一个运动参数不在对应的阈值范围内,则提示第一警示信息。104: If any one of the first motion parameter and the second motion parameter is not within the corresponding threshold range, the first warning message is prompted.
在本申请实施例中,当机器人的角速度ω、线速度V、左前轮的线速度VL和右前轮的线速度VR中的任意一个运动参数不在其对应的阈值范围内时,则判断机器人运动异常,并提示第一警示信息。其中,第一警示信息用于表示机器人运动不稳定,第一警示信息包含机器人出现异常的运动参数,提示的方式包括在显示屏上显示该第一警示信息,或者用语音的方式提示该第一警示信息,或者用灯光的方式提示该第一警示信息,本申请对提示警示信息的方式不做限定。In the embodiment of the present application, when any of the motion parameters of the angular velocity ω of the robot, the linear velocity V, the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel are not within their corresponding threshold ranges, the robot is judged Abnormal movement, and prompt the first warning message. Among them, the first warning information is used to indicate that the robot motion is unstable. The first warning information includes abnormal motion parameters of the robot. The method of prompting includes displaying the first warning information on the display screen, or prompting the first warning information by voice The warning information, or the first warning information is prompted by means of light, and the method of prompting the warning information is not limited in this application.
具体的,当VL≤VL min或VL≥VL max,判断移动机器人运动状态出现异常状况;当VR≤VR min或VR≥VR max,判断移动机器人运动状态出现异常状况;当V≤V min或V≥V max,判断移动机器人运动状态出现异常状况;当ω≤ωmin或ω≥ωmax,判断移动机器人运动状态出现异常状况。Specifically, when VL ≤ VL min or VL ≥ VL max, it is judged that the mobile robot has an abnormal state in motion; when VR ≤ VR min or VR ≥ VR max, it is judged that the mobile robot has an abnormal state in motion; when V ≤ Vmin or V ≥VMax, to judge the abnormal state of the mobile robot's motion state; when ω≤ωmin or ω≥ωmax, to judge the abnormal state of the mobile robot's motion state.
进一步的,上述测量机器人的第一运动参数之后,根据第一运动参数计算机器人的位姿,位姿包括机器人的位置和偏转角度,位置包括水平位移距离和垂直位移距离;根据位姿判断机器人是否在运行轨迹上;若确定机器人不在运行轨迹上,则提示第二警示信息。Further, after measuring the first motion parameter of the robot, the posture of the robot is calculated according to the first motion parameter, the posture includes the position and deflection angle of the robot, and the position includes the horizontal displacement distance and the vertical displacement distance; On the running track; if it is determined that the robot is not on the running track, a second warning message is prompted.
在本申请实施例中,除了通过监测机器人的第一运动参数和第二运动参数是否不在对应的阈值范围,来监测机器人的运动是否出现异常以外,还通过监测机器人的位姿来监测机器人的运动是否出现异常。在得到上述第一运动参数之后,利用第一运动参数计算机器人的位姿,位姿用于描述机器人的运行姿态,包括机器人的位置以及偏转方向,而位置则包括机器人的水平位移距离和垂直位移距离,然后根据机器人的位姿判断机器人是否在运行轨迹上,若确定机器人不在运行轨迹上,则提示第二警示信息。其中,第二警示信息包含位姿中出现异常的运动参数,而提示第二警示信息的方式可以参考第一警示信息的提示 方式,此处不再赘述。In the embodiment of the present application, in addition to monitoring whether the first and second motion parameters of the robot are not within the corresponding threshold range to monitor whether the motion of the robot is abnormal, the motion of the robot is also monitored by monitoring the posture of the robot Is there any abnormality? After obtaining the above first motion parameters, the first motion parameters are used to calculate the robot's posture, which is used to describe the robot's running posture, including the robot's position and deflection direction, and the position includes the robot's horizontal displacement distance and vertical displacement Distance, and then judge whether the robot is on the running track according to the posture of the robot. If it is determined that the robot is not on the running track, a second warning message is prompted. Wherein, the second warning information includes abnormal motion parameters in the posture, and the method of prompting the second warning information can refer to the prompting method of the first warning information, which will not be repeated here.
具体的,上述根据所述第一运动参数计算所述机器人的位姿指的是,利用第一运动参数计算机器人的瞬时偏转角度,在水平方向上的瞬时水平速度,以及在垂直方向上的瞬时垂直速度;将瞬时偏转角度、瞬时水平速度和瞬时垂直速度分别进行积分,得到机器人的偏转角度,水平位移距离,以及垂直位移距离。参考图7,用(x,y)和夹角θ来描述机器人的位姿(x,y,θ),其中(x,y)表示移动机器人相对世界坐标的位置(平移分量),x表示机器人的水平位移距离,y表示机器人的垂直位移距离,θ表示机器人前进方向相对于x轴的偏转角度。Specifically, the above calculation of the position and posture of the robot based on the first motion parameter refers to the calculation of the instantaneous deflection angle of the robot, the instantaneous horizontal speed in the horizontal direction, and the instantaneous in the vertical direction using the first motion parameter Vertical speed; Integrate the instantaneous deflection angle, instantaneous horizontal speed and instantaneous vertical speed separately to get the deflection angle, horizontal displacement distance and vertical displacement distance of the robot. Referring to FIG. 7, (x, y) and angle θ are used to describe the robot's pose (x, y, θ), where (x, y) represents the position of the mobile robot relative to world coordinates (translation component), and x represents the robot Is the horizontal displacement distance, y represents the vertical displacement distance of the robot, and θ represents the deflection angle of the robot's advancing direction relative to the x axis.
在本申请实施例中,上述通过第一运动参数计算机器人的位姿指的是,获取第一运动参数来计算机器人的瞬时偏转角度、瞬时水平速度和瞬时垂直速度,其中,瞬时偏转角度为机器人在瞬间所偏转的角度,瞬时水平速度为机器人在水平上瞬间的移动速度,瞬时垂直速度为机器人在垂直方向上瞬时的移动速度。实际上,瞬时偏转角度即机器人的角速度。第一运动参数中的线速度v和角速度ω与机器人的瞬时偏转角度W、瞬时水平速度Vx和瞬时垂直速度Vy之间存在函数关系如下:In the embodiment of the present application, the above calculation of the pose of the robot through the first motion parameter refers to obtaining the first motion parameter to calculate the instantaneous deflection angle, instantaneous horizontal speed, and instantaneous vertical speed of the robot, where the instantaneous deflection angle is the robot In the angle deflected at the instant, the instantaneous horizontal speed is the instantaneous moving speed of the robot in the horizontal direction, and the instantaneous vertical speed is the instantaneous moving speed of the robot in the vertical direction. In fact, the instantaneous deflection angle is the angular velocity of the robot. There is a functional relationship between the linear velocity v and the angular velocity ω in the first motion parameter and the instantaneous deflection angle W of the robot, the instantaneous horizontal velocity Vx and the instantaneous vertical velocity Vy as follows:
具体的,上述根据位姿判断机器人是否在运行轨迹上,指的是,根据机器人的位置判断机器人是否在运行轨道;若机器人不在运行轨道上,则确定机器人不在运行轨迹上;若机器人在运行轨道上,则计算机器人在运行轨道上的位置的切线的偏转角度;判断机器人的偏转角度是否与切线的偏转角度一致;若机器人的偏转角度与切线的偏转角度不一致,则确定机器人不在运行轨迹上。Specifically, the above determination of whether the robot is on the running track according to the pose refers to determining whether the robot is on the running track according to the position of the robot; if the robot is not on the running track, it is determined that the robot is not on the running track; if the robot is on the running track Calculate the deflection angle of the tangent of the position of the robot on the running track; determine whether the deflection angle of the robot is consistent with the deflection angle of the tangent; if the deflection angle of the robot is not consistent with the deflection angle of the tangent, determine that the robot is not on the running trajectory.
在本申请实施例中,上述根据位姿判断机器人是否在运行轨迹上指的是,先根据机器人的位姿中的位置判断机器人是否在运行轨道上,运行轨道描述了机器人的运动范围,通过判断机器人是否在运动轨道上可以判断机器人是否在既定的运动范围内,若判断机器人不在运行轨道上,则说明机器人运行异常;若判断机器人在运行轨道上,则获取机器人的位姿中的偏转角度,以及机器人在上述运行轨道上的位置的切线的偏转角度,若机器人的偏转角度是否与切线的偏转角度是否一致,若一致则说明机器人在运行轨迹上,反之则预判机器人将脱离运行轨道,于是确定机器人不在运行轨迹上,其中,运行轨迹描述了机器人的运行范围以及在每个位置上的偏转角度。In the embodiment of the present application, the above judgment of whether the robot is on the running track according to the pose refers to first determining whether the robot is on the running track according to the position in the pose of the robot. The running track describes the movement range of the robot. Whether the robot is on the motion track can determine whether the robot is within a predetermined range of motion. If it is determined that the robot is not on the running track, it indicates that the robot is operating abnormally; if it is determined that the robot is on the running track, the deflection angle in the pose of the robot is obtained, And the deflection angle of the tangent of the position of the robot on the above running track, if the deflection angle of the robot is consistent with the deflection angle of the tangent, if it is consistent, it means that the robot is on the running track, otherwise, it is predicted that the robot will leave the running track, so Make sure that the robot is not on the running trajectory, where the running trajectory describes the running range of the robot and the deflection angle at each position.
需要说明的是,上述运行轨道与上述运行轨迹的区别在于上述运行轨道描述了机器人的运动范围,而运行轨迹不仅描述了机器人可以运动的范围,还描述了机器人在运动范围的每个位置的偏转角度。于是,当机器人在运行轨道上时说明机器人在运行路线上,而当机器人在运行轨迹上时说明机器人按照运行路线行驶,且没有偏离运行路线的趋势。It should be noted that the difference between the above-mentioned running track and the above-mentioned running track is that the above-mentioned running track describes the range of motion of the robot, and the running track not only describes the range in which the robot can move, but also describes the deflection of the robot at each position of the range of motion. angle. Therefore, when the robot is on the running track, it means that the robot is on the running route, and when the robot is on the running track, it means that the robot is traveling along the running route, and there is no tendency to deviate from the running route.
需要说明的是,不论是直接测量得到第一运动参数的方法,还是由其他运动参数(例如左前轮和右前轮的转速和加速度)计算得到第一运动参数的方法,只要可以得到第一运 动参数都可以,本申请实施例不对第一运动参数的获取方法进行限定。It should be noted that, whether it is the method of directly measuring the first motion parameter, or the method of calculating the first motion parameter from other motion parameters (such as the rotation speed and acceleration of the left front wheel and the right front wheel), as long as the first Any motion parameter may be used, and the embodiment of the present application does not limit the method for acquiring the first motion parameter.
可选的,计算移动机器人的位姿的位置的方法还包括使用超声波传感器的信标的方法和使用室内全球定位系统(GPS,Global Positioning System)的方法。Optionally, the method of calculating the position of the pose of the mobile robot further includes a method of using a beacon of an ultrasonic sensor and a method of using an indoor global positioning system (GPS, Global Positioning System).
本申请实施例通过直接测量和运算的方式来得到机器人的多个运动参数,然后根据机器人的任意一个运动参数是否在对应的阈值范围内,来判断机器人是否处于异常运动状态,并在判断机器人出现异常的情况下,提示警示信息,以提醒客户和门店职员。于是本申请实施例在机器人异常运动造成严重的后果之前,通过实时监测机器人的多个运动参数来及时检测出机器人的异常运动状态,并提示管理人管采取相应措施,从而本申请实施例通过监控简单的运动参数便可以实现机器人的异常运动监控,大大的提高的异常检测的效率。The embodiment of the present application obtains multiple motion parameters of the robot through direct measurement and calculation, and then determines whether the robot is in an abnormal motion state according to whether any one of the motion parameters of the robot is within the corresponding threshold range, and then determines whether the robot appears In case of abnormality, alert information is reminded to remind customers and store staff. Therefore, the embodiment of the present application detects the abnormal motion state of the robot in time by monitoring multiple motion parameters of the robot in real time before prompting serious consequences of the abnormal motion of the robot, and prompts the management personnel to take corresponding measures, so that the embodiment of the present application monitors Simple motion parameters can realize the abnormal motion monitoring of the robot, greatly improving the efficiency of abnormal detection.
参见图2,是本申请实施例提供另一种运动检测方法的示意流程图,如图2所示运动检测方法可包括:2 is a schematic flowchart of another motion detection method provided by an embodiment of the present application. As shown in FIG. 2, the motion detection method may include:
201:测量机器人的第一运动参数。201: Measure the first motion parameter of the robot.
在本申请实施例中,通过安装在机器人的质心处的测量装置来测量机器人的角速度,以及机器人的质心的线速度,以得到机器人的第一运动参数。其中,测量装置例如编码器等装置,编码器是一种可以采集线速度和角速度等运动数据,并将运动数据进行编制、转换为可用以通讯、传输和存储的信号形式的设备。质心指的是机器人的质量集中于一点的假想点,可以是机器人的底盘上的中心点,假设机器人的底盘是圆形,则质心为圆心,假设机器人的底盘是矩形,则质心为矩形的两条对角线的交点。In the embodiment of the present application, the angular velocity of the robot and the linear velocity of the centroid of the robot are measured by a measuring device installed at the centroid of the robot to obtain the first motion parameter of the robot. Among them, measuring devices such as encoders, etc. An encoder is a device that can collect motion data such as linear velocity and angular velocity, and compile and convert the motion data into a signal form that can be used for communication, transmission, and storage. The center of mass refers to the imaginary point where the mass of the robot is concentrated on one point, which can be the center point on the chassis of the robot. Assuming that the chassis of the robot is circular, the centroid is the center of the circle. Assuming that the chassis of the robot is rectangular, the center of mass is the two of the rectangle. The intersection of diagonal lines.
需要说明的是,由于测量装置安装在机器人的质心,于是测量装置可以同时测量质心的线速度和角速度,其中角速度指的是机器人在单位时间内所转的弧度即为角速度。线速度指的是机器人沿运动轨道的切线方向的移动速度。由于机器人进行曲线运动的时候,机器人上的每一点的角速度都是相等的,而机器人上的不同点的线速度可能一致,可以不一致,这是因为机器人上的任意一点的线速度取决于该点到瞬心的距离,距离越远线速度越大,于是机器人上到瞬心的距离相同的点的线速度是一致的,反之则不一致。其中,瞬心为机器人在曲线运动的瞬时转动中心,可以理解为机器人在曲线运动的瞬间是绕着转动中心进行着圆周运动。It should be noted that, because the measuring device is installed in the center of mass of the robot, the measuring device can simultaneously measure the linear velocity and angular velocity of the center of mass, where the angular velocity refers to the radian that the robot rotates per unit time is the angular velocity. The linear speed refers to the moving speed of the robot along the tangential direction of the motion track. When the robot performs a curved motion, the angular velocity of each point on the robot is equal, and the linear velocity of different points on the robot may be the same or may be inconsistent, because the linear velocity of any point on the robot depends on the point The distance to the instantaneous center, the greater the distance, the greater the linear velocity, so the linear velocity of the point on the robot with the same distance to the instantaneous center is consistent, otherwise it is inconsistent. Among them, the instantaneous center is the instantaneous rotation center of the robot in the curve motion, and it can be understood that the robot moves in a circular motion around the rotation center at the instant of the curve motion.
202:利用上述第一运动参数计算上述机器人的第二运动参数。202: Calculate the second motion parameter of the robot using the first motion parameter.
在本申请实施例中,利用上述第一运动参数计算上述机器人的第二运动该参数,其中,第二运动参数包括上述机器人的左前轮的线速度和右前轮的线速度,而该机器人的左前轮和右前轮的位于机器人的质心与瞬心的连接的直线上。In the embodiment of the present application, the first motion parameter is used to calculate the second motion parameter of the robot, wherein the second motion parameter includes the linear velocity of the left front wheel and the linear velocity of the right front wheel of the robot, and the robot The left front wheel and the right front wheel are located on the straight line connecting the robot's center of mass and instantaneous center.
具体的,利用第一运动参数计算左前轮和右前轮分别到瞬心的距离,即左前轮到瞬心的第一距离L1,以及右前轮到瞬心的第二距离L2;根据第一运动参数的角速度ω、第一距离L1和第二距离L2,计算得到左前轮的线速度VL与所述右前轮的线速度VR。Specifically, the distances between the left front wheel and the right front wheel to the instantaneous center are calculated using the first motion parameters, that is, the first distance L1 from the left front wheel to the instantaneous center, and the second distance L2 from the right front wheel to the instantaneous center; The angular velocity ω of the first motion parameter, the first distance L1 and the second distance L2 are calculated to obtain the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel.
更具体的,上述利用第一运动参数计算左前轮和右前轮分别到瞬心的距离指的是,根据第一运动参数的角速度V和角速度ω计算质心与瞬心的距离r;获取预设的质心分别到 左前轮和右前轮的距离;根据质心与瞬心的距离r,以及质心分别与左前轮和右前轮的距离T,计算左前轮和右前轮分别与瞬心的距离L1和L2,左前轮和右前轮位于所述质心与瞬心相连的直线上。More specifically, the above calculation of the distance between the left front wheel and the right front wheel to the instantaneous center using the first motion parameter refers to calculating the distance r between the center of mass and the instantaneous center according to the angular velocity V and the angular velocity ω of the first motion parameter; Set the distances of the center of mass to the left front wheel and the right front wheel; according to the distance r of the center of mass and the instant center, and the distance T of the center of mass to the left front wheel and the right front wheel, calculate the left front wheel and the right front wheel respectively. For the distances L1 and L2 of the center, the left front wheel and the right front wheel are located on a straight line connecting the center of mass and the instantaneous center.
在本申请实施例中,如图6所示机器人的底盘,包含该底盘的机器人正在在曲线运动的瞬间正在绕着瞬心M转动。该底盘的中心点(即为质心P)安装有测量机器人的第一运动参数的编码器,包含箭头的一条虚线指示了机器人的前进方向,在编码器的两侧包含左前轮和右前轮,左前轮的中心和右前轮的中心位于编码器的中心与瞬心的连接直线上,左前轮与编码器的距离T,以及右前轮与编码器的距离T是已知的固定值,在机器人出厂之前便已经被测量出来并存储在机器人的存储器中。In the embodiment of the present application, as shown in the chassis of the robot shown in FIG. 6, the robot including the chassis is rotating around the instant center M at the moment when the curve moves. The center point of the chassis (that is, the center of mass P) is equipped with an encoder that measures the first motion parameters of the robot. A dashed line containing an arrow indicates the direction of advancement of the robot, and the left and right front wheels are included on both sides of the encoder , The center of the left front wheel and the center of the right front wheel are located on the connecting line between the center of the encoder and the instant center, the distance T between the left front wheel and the encoder, and the distance T between the right front wheel and the encoder are known to be fixed The value is measured and stored in the robot's memory before the robot leaves the factory.
当编码器测量得到机器人的角速度以及质心的线速度之后,便可以计算质心P到瞬心M的距离,也即是机器人的转动半径r。然后再根据质心到瞬心的转动半径r,质心到左前轮的距离T,质心到右前轮的距离T可以计算得到左前轮到瞬心的第一距离L1,右前轮到瞬心的第二距离L2。具体的,机器人的角速度ω、质心的线速度V、左前轮的线速度VL、右前轮的线速度VR、左前轮与质心的距离T以及右前轮与质心的距离T存在函数关系,ω=V/r=VL/(r-T)=VR/(r+T)。After the encoder measures the angular velocity of the robot and the linear velocity of the center of mass, the distance from the center of mass P to the instantaneous center M can be calculated, which is the radius of rotation r of the robot. Then according to the rotation radius r of the center of mass to the instantaneous center, the distance T of the center of mass to the front left wheel, the distance T of the center of mass to the front right wheel can be calculated to the first distance L1 from the front left wheel to the center of instantaneous, the front right wheel to the center of instantaneous The second distance L2. Specifically, there is a functional relationship between the angular velocity ω of the robot, the linear velocity V of the center of mass, the linear velocity VL of the left front wheel, the linear velocity VR of the right front wheel, the distance T between the left front wheel and the center of mass, and the distance T between the right front wheel and the center of mass , Ω=V/r=VL/(rT)=VR/(r+T).
其中,V和ω由编码器测量得到,为已知的,T可以通过事先测量机器人的尺寸得到,于是也是已知的,而r可以由已知的V和ω计算得到,得到r了之后,便可以计算得到机器人的左前轮的VL和右前轮的VR。Among them, V and ω are measured by the encoder. It is known. T can be obtained by measuring the size of the robot in advance, so it is also known, and r can be calculated from the known V and ω. After r is obtained, Then you can calculate the VL of the left front wheel and the VR of the right front wheel.
需要说明的是,由于左前轮与右前轮分别与质心的距离是相等的,于是左前轮的线速度VL、右前轮的线速度VR以及质心的线速度V存在以下函数关系,V=(VL+VR)/2。It should be noted that since the distances between the left front wheel and the right front wheel are equal to the center of mass, the linear velocity VL of the left front wheel, the linear velocity VR of the right front wheel, and the linear velocity V of the center of mass have the following functional relationship, V = (VL+VR)/2.
可见,如图6所示,由于机器人的底盘上的两侧上还安装了左前轮和右前轮,且两个轮子上安装有独立驱动电机,于是两个轮子和编码器处的速度并非总是一致的,假设机器人在进行曲线运动时,机器人上的不同点根据离转弯的圆心的距离的长短不同,其速度不同。于是为了较准确的描述机器人的运动状态,除了需要获取机器人本体的线速度V和角速度ω以外,还需要获取机器人的左前轮的线速度VL和右前轮的线速度VR,而机器人上的各处的角速度都是一致的。利用先前测量得到的V和ω进行一系列的计算便可以得到计算得到机器人的左前轮线速度VL和右前轮线速度VR。It can be seen that, as shown in Figure 6, because the left front wheel and the right front wheel are also installed on both sides of the robot chassis, and the two wheels are equipped with independent drive motors, the speed at the two wheels and the encoder is not It is always the same. It is assumed that when the robot is performing a curved motion, different points on the robot have different speeds according to the length of the distance from the center of the circle. Therefore, in order to describe the motion state of the robot more accurately, in addition to the linear velocity V and the angular velocity ω of the robot body, the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel of the robot need to be acquired. The angular velocity is consistent everywhere. Using the previously measured V and ω to perform a series of calculations, the linear velocity of the left front wheel VL and the linear velocity of the right front wheel VR of the robot can be obtained.
可选的,采用另外一种方法来得到上述第一运动参数和上述第二运动参数。具体的,测量所述机器人的转速、所述左前轮的加速度和所述右前轮的加速度;根据所述转速计算得到机器人的第一运动参数的角速度;对所述左前轮的加速度和右前轮的加速度分别进行积分,得到所述机器人,以及所述机器人的第二运动参数的左前轮的线速度和右前轮的线速度;利用所述第二运动参数的左前轮的线速度和所述右前轮的线速度,计算所述质心的线速度,得到所述第一运动参数的线速度。Optionally, another method is used to obtain the first motion parameter and the second motion parameter. Specifically, the rotational speed of the robot, the acceleration of the left front wheel and the acceleration of the right front wheel are measured; the angular velocity of the first motion parameter of the robot is calculated according to the rotational speed; the acceleration and The acceleration of the right front wheel is integrated separately to obtain the linear velocity of the left front wheel and the right front wheel of the robot and the second motion parameter of the robot; the left front wheel using the second motion parameter The linear velocity and the linear velocity of the right front wheel are used to calculate the linear velocity of the center of mass to obtain the linear velocity of the first motion parameter.
在本申请实施例中,如图6所示左前轮和右前轮处都分别安装了加速器和陀螺传感器,其中,加速器用于给左前轮和右前轮提供动力以给左前轮和右前轮加速,并且加速器还可以测量左前轮的加速度a1和右前轮处的加速度a2,陀螺传感器用于测量左前轮处的转速n1 和右前轮处的转速n2,其中,左前轮的转速n1、右前轮的转速n2以及质心的转速n是相等的,于是可以得到质心的转速度n。然后对左前轮的加速度a1和右前轮的加速度a2分别进行积分,便可以计算得到左前轮的线速度VL和右前轮的线速度VR。并根据角速度ω和转速n之间的函数关系,ω·r=2πnr计算得到角速度ω,π=3.1415926...。In the embodiment of the present application, as shown in FIG. 6, accelerators and gyro sensors are installed at the left and right front wheels, respectively, where the accelerator is used to provide power to the left and right front wheels to power the left and right wheels. The right front wheel accelerates, and the accelerator can also measure the acceleration a1 of the left front wheel and the acceleration a2 of the right front wheel. The gyro sensor is used to measure the rotation speed n1 of the left front wheel and the rotation speed n2 of the right front wheel. The rotation speed n1 of the wheel, the rotation speed n2 of the right front wheel, and the rotation speed n of the center of mass are equal, so that the rotation speed n of the center of mass can be obtained. Then, the acceleration a1 of the left front wheel and the acceleration a2 of the right front wheel are respectively integrated, and the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel can be calculated. According to the functional relationship between the angular velocity ω and the rotation speed n, ω·r=2πnr calculates the angular velocity ω, π=3.1415926...
203:将上述第一运动参数和上述第二运动参数分别与对应的阈值范围进行比较。203: Compare the first motion parameter and the second motion parameter to the corresponding threshold range, respectively.
在本申请实施例中,在上述步骤中得到包含机器人的角速度ω和质心的线速度V的第一运动参数,以及包含左前轮的线速度VL和右前轮的线速度VR的第二运动参数之后,获取每个运动参数分别对应的阈值范围,机器人的角速度ω对应的阈值范围[ωmin,ωmax],质心的线速度V对应的阈值范围[V min,V max],左前轮的线速度VL对应的阈值范围[VL min,VL max],右前轮对应的阈值范围[VR min,VR max]。In the embodiment of the present application, the first motion parameter including the angular velocity ω of the robot and the linear velocity V of the centroid, and the second motion including the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel are obtained in the above steps After the parameters, obtain the threshold ranges corresponding to each motion parameter, the threshold range [ωmin, ωmax] corresponding to the angular velocity ω of the robot, the threshold range [Vmin, Vmax] corresponding to the linear velocity V of the center of mass, the line of the left front wheel The threshold range corresponding to the speed VL [VL min, VL max], and the threshold range corresponding to the right front wheel [VR min, VR max].
204:若上述第一运动参数和上述第二运动参数中,存在任意一个运动参数不在对应的阈值范围内,则提示第一警示信息。204: If any one of the first motion parameter and the second motion parameter is not within the corresponding threshold range, the first warning message is prompted.
在本申请实施例中,当机器人的角速度ω、线速度V、左前轮的线速度VL和右前轮的线速度VR中的任意一个运动参数不在其对应的阈值范围内时,则判断机器人运动异常,并提示第一警示信息。其中,第一警示信息包含机器人出现异常的运动参数,提示的方式包括在显示屏上显示该第一警示信息,或者用语音的方式提示该第一警示信息,或者用灯光的方式提示该第一警示信息,本申请对提示警示信息的方式不做限定。In the embodiment of the present application, when any of the motion parameters of the angular velocity ω of the robot, the linear velocity V, the linear velocity VL of the left front wheel and the linear velocity VR of the right front wheel are not within their corresponding threshold ranges, the robot is judged Abnormal movement, and prompt the first warning message. Among them, the first warning information contains abnormal motion parameters of the robot, and the prompting method includes displaying the first warning information on the display screen, or prompting the first warning information by voice, or prompting the first warning information by light Warning information, this application does not limit the way of warning information.
具体的,当VL≤VL min或VL≥VL max,判断移动机器人运动状态出现异常状况;当VR≤VR min或VR≥VR max,判断移动机器人运动状态出现异常状况;当V≤V min或V≥V max,判断移动机器人运动状态出现异常状况;当ω≤ωmin或ω≥ωmax,判断移动机器人运动状态出现异常状况。Specifically, when VL ≤ VL min or VL ≥ VL max, it is judged that the mobile robot has an abnormal state in motion; when VR ≤ VR min or VR ≥ VR max, it is judged that the mobile robot has an abnormal state in motion; when V ≤ Vmin or V ≥VMax, to judge the abnormal state of the mobile robot's motion state; when ω≤ωmin or ω≥ωmax, to judge the abnormal state of the mobile robot's motion state.
205:根据上述第一运动参数计算上述机器人的位姿。205: Calculate the posture of the robot according to the first motion parameter.
在本申请实施例中,除了通过监测机器人的第一运动参数和第二运动参数是否不在对应的阈值范围,来监测机器人的运动是否出现异常以外,还通过监测机器人的位姿来监测机器人的运动是否出现异常。在得到上述第一运动参数之后,利用第一运动参数计算机器人的位姿,位姿用于描述机器人的运行姿态,包括机器人的位置以及偏转方向,而位置则包括机器人的水平位移距离和垂直位移距离。In the embodiment of the present application, in addition to monitoring whether the first and second motion parameters of the robot are not within the corresponding threshold range to monitor whether the motion of the robot is abnormal, the motion of the robot is also monitored by monitoring the posture of the robot Is there any abnormality? After obtaining the above first motion parameters, the first motion parameters are used to calculate the robot's posture, which is used to describe the robot's running posture, including the robot's position and deflection direction, and the position includes the robot's horizontal displacement distance and vertical displacement distance.
具体的,上述根据所述第一运动参数计算所述机器人的位姿,指的是,利用第一运动参数计算机器人的瞬时偏转角度,在水平方向上的瞬时水平速度,以及在垂直方向上的瞬时垂直速度;将瞬时偏转角度、瞬时水平速度和瞬时垂直速度分别进行积分,得到机器人的偏转角度,水平位移距离,以及垂直位移距离。参考图7,用(x,y)和夹角θ来描述机器人的位姿(x,y,θ),其中(x,y)表示移动机器人相对世界坐标的位置(平移分量),θ表示机器人前进方向相对于x轴的偏转角度。Specifically, the above calculation of the position and posture of the robot based on the first motion parameter refers to the use of the first motion parameter to calculate the instantaneous deflection angle of the robot, the instantaneous horizontal speed in the horizontal direction, and the vertical Instantaneous vertical speed; integrate the instantaneous deflection angle, instantaneous horizontal speed and instantaneous vertical speed respectively to obtain the deflection angle, horizontal displacement distance and vertical displacement distance of the robot. Referring to FIG. 7, (x, y) and angle θ are used to describe the robot's posture (x, y, θ), where (x, y) represents the position of the mobile robot relative to the world coordinates (translation component), and θ represents the robot The deflection angle of the advancing direction relative to the x axis.
在本申请实施例中,上述通过第一运动参数计算机器人的位姿指的是,获取第一运动参数来计算机器人的瞬时偏转角度、瞬时水平速度和瞬时垂直速度,其中,瞬时偏转角度为机器人在瞬间所偏转的角度,瞬时水平速度为机器人在水平上瞬间的移动速度,瞬时垂 直速度为机器人在垂直方向上瞬时的移动速度。实际上,瞬时偏转角度即机器人的角速度。第一运动参数中的线速度ν和角速度ω与机器人的瞬时偏转角度W、瞬时水平速度Vx和瞬时垂直速度Vy之间存在函数关系如下:In the embodiment of the present application, the above calculation of the pose of the robot through the first motion parameter refers to obtaining the first motion parameter to calculate the instantaneous deflection angle, instantaneous horizontal speed, and instantaneous vertical speed of the robot, where the instantaneous deflection angle is the robot In the angle deflected at the instant, the instantaneous horizontal speed is the instantaneous moving speed of the robot in the horizontal direction, and the instantaneous vertical speed is the instantaneous moving speed of the robot in the vertical direction. In fact, the instantaneous deflection angle is the angular velocity of the robot. There is a functional relationship between the linear velocity ν and the angular velocity ω in the first motion parameter and the instantaneous deflection angle W of the robot, the instantaneous horizontal velocity Vx and the instantaneous vertical velocity Vy as follows:
206:根据上述位姿判断上述机器人是否在运行轨迹上。206: Determine whether the robot is on the running track according to the pose.
在本申请实施例中,在得到上述机器人的位姿之后,根据机器人的位姿判断机器人是否在运行轨迹上。具体的,上述根据位姿判断机器人是否在运行轨迹上,指的是,根据机器人的位置判断机器人是否在运行轨道;若机器人不在运行轨道上,则确定机器人不在运行轨迹上;若机器人在运行轨道上,则计算机器人在运行轨道上的位置的切线的偏转角度;判断机器人的偏转角度是否与切线的偏转角度一致;若机器人的偏转角度与切线的偏转角度不一致,则确定机器人不在运行轨迹上。In the embodiment of the present application, after the posture of the robot is obtained, it is determined whether the robot is on the running track according to the posture of the robot. Specifically, the above determination of whether the robot is on the running track according to the pose refers to determining whether the robot is on the running track according to the position of the robot; if the robot is not on the running track, it is determined that the robot is not on the running track; if the robot is on the running track Calculate the deflection angle of the tangent of the position of the robot on the running track; determine whether the deflection angle of the robot is consistent with the deflection angle of the tangent; if the deflection angle of the robot is not consistent with the deflection angle of the tangent, determine that the robot is not on the running trajectory.
在本申请实施例中,上述根据位姿判断机器人是否在运行轨迹上指的是,先根据机器人的位姿中的位置判断机器人是否在运行轨道上,运行轨道描述了机器人的运动范围,通过判断机器人是否在运动轨道上可以判断机器人是否在既定的运动范围内,若判断机器人不在运行轨道上,则说明机器人运行异常;若判断机器人在运行轨道上,则获取机器人的位姿中的偏转角度,以及机器人在上述运行轨道上的位置的切线的偏转角度,若机器人的偏转角度是否与切线的偏转角度是否一致,若一致则说明机器人在运行轨迹上,反之则预判机器人将脱离运行轨道,于是确定机器人不在运行轨迹上,其中,运行轨迹描述了机器人的运行范围以及在每个位置上的偏转角度。In the embodiment of the present application, the above determination of whether the robot is on the running track according to the pose refers to first determining whether the robot is on the running track according to the position in the pose of the robot. The running track describes the movement range of the robot. Whether the robot is on the motion track can determine whether the robot is within a predetermined range of motion. If it is determined that the robot is not on the running track, it indicates that the robot is operating abnormally; if it is determined that the robot is on the running track, the deflection angle in the pose of the robot is obtained, And the deflection angle of the tangent of the position of the robot on the above running track, if the deflection angle of the robot is consistent with the deflection angle of the tangent, if it is consistent, it means that the robot is on the running track, otherwise, it is predicted that the robot will leave the running track, so Make sure that the robot is not on the running trajectory, where the running trajectory describes the running range of the robot and the deflection angle at each position.
需要说明的是,上述运行轨道与上述运行轨迹的区别在于上述运行轨道描述了机器人的运动范围,而运行轨迹不仅描述了机器人可以运动的范围,还描述了机器人在运动范围的每个位置的偏转角度。于是,当机器人在运行轨道上时说明机器人在运行路线上,而当机器人在运行轨迹上时说明机器人按照运行路线行驶,且没有偏离运行路线的趋势。It should be noted that the difference between the above-mentioned running track and the above-mentioned running track is that the above-mentioned running track describes the range of motion of the robot, and the running track not only describes the range in which the robot can move, but also describes the deflection of the robot at each position of the range of motion. angle. Therefore, when the robot is on the running track, it means that the robot is on the running route, and when the robot is on the running track, it means that the robot is traveling along the running route, and there is no tendency to deviate from the running route.
需要说明的是,不论是直接测量得到第一运动参数的方法,还是由其他运动参数(例如左前轮和右前轮的转速和加速度)计算得到第一运动参数的方法,只要可以得到第一运动参数都可以,本申请实施例不对第一运动参数的获取方法进行限定。It should be noted that, whether it is the method of directly measuring the first motion parameter, or the method of calculating the first motion parameter from other motion parameters (such as the rotation speed and acceleration of the left front wheel and the right front wheel), as long as the first Any motion parameter may be used, and the embodiment of the present application does not limit the method for acquiring the first motion parameter.
可选的,计算移动机器人的位姿的位置的方法还包括使用超声波传感器的信标的方法和使用室内全球定位系统(GPS,Global Positioning System)的方法。Optionally, the method of calculating the position of the pose of the mobile robot further includes a method of using a beacon of an ultrasonic sensor and a method of using an indoor global positioning system (GPS, Global Positioning System).
207:若判断上述机器人不在运行轨迹上,则提示第二警示信息。207: If it is determined that the robot is not on the running track, a second warning message is prompted.
在本申请实施例中,若确定机器人不在运行轨迹上,则提示第二警示信息。其中,第二警示信息包含位姿中出现异常的运动参数,而提示第二警示信息的方式可以参考第一警示信息的提示方式。本申请实施例对警示信息的提示方式不作限定。In the embodiment of the present application, if it is determined that the robot is not on the running track, a second warning message is prompted. Wherein, the second warning information includes abnormal motion parameters in the posture, and the method of prompting the second warning information can refer to the prompting method of the first warning information. The embodiment of the present application does not limit the manner of prompting the warning information.
本申请实施例相比于上一个申请实例来说,除了通过对机器人的第一运动参数和第二运动参数进行监控之外,还对机器人的位姿进行监控,根据机器人的位姿来判断机器人是 否在运行轨迹上,若判断机器人不在运行轨迹上,则提示第二警示信息,以提醒管理人员采取相应的措施。可见,本申请实施例进一步的提高了对机器人的异常运动的检测效率。Compared with the previous application example, in the embodiment of the present application, in addition to monitoring the first motion parameter and the second motion parameter of the robot, the posture of the robot is also monitored, and the robot is judged according to the posture of the robot Whether it is on the running track or not, if it is judged that the robot is not on the running track, a second warning message is prompted to remind the manager to take corresponding measures. It can be seen that the embodiments of the present application further improve the detection efficiency of the abnormal movement of the robot.
需要说明的是,上文对各个实施例的描述倾向于强调各个实施例之间的不同之处,其相同或相似之处可以互相参考,为了简洁,本文不再赘述。It should be noted that the above description of the various embodiments tends to emphasize the differences between the various embodiments, and the same or similarities can refer to each other, and for the sake of brevity, they are not repeated here.
本申请实施例还提供一种运动检测装置,该运动检测装置用于执行前述任一项的运动检测方法的单元。具体地,参见图3,是本申请实施例提供的一种运动检测装置的示意框图。本实施例的运动检测装置包括:测量单元310、计算单元320、比较单元330以及提示单元340。具体的:An embodiment of the present application further provides a motion detection device, which is used for a unit that executes any one of the foregoing motion detection methods. Specifically, referring to FIG. 3, it is a schematic block diagram of a motion detection device provided by an embodiment of the present application. The motion detection device of this embodiment includes a measurement unit 310, a calculation unit 320, a comparison unit 330, and a prompt unit 340. specific:
测量单元310,用于测量机器人的第一运动参数,所述第一运动参数包括线速度和角速度,所述线速度为所述机器人的质心的线速度;The measuring unit 310 is configured to measure a first motion parameter of the robot, where the first motion parameter includes a linear velocity and an angular velocity, and the linear velocity is a linear velocity of the center of mass of the robot;
计算单元320,用于利用所述第一运动参数计算所述机器人的第二运动参数,所述第二运动参数包括所述机器人的左前轮的线速度和右前轮的线速度;The calculation unit 320 is configured to calculate a second motion parameter of the robot using the first motion parameter, and the second motion parameter includes a linear velocity of a left front wheel and a linear velocity of a right front wheel of the robot;
所述计算单元320,具体用于利用所述第一运动参数计算所述左前轮和所述右前轮分别到瞬心的距离;利用所述第一运动参数的角速度,以及所述左前轮和所述右前轮分别与瞬心的距离,计算得到所述左前轮的线速度与所述右前轮的线速度;The calculation unit 320 is specifically configured to calculate the distances from the left front wheel and the right front wheel to the instantaneous center using the first motion parameter; using the angular velocity of the first motion parameter and the left front The distance between the wheel and the right front wheel and the instant center, respectively, to calculate the linear velocity of the left front wheel and the linear velocity of the right front wheel;
所述计算单元320,更具体的用于根据所述第一运动参数计算所述质心到所述瞬心的转动半径;获取预设的所述质心分别到所述左前轮和所述右前轮的距离;根据所述质心到所述瞬心的转动半径,以及所述质心分别到所述左前轮和所述右前轮的距离,计算所述左前轮和所述右前轮分别到所述瞬心的第一距离和第二距离,所述左前轮和所述右前轮位于所述质心与所述瞬心相连的直线上;The calculation unit 320 is more specifically configured to calculate a radius of rotation from the center of mass to the instantaneous center according to the first motion parameter; obtain the preset center of mass to the left front wheel and the right front respectively The distance of the wheel; calculate the left front wheel and the right front wheel according to the turning radius of the center of mass to the instantaneous center, and the distances of the center of mass to the left front wheel and the right front wheel respectively A first distance and a second distance to the instant center, the left front wheel and the right front wheel are located on a straight line connecting the center of mass and the instant center;
比较单元330,用于将所述第一运动参数和所述第二运动参数分别与对应的阈值范围进行比较;The comparing unit 330 is configured to compare the first motion parameter and the second motion parameter with corresponding threshold ranges respectively;
提示单元340,用于若在所述第一运动参数和所述第二运动参数中,存在任意一个运动参数不在对应的阈值范围内,则提示第一警示信息。The prompting unit 340 is configured to prompt the first warning information if any one of the first motion parameter and the second motion parameter is not within the corresponding threshold range.
进一步的,所述计算单元320,还用于根据所述第一运动参数计算所述机器人的位姿,所述位姿包括所述机器人的位置和偏转角度,所述位置包括水平位移距离和垂直位移距离;所述运动检测装置还包括判断单元350,用于根据所述位姿判断所述机器人是否在运行轨迹上;所述提示单元340,还用于若确定所述机器人不在运行轨迹上,则提示第二警示信息,所述第二警示信息用于表示所述机器人不在运行轨迹上。Further, the calculation unit 320 is further configured to calculate a pose of the robot according to the first motion parameter, the pose includes a position and a deflection angle of the robot, and the position includes a horizontal displacement distance and a vertical Displacement distance; the motion detection device further includes a judging unit 350 for judging whether the robot is on the running track according to the posture; the prompting unit 340 is also used for determining that the robot is not on the running track, Then the second warning information is prompted, and the second warning information is used to indicate that the robot is not on the running track.
进一步的,所述计算单元320具体用于利用所述第一运动参数计算所述机器人的瞬时偏转角度,在水平方向上的瞬时水平速度,以及在垂直方向上的瞬时垂直速度;将所述瞬时偏转角度、所述瞬时水平速度和所述瞬时垂直速度分别进行积分,得到所述机器人的偏转角度,所述水平位移距离,以及所述垂直位移距离。Further, the calculation unit 320 is specifically configured to calculate the instantaneous deflection angle of the robot, the instantaneous horizontal velocity in the horizontal direction, and the instantaneous vertical velocity in the vertical direction using the first motion parameter; The deflection angle, the instantaneous horizontal speed and the instantaneous vertical speed are respectively integrated to obtain the deflection angle of the robot, the horizontal displacement distance, and the vertical displacement distance.
进一步的,所述判断单元350,具体用于根据所述机器人的位置判断所述机器人是否在运行轨道,所述运行轨道为预设的运行线路;若所述机器人不在所述运行轨道,则确定 所述机器人不在所述运行轨迹上;若所述机器人在所述运动轨迹上,则判断所述机器人的偏转角度是否与所述切线的偏转角度一致;若所述机器人的偏转角度与所述切线的偏转角度不一致,则确定所述机器人不在所述运行轨迹上。Further, the judging unit 350 is specifically configured to judge whether the robot is on a running track according to the position of the robot, and the running track is a preset running line; if the robot is not on the running track, determine The robot is not on the running trajectory; if the robot is on the motion trajectory, it is determined whether the deflection angle of the robot is consistent with the tangent angle of the tangent; if the deflection angle of the robot is consistent with the tangent If the deflection angles are not consistent, it is determined that the robot is not on the running track.
进一步的,所述计算单元320,还用于若所述机器人在所述运行轨道上,则计算所述机器人在所述运行轨道上的位置的切线的偏转角度。Further, the calculation unit 320 is further configured to calculate the deflection angle of the tangent of the position of the robot on the running track if the robot is on the running track.
进一步的,所述测量单元310,还用于测量所述机器人的转速、所述左前轮的加速度和所述右前轮的加速度。Further, the measuring unit 310 is also used to measure the rotation speed of the robot, the acceleration of the left front wheel and the acceleration of the right front wheel.
进一步的,所述计算单元320,还用于根据所述转速计算得到机器人的第一运动参数的角速度;对所述左前轮的加速度和右前轮的加速度分别进行积分,得到所述机器人的第二运动参数的左前轮的线速度和右前轮的线速度;利用所述第二运动参数的左前轮的线速度和所述右前轮的线速度,计算所述质心的线速度,得到所述第一运动参数的线速度。Further, the calculation unit 320 is further configured to calculate the angular velocity of the first motion parameter of the robot according to the rotation speed; integrate the acceleration of the left front wheel and the acceleration of the right front wheel respectively to obtain the robot’s The linear velocity of the left front wheel and the linear velocity of the right front wheel of the second motion parameter; using the linear velocity of the left front wheel and the linear velocity of the right front wheel of the second motion parameter, the linear velocity of the centroid is calculated To obtain the linear velocity of the first motion parameter.
本申请实施例通过测量单元310和计算单元320来得到机器人的多个运动参数,然后比较单元330根据机器人的任意一个运动参数是否在对应的阈值范围内,来判断机器人是否处于异常运动状态,并在判断机器人出现异常的情况下,通过提示单元340提示警示信息,以提醒客户和门店职员。于是本申请实施例在机器人异常运动造成严重的后果之前,通过实时监测机器人的多个运动参数来及时检测出机器人的异常运动状态,并提示管理人管采取相应措施,从而本申请实施例通过监控简单的运动参数便可以实现机器人的异常运动监控,大大的提高的异常检测的效率。In the embodiment of the present application, the measurement unit 310 and the calculation unit 320 are used to obtain multiple motion parameters of the robot, and then the comparison unit 330 determines whether the robot is in an abnormal motion state according to whether any one of the motion parameters of the robot is within a corresponding threshold range, and In the case where it is judged that the robot is abnormal, the warning information is prompted by the prompting unit 340 to remind the customer and the store staff. Therefore, the embodiment of the present application detects the abnormal motion state of the robot in time by monitoring multiple motion parameters of the robot in real time before prompting serious consequences of the abnormal motion of the robot, and prompts the management personnel to take corresponding measures, so that the embodiment of the present application monitors Simple motion parameters can realize the abnormal motion monitoring of the robot, greatly improving the efficiency of abnormal detection.
参见图4,是本申请另一实施例提供的一种运动检测装置示意框图。如图所示的本实施例中的运动检测装置可以包括:编码器410、处理器420和显示器430。上述编码器410、处理器420和显示器430通过总线440连接。具体的:4 is a schematic block diagram of a motion detection device according to another embodiment of the present application. As shown in the figure, the motion detection device in this embodiment may include: an encoder 410, a processor 420, and a display 430. The encoder 410, the processor 420, and the display 430 are connected through a bus 440. specific:
编码器410,用于执行测量单元310的功能,用于测量机器人的第一运动参数,所述第一运动参数包括线速度和角速度,所述线速度为所述机器人的质心的线速度;The encoder 410 is used to perform the function of the measuring unit 310 for measuring a first motion parameter of the robot, where the first motion parameter includes a linear velocity and an angular velocity, and the linear velocity is a linear velocity of the center of mass of the robot;
处理器420,用于执行计算单元320的功能,用于利用所述第一运动参数计算所述机器人的第二运动参数,所述第二运动参数包括所述机器人的左前轮线速度和右前轮线速度;还用于执行比较单元330的功能,还用于将所述第一运动参数和所述第二运动参数分别与对应的阈值范围进行比较;The processor 420 is configured to execute the function of the calculation unit 320 for calculating the second motion parameter of the robot using the first motion parameter, the second motion parameter including the linear velocity of the left front wheel of the robot and the right Front wheel linear speed; also used to perform the function of the comparing unit 330, and also used to compare the first motion parameter and the second motion parameter with corresponding threshold ranges respectively;
上述处理器420,具体用于利用所述第一运动参数计算所述左前轮和所述右前轮分别到瞬心的距离;利用所述第一运动参数的角速度,以及所述左前轮和所述右前轮分别与瞬心的距离,计算得到所述左前轮的线速度与所述右前轮的线速度;The above processor 420 is specifically configured to calculate the distances from the left front wheel and the right front wheel to the instantaneous center using the first motion parameter; using the angular velocity of the first motion parameter and the left front wheel And the distance between the right front wheel and the instant center, respectively, to calculate the linear velocity of the left front wheel and the linear velocity of the right front wheel;
上述处理器420,更具体的用根据所述第一运动参数计算所述质心到所述瞬心的转动半径;获取预设的所述质心分别到所述左前轮和所述右前轮的距离;根据所述质心到所述瞬心的转动半径,以及所述质心分别到所述左前轮和所述右前轮的距离,计算所述左前轮和所述右前轮分别到所述瞬心的第一距离和第二距离,所述左前轮和所述右前轮位于所述质心与所述瞬心相连的直线上;The above processor 420 more specifically calculates the radius of rotation from the center of mass to the instantaneous center according to the first motion parameter; acquiring the preset center of mass to the left front wheel and the right front wheel respectively Distance; according to the radius of rotation from the center of mass to the instantaneous center, and the distance of the center of mass to the left front wheel and the right front wheel respectively, calculate the left front wheel and the right front wheel to all The first distance and the second distance of the instant center, the left front wheel and the right front wheel are located on a straight line connecting the center of mass and the instant center;
显示器430,用于执行显示单元340的功能,用于若所述第一运动参数和所述第二运动参数中,存在任意一个运动参数不在对应的阈值范围内,则提示第一警示信息。The display 430 is used to execute the function of the display unit 340, and is used to prompt the first warning information if any one of the first motion parameter and the second motion parameter is not within the corresponding threshold range.
进一步的,上述处理器420,还用于根据所述第一运动参数计算所述机器人的位姿,所述位姿包括所述机器人的位置和偏转角度,所述位置包括水平位移距离和垂直位移距离;上述处理器420,还用于执行判断单元350的功能,用于根据所述位姿判断所述机器人是否在运行轨迹上。Further, the above processor 420 is further configured to calculate the posture of the robot according to the first motion parameter, the posture includes a position and a deflection angle of the robot, and the position includes a horizontal displacement distance and a vertical displacement Distance; the above processor 420 is also used to execute the function of the judging unit 350, used to judge whether the robot is on the running track according to the pose.
上述显示器430,还用于若确定所述机器人不在运行轨迹上,则提示第二警示信息,所述第二警示信息用于表示所述机器人不在运行轨迹上。The above display 430 is also used to prompt second warning information if it is determined that the robot is not on the running track, and the second warning information is used to indicate that the robot is not on the running track.
进一步的,上述处理器420具体用于利用所述第一运动参数计算所述机器人的瞬时偏转角度,在水平方向上的瞬时水平速度,以及在垂直方向上的瞬时垂直速度;将所述瞬时偏转角度、所述瞬时水平速度和所述瞬时垂直速度分别进行积分,得到所述机器人的偏转角度,所述水平位移距离,以及所述垂直位移距离。Further, the above processor 420 is specifically used to calculate the instantaneous deflection angle of the robot, the instantaneous horizontal velocity in the horizontal direction, and the instantaneous vertical velocity in the vertical direction using the first motion parameter; deflect the instantaneous The angle, the instantaneous horizontal speed and the instantaneous vertical speed are respectively integrated to obtain the deflection angle of the robot, the horizontal displacement distance, and the vertical displacement distance.
进一步的,上述处理器420,具体用于根据所述机器人的位置判断所述机器人是否在运行轨道,所述运行轨道为预设的运行线路;若所述机器人不在所述运行轨道,则确定所述机器人不在所述运行轨迹上;若所述机器人在所述运行轨道上,则计算所述机器人在所述运行轨道上的位置的切线的偏转角度;判断所述机器人的偏转角度是否与所述切线的偏转角度一致;若所述机器人的偏转角度与所述切线的偏转角度不一致,则确定所述机器人不在所述运行轨迹上。Further, the processor 420 is specifically configured to determine whether the robot is on a running track according to the position of the robot, and the running track is a preset running line; if the robot is not on the running track, determine The robot is not on the running track; if the robot is on the running track, calculate the deflection angle of the tangent of the position of the robot on the running track; determine whether the deflection angle of the robot is the same as the The deflection angle of the tangent line is consistent; if the deflection angle of the robot does not match the deflection angle of the tangent line, it is determined that the robot is not on the running trajectory.
进一步的,所述运动检测装置还包括至少两个加速器450和两个陀螺传感器460,其中,陀螺传感器也用于执行测量单元310的功能,用于测量所述机器人的转速;加速器也用于执行测量单元310的功能,用于测量所述左前轮的加速度和所述右前轮的加速度。Further, the motion detection device further includes at least two accelerators 450 and two gyro sensors 460, wherein the gyro sensor is also used to perform the function of the measuring unit 310 to measure the rotational speed of the robot; the accelerator is also used to perform The function of the measuring unit 310 is to measure the acceleration of the left front wheel and the acceleration of the right front wheel.
进一步的,上述处理器420,还用于根据所述转速计算得到机器人的第一运动参数的角速度;对所述左前轮的加速度和右前轮的加速度分别进行积分,得到所述机器人的第二运动参数的左前轮的线速度和右前轮的线速度;利用所述第二运动参数的左前轮的线速度和所述右前轮的线速度,计算所述质心的线速度,得到所述第一运动参数的线速度。Further, the processor 420 is further used to calculate the angular velocity of the first motion parameter of the robot according to the rotation speed; integrate the acceleration of the left front wheel and the acceleration of the right front wheel respectively to obtain the first The linear velocity of the left front wheel and the linear velocity of the right front wheel of the second motion parameter; using the linear velocity of the left front wheel and the linear velocity of the right front wheel of the second motion parameter, calculating the linear velocity of the centroid, The linear velocity of the first motion parameter is obtained.
进一步的,上述运动检测装置还包括存储装置470,该存储器470用于存储计算机程序,所述计算机程序包括程序指令,所述处理器420被配置用于调用所述程序指令。其中,存储器包470含计算机非易失性可读存储介质,其特征在于,所述计算机非易失性可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器420执行时使所述处理器420执行。Further, the above-mentioned motion detection device further includes a storage device 470 for storing a computer program, the computer program includes program instructions, and the processor 420 is configured to call the program instructions. Wherein, the memory package 470 contains a computer non-volatile readable storage medium, characterized in that the computer non-volatile readable storage medium stores a computer program, the computer program includes program instructions, and the program instructions are treated as When the processor 420 executes, it causes the processor 420 to execute.
应当理解,在本申请实施例中,所称编码器410、处理器420和显示器430可以是中央处理单元(Central Processing Unit,CPU),该处理器420还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present application, the encoder 410, the processor 420, and the display 430 may be a central processing unit (Central Processing Unit, CPU), and the processor 420 may also be other general-purpose processors, digital signal processing (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete Hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
该存储器470可以包括只读存储器和随机存取存储器,并向处理器420提供指令和数据。存储器470的一部分还可以包括非易失性随机存取存储器。例如,存储器470还可以存储设备类型的信息。The memory 470 may include a read-only memory and a random access memory, and provide instructions and data to the processor 420. A portion of the memory 470 may also include non-volatile random access memory. For example, the memory 470 may also store device type information.
计算机非易失性可读存储介质可以是前述任一实施例的运动检测装置的内部存储单元,例如运动检测装置的硬盘或内存。计算机非易失性可读存储介质也可以是运动检测装置的外部存储设备,例如运动检测装置上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,计算机非易失性可读存储介质还可以既包括运动检测装置的内部存储单元也包括外部存储设备。计算机非易失性可读存储介质用于存储计算机程序以及运动检测装置所需的其他程序和数据。计算机非易失性可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer non-volatile readable storage medium may be an internal storage unit of the motion detection device of any of the foregoing embodiments, such as a hard disk or a memory of the motion detection device. The non-volatile computer-readable storage medium may also be an external storage device of the motion detection device, such as a plug-in hard disk equipped on the motion detection device, a smart memory card (Smart, Media, Card, SMC), and secure digital (SD) ) Card, flash card (Flash Card), etc. Further, the computer non-volatile readable storage medium may also include both an internal storage unit of the motion detection device and an external storage device. The computer non-volatile storage medium is used to store computer programs and other programs and data required by the motion detection device. Computer non-volatile storage media can also be used to temporarily store data that has been or will be output.
具体实现中,本申请实施例中所描述的处理器420可执行本申请实施例提供的运动检测方法的第一实施例和第二实施例中所描述的实现方式,也可执行本申请实施例所描述的运动检测装置的实现方式,在此不再赘述。In a specific implementation, the processor 420 described in the embodiments of the present application can execute the implementation methods described in the first and second embodiments of the motion detection method provided by the embodiments of the present application, and can also execute the embodiments of the present application The implementation of the described motion detection device will not be repeated here.
本申请另一实施例还提供了包含上述运动检测装置的机器人,如图5所示的机器人包含运动底盘、双喇叭、扬声器、高清显示屏、控制设备和通用处理器等,其中,上述运动底盘中包含上述运动检测装置的编码器410、加速器和旋转陀螺仪等,上述高清显示屏即上述显示器,上述通用处理器即上述处理器,上述控制设备向机器人发送控制信息,用于控制机器人运动和停止等运动,上述双喇叭和上述扬声器用于发出声音,可以和上述显示器430共同用于提示上述异常警示信息。如图5所示的机器人作为一种举例,本申请不对机器人的具体结构造成限定。Another embodiment of the present application further provides a robot including the above-mentioned motion detection device. The robot shown in FIG. 5 includes a sports chassis, dual speakers, speakers, high-definition display screens, control equipment, and a general-purpose processor. Includes the encoder 410, accelerator and rotating gyroscope of the motion detection device, the high-definition display screen is the display, the general-purpose processor is the processor, and the control device sends control information to the robot for controlling the robot motion and When the movement is stopped, the dual speakers and the speakers are used to emit sound, and can be used together with the display 430 to prompt the abnormal warning information. As an example, the robot shown in FIG. 5 does not limit the specific structure of the robot.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同运动检测方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art may realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two, in order to clearly explain the hardware and software. Interchangeability, in the above description, the composition and steps of each example have been generally described according to function. Whether these functions are executed in hardware or software depends on the specific application of the technical solution and design constraints. Professional technicians can use different motion detection methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的运动检测装置和单元的具体工作过程,可以参考前述运动检测方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and conciseness of the description, the specific working processes of the motion detection device and unit described above can refer to the corresponding processes in the foregoing motion detection method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的运动检测装置和运动检测方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, it should be understood that the disclosed motion detection device and motion detection method may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a division of logical functions. In actual implementation, there may be other divisions, for example, multiple units or components may be combined or integrated To another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be indirect couplings or communication connections through some interfaces, devices, or units, and may also be electrical, mechanical, or other forms of connection.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件 可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The above integrated unit can be implemented in the form of hardware or software function unit.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,运动检测装置,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。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 technical solution of the present application essentially or part of the contribution to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a storage medium In it, several instructions are included to enable a computer device (which may be a personal computer, a motion detection device, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .
Claims (20)
- 一种应用于机器人的运动检测方法,其特征在于,包括:A motion detection method applied to robots, characterized in that it includes:测量机器人的第一运动参数,所述第一运动参数包括线速度和角速度,所述线速度为所述机器人的质心的线速度;Measuring a first motion parameter of the robot, the first motion parameter including a linear velocity and an angular velocity, the linear velocity being a linear velocity of the center of mass of the robot;利用所述第一运动参数计算所述机器人的第二运动参数,所述第二运动参数包括所述机器人的左前轮的线速度和右前轮的线速度;Calculating the second motion parameter of the robot using the first motion parameter, the second motion parameter including the linear velocity of the left front wheel and the linear velocity of the right front wheel of the robot;将所述第一运动参数和所述第二运动参数分别与对应的阈值范围进行比较;Comparing the first motion parameter and the second motion parameter with corresponding threshold ranges respectively;若所述第一运动参数和所述第二运动参数中,存在任意一个运动参数不在对应的阈值范围内,则提示第一警示信息,所述第一警示信息用于表示所述机器人运动不稳定。If there is any one of the first motion parameter and the second motion parameter that is not within the corresponding threshold range, a first warning message is prompted, the first warning message is used to indicate that the robot motion is unstable .
- 根据权利要求1所述的方法,其特征在于,所述利用所述第一运动参数计算所述机器人的第二运动参数,包括:The method according to claim 1, wherein the calculation of the second motion parameter of the robot using the first motion parameter comprises:利用所述第一运动参数计算所述左前轮和所述右前轮分别到瞬心的距离;Calculating the distances from the left front wheel and the right front wheel to the instantaneous center by using the first motion parameter;利用所述第一运动参数的角速度,以及所述左前轮和所述右前轮分别与瞬心的距离,计算得到所述左前轮的线速度与所述右前轮的线速度。The linear velocity of the left front wheel and the right front wheel are calculated by using the angular velocity of the first motion parameter and the distance between the left front wheel and the right front wheel and the instantaneous center, respectively.
- 根据权利要求2所述的方法,其特征在于,所述利用所述第一运动参数计算所述左前轮和所述右前轮分别到瞬心的距离,包括:The method according to claim 2, wherein the calculating the distances from the left front wheel and the right front wheel to the instantaneous center using the first motion parameter respectively includes:根据所述第一运动参数计算所述质心到所述瞬心的转动半径;Calculating a radius of rotation from the center of mass to the instantaneous center according to the first motion parameter;获取预设的所述质心分别到所述左前轮和所述右前轮的距离;Obtaining the preset distances from the center of mass to the left front wheel and the right front wheel, respectively;根据所述质心到所述瞬心的转动半径,以及所述质心分别到所述左前轮和所述右前轮的距离,计算所述左前轮和所述右前轮分别到所述瞬心的第一距离和第二距离,所述左前轮和所述右前轮位于所述质心与所述瞬心相连的直线上。Calculate the distance from the left front wheel and the right front wheel to the instant according to the rotation radius of the center of mass to the instant center, and the distances of the center of mass to the left front wheel and the right front wheel respectively For the first distance and the second distance of the center, the left front wheel and the right front wheel are located on a straight line connecting the center of mass and the instantaneous center.
- 根据权利要求1所述的方法,其特征在于,所述测量机器人的第一运动参数之后,所述方法还包括:The method according to claim 1, wherein after measuring the first motion parameter of the robot, the method further comprises:根据所述第一运动参数计算所述机器人的位姿,所述位姿包括所述机器人的位置和偏转角度,所述位置包括水平位移距离和垂直位移距离;Calculating the posture of the robot according to the first motion parameter, the posture including a position and a deflection angle of the robot, the position including a horizontal displacement distance and a vertical displacement distance;根据所述位姿判断所述机器人是否在运行轨迹上;Determine whether the robot is on the running track according to the pose;若确定所述机器人不在运行轨迹上,则提示第二警示信息,所述第二警示信息用于表示所述机器人不在运行轨迹上。If it is determined that the robot is not on the running trajectory, second warning information is prompted, and the second warning information is used to indicate that the robot is not on the running trajectory.
- 根据权利要求4所述的方法,其特征在于,所述根据所述第一运动参数计算所述机器人的位姿,包括:The method according to claim 4, wherein the calculating the pose of the robot according to the first motion parameter comprises:利用所述第一运动参数计算所述机器人的瞬时偏转角度,在水平方向上的瞬时水平速度,以及在垂直方向上的瞬时垂直速度;Using the first motion parameter to calculate the instantaneous deflection angle of the robot, the instantaneous horizontal speed in the horizontal direction, and the instantaneous vertical speed in the vertical direction;将所述瞬时偏转角度、所述瞬时水平速度和所述瞬时垂直速度分别进行积分,得到所述机器人的偏转角度,所述水平位移距离,以及所述垂直位移距离。Integrating the instantaneous deflection angle, the instantaneous horizontal speed and the instantaneous vertical speed separately to obtain the deflection angle of the robot, the horizontal displacement distance, and the vertical displacement distance.
- 根据权利要求4所述的方法,其特征在于,所述根据所述位姿判断所述机器人是否 在运行轨迹上,包括:The method according to claim 4, wherein the judging whether the robot is on the running track according to the pose includes:根据所述机器人的位置判断所述机器人是否在运行轨道,所述运行轨道为预设的运行线路;Judging whether the robot is on a running track according to the position of the robot, and the running track is a preset running line;若所述机器人不在所述运行轨道,则确定所述机器人不在所述运行轨迹上;If the robot is not on the running track, it is determined that the robot is not on the running track;若所述机器人在所述运行轨道上,则计算所述机器人在所述运行轨道上的位置的切线的偏转角度;If the robot is on the running track, calculate the deflection angle of the tangent to the position of the robot on the running track;判断所述机器人的偏转角度是否与所述切线的偏转角度一致;Determine whether the deflection angle of the robot is consistent with the deflection angle of the tangent;若所述机器人的偏转角度与所述切线的偏转角度不一致,则确定所述机器人不在所述运行轨迹上。If the deflection angle of the robot does not match the deflection angle of the tangent line, it is determined that the robot is not on the running trajectory.
- 根据权利要求1所述的方法,其特征在于,所述若所述第一运动参数和所述第二运动参数中,存在任意一个运动参数不在对应的阈值范围内,则提示第一警示信息,包括:The method according to claim 1, characterized in that if any one of the first motion parameter and the second motion parameter is not within the corresponding threshold range, the first warning message is prompted, include:确定所述第一运动参数中的线速度小于等于所述机器人的质心的最小线速度,或所述第一运动参数中的线速度大于等于所述机器人的质心的最大线速度;和/或Determining that the linear velocity in the first motion parameter is less than or equal to the minimum linear velocity of the robot's centroid, or the linear velocity in the first motion parameter is greater than or equal to the maximum linear velocity of the robot's centroid; and/or确定所述第一运动参数中的角速度小于等于所述机器人的最小角速度,或所述第一运动参数中的角速度大于等于所述机器人的最大角速度;和/或Determining that the angular velocity in the first motion parameter is less than or equal to the minimum angular velocity of the robot, or the angular velocity in the first motion parameter is greater than or equal to the maximum angular velocity of the robot; and/or确定所述第二运动参数中的左前轮的线速度小于等于所述机器人的左前轮的最小线速度,或所述第二运动参数中的左前轮的线速度大于等于所述机器人的左前轮的最大线速度;和/或Determining that the linear velocity of the left front wheel in the second motion parameter is less than or equal to the minimum linear velocity of the left front wheel of the robot, or the linear velocity of the left front wheel in the second motion parameter is greater than or equal to the robot Maximum linear speed of the left front wheel; and/or确定所述第二运动参数中的右前轮的线速度小于等于所述机器人的右前轮的最小线速度,或所述第二运动参数中的右前轮的线速度大于等于所述机器人的右前轮的最大线速度;Determining that the linear velocity of the right front wheel in the second motion parameter is less than or equal to the minimum linear velocity of the right front wheel of the robot, or the linear velocity of the right front wheel in the second motion parameter is greater than or equal to the robot The maximum linear speed of the front right wheel;提示第一警示信息。Prompt the first warning message.
- 一种运动检测装置,其特征在于,包括:A motion detection device, characterized in that it includes:测量单元,用于测量机器人的第一运动参数,所述第一运动参数包括线速度和角速度,所述线速度为所述机器人的质心的线速度;The measuring unit is used to measure a first motion parameter of the robot, the first motion parameter includes a linear velocity and an angular velocity, and the linear velocity is a linear velocity of the center of mass of the robot;计算单元,用于利用所述第一运动参数计算所述机器人的第二运动参数,所述第二运动参数包括所述机器人的左前轮线速度和右前轮线速度;A calculation unit, configured to calculate a second movement parameter of the robot using the first movement parameter, the second movement parameter including a linear velocity of a left front wheel and a linear velocity of a right front wheel of the robot;比较单元,用于将所述第一运动参数和所述第二运动参数分别与对应的阈值进行比较;A comparing unit, configured to compare the first motion parameter and the second motion parameter with corresponding thresholds respectively;提示单元,用于若所述第一运动参数和所述第二运动参数中,存在任意一个运动参数不在对应的阈值范围内,则提示第一警示信息,所述第一警示信息用于表示所述机器人运动不稳定。The prompting unit is configured to prompt first warning information if any one of the first motion parameter and the second motion parameter is not within the corresponding threshold range, and the first warning information is used to indicate The robot movement is unstable.
- 根据权利要求8所述的装置,其特征在于,所述计算单元,具体用于:The apparatus according to claim 8, wherein the calculation unit is specifically configured to:利用所述第一运动参数计算所述左前轮和所述右前轮分别到瞬心的距离;Calculating the distances from the left front wheel and the right front wheel to the instantaneous center by using the first motion parameter;利用所述第一运动参数的角速度,以及所述左前轮和所述右前轮分别与瞬心的距离,计算得到所述左前轮的线速度与所述右前轮的线速度。The linear velocity of the left front wheel and the right front wheel are calculated by using the angular velocity of the first motion parameter and the distance between the left front wheel and the right front wheel and the instantaneous center, respectively.
- 根据权利要求9所述的装置,其特征在于,所述计算单元,具体用于:The apparatus according to claim 9, wherein the calculation unit is specifically configured to:根据所述第一运动参数计算所述质心到所述瞬心的转动半径;Calculating a radius of rotation from the center of mass to the instantaneous center according to the first motion parameter;获取预设的所述质心分别到所述左前轮和所述右前轮的距离;Obtaining the preset distances from the center of mass to the left front wheel and the right front wheel, respectively;根据所述质心到所述瞬心的转动半径,以及所述质心分别到所述左前轮和所述右前轮的距离,计算所述左前轮和所述右前轮分别到所述瞬心的第一距离和第二距离,所述左前轮和所述右前轮位于所述质心与所述瞬心相连的直线上。Calculate the distance from the left front wheel and the right front wheel to the instant according to the rotation radius of the center of mass to the instant center, and the distances of the center of mass to the left front wheel and the right front wheel respectively For the first distance and the second distance of the center, the left front wheel and the right front wheel are located on a straight line connecting the center of mass and the instantaneous center.
- 根据权利要求8所述的装置,其特征在于,包括:The device according to claim 8, comprising:所述计算单元,还用于根据所述第一运动参数计算所述机器人的位姿,所述位姿包括所述机器人的位置和偏转角度,所述位置包括水平位移距离和垂直位移距离;The calculation unit is further configured to calculate a pose of the robot according to the first motion parameter, the pose includes a position and a deflection angle of the robot, and the position includes a horizontal displacement distance and a vertical displacement distance;所述运动检测装置还包括判断单元,所述判断单元用于根据所述位姿判断所述机器人是否在运行轨迹上;The motion detection device further includes a judgment unit for judging whether the robot is on a running track according to the posture;所述提示单元,还用于若确定所述机器人不在运行轨迹上,则提示第二警示信息,所述第二警示信息用于表示所述机器人不在运行轨迹上。The prompting unit is further configured to prompt second warning information if it is determined that the robot is not on the running track, and the second warning information is used to indicate that the robot is not on the running track.
- 根据权利要求11所述的装置,其特征在于,所述计算单元,具体用于:The apparatus according to claim 11, wherein the calculation unit is specifically configured to:利用所述第一运动参数计算所述机器人的瞬时偏转角度,在水平方向上的瞬时水平速度,以及在垂直方向上的瞬时垂直速度;Using the first motion parameter to calculate the instantaneous deflection angle of the robot, the instantaneous horizontal speed in the horizontal direction, and the instantaneous vertical speed in the vertical direction;将所述瞬时偏转角度、所述瞬时水平速度和所述瞬时垂直速度分别进行积分,得到所述机器人的偏转角度,所述水平位移距离,以及所述垂直位移距离。Integrating the instantaneous deflection angle, the instantaneous horizontal speed and the instantaneous vertical speed separately to obtain the deflection angle of the robot, the horizontal displacement distance, and the vertical displacement distance.
- 根据权利要求11所述的装置,其特征在于,所述判断单元,具体用于:The apparatus according to claim 11, wherein the judgment unit is specifically configured to:根据所述机器人的位置判断所述机器人是否在运行轨道,所述运行轨道为预设的运行线路;Judging whether the robot is on a running track according to the position of the robot, and the running track is a preset running line;若所述机器人不在所述运行轨道,则确定所述机器人不在所述运行轨迹上;If the robot is not on the running track, it is determined that the robot is not on the running track;若所述机器人在所述运行轨道上,则计算所述机器人在所述运行轨道上的位置的切线的偏转角度;If the robot is on the running track, calculate the deflection angle of the tangent to the position of the robot on the running track;判断所述机器人的偏转角度是否与所述切线的偏转角度一致;Determine whether the deflection angle of the robot is consistent with the deflection angle of the tangent;若所述机器人的偏转角度与所述切线的偏转角度不一致,则确定所述机器人不在所述运行轨迹上。If the deflection angle of the robot does not match the deflection angle of the tangent line, it is determined that the robot is not on the running trajectory.
- 根据权利要求8所述的装置,其特征在于,所述提示单元,具体用于:The device according to claim 8, wherein the prompt unit is specifically used for:确定所述第一运动参数中的线速度小于等于所述机器人的质心的最小线速度,或所述第一运动参数中的线速度大于等于所述机器人的质心的最大线速度;和/或Determining that the linear velocity in the first motion parameter is less than or equal to the minimum linear velocity of the robot's centroid, or the linear velocity in the first motion parameter is greater than or equal to the maximum linear velocity of the robot's centroid; and/or确定所述第一运动参数中的角速度小于等于所述机器人的最小角速度,或所述第一运动参数中的角速度大于等于所述机器人的最大角速度;和/或Determining that the angular velocity in the first motion parameter is less than or equal to the minimum angular velocity of the robot, or the angular velocity in the first motion parameter is greater than or equal to the maximum angular velocity of the robot; and/or确定所述第二运动参数中的左前轮的线速度小于等于所述机器人的左前轮的最小线速度,或所述第二运动参数中的左前轮的线速度大于等于所述机器人的左前轮的最大线速度;和/或Determining that the linear velocity of the left front wheel in the second motion parameter is less than or equal to the minimum linear velocity of the left front wheel of the robot, or the linear velocity of the left front wheel in the second motion parameter is greater than or equal to the robot Maximum linear speed of the left front wheel; and/or确定所述第二运动参数中的右前轮的线速度小于等于所述机器人的右前轮的最小线速度,或所述第二运动参数中的右前轮的线速度大于等于所述机器人的右前轮的最大线速度;Determining that the linear velocity of the right front wheel in the second motion parameter is less than or equal to the minimum linear velocity of the right front wheel of the robot, or the linear velocity of the right front wheel in the second motion parameter is greater than or equal to the robot The maximum linear speed of the front right wheel;提示第一警示信息。Prompt the first warning message.
- 一种运动检测装置,其特征在于,包括:A motion detection device, characterized in that it includes:编码器,用于测量机器人的第一运动参数,所述第一运动参数包括线速度和角速度,所述线速度为所述机器人的质心的线速度;An encoder for measuring a first motion parameter of the robot, where the first motion parameter includes a linear velocity and an angular velocity, and the linear velocity is the linear velocity of the center of mass of the robot;处理器,用于利用所述第一运动参数计算所述机器人的第二运动参数,所述第二运动参数包括所述机器人的左前轮线速度和右前轮线速度;还用于将所述第一运动参数和所述第二运动参数分别与对应的阈值范围进行比较;The processor is used to calculate the second motion parameter of the robot by using the first motion parameter, the second motion parameter includes the linear speed of the left front wheel and the linear speed of the right front wheel of the robot; The first motion parameter and the second motion parameter are compared with corresponding threshold ranges respectively;显示器,用于若所述第一运动参数和所述第二运动参数中,存在任意一个运动参数不在对应的阈值范围内,则提示第一警示信息,所述第一警示信息用于表示所述机器人运动不稳定。The display is used for prompting first warning information if any one of the first sports parameter and the second sports parameter is not within the corresponding threshold range, and the first warning information is used to indicate the Robot movement is unstable.
- 根据权利要求15所述的装置,其特征在于,所述处理器,具体用于:The apparatus according to claim 15, wherein the processor is specifically configured to:利用所述第一运动参数计算所述左前轮和所述右前轮分别到瞬心的距离;Calculating the distances from the left front wheel and the right front wheel to the instantaneous center by using the first motion parameter;利用所述第一运动参数的角速度,以及所述左前轮和所述右前轮分别与瞬心的距离,计算得到所述左前轮的线速度与所述右前轮的线速度。The linear velocity of the left front wheel and the right front wheel are calculated by using the angular velocity of the first motion parameter and the distance between the left front wheel and the right front wheel and the instantaneous center, respectively.
- 根据权利要求16所述的装置,其特征在于,所述处理器,具体用于:The apparatus according to claim 16, wherein the processor is specifically configured to:根据所述第一运动参数计算所述质心到所述瞬心的转动半径;Calculating a radius of rotation from the center of mass to the instantaneous center according to the first motion parameter;获取预设的所述质心分别到所述左前轮和所述右前轮的距离;Obtaining the preset distances from the center of mass to the left front wheel and the right front wheel, respectively;根据所述质心到所述瞬心的转动半径,以及所述质心分别到所述左前轮和所述右前轮的距离,计算所述左前轮和所述右前轮分别到所述瞬心的第一距离和第二距离,所述左前轮和所述右前轮位于所述质心与所述瞬心相连的直线上。Calculate the distance from the left front wheel and the right front wheel to the instant according to the rotation radius of the center of mass to the instant center, and the distances of the center of mass to the left front wheel and the right front wheel respectively For the first distance and the second distance of the center, the left front wheel and the right front wheel are located on a straight line connecting the center of mass and the instantaneous center.
- 根据权利要求15所述的装置,其特征在于,包括:The device according to claim 15, comprising:所述处理器,还用于根据所述第一运动参数计算所述机器人的位姿,所述位姿包括所述机器人的位置和偏转角度,所述位置包括水平位移距离和垂直位移距离;还用于根据所述位姿判断所述机器人是否在运行轨迹上;The processor is further configured to calculate a pose of the robot according to the first motion parameter, the pose includes a position and a deflection angle of the robot, and the position includes a horizontal displacement distance and a vertical displacement distance; Used to determine whether the robot is on the running track according to the pose;显示器430,还用于若确定所述机器人不在运行轨迹上,则提示第二警示信息,所述第二警示信息用于表示所述机器人不在运行轨迹上。The display 430 is also used to prompt second warning information if it is determined that the robot is not on the running track, and the second warning information is used to indicate that the robot is not on the running track.
- 根据权利要求18所述的装置,其特征在于,所述处理器,具体用于:The apparatus according to claim 18, wherein the processor is specifically configured to:利用所述第一运动参数计算所述机器人的瞬时偏转角度,在水平方向上的瞬时水平速度,以及在垂直方向上的瞬时垂直速度;Using the first motion parameter to calculate the instantaneous deflection angle of the robot, the instantaneous horizontal speed in the horizontal direction, and the instantaneous vertical speed in the vertical direction;将所述瞬时偏转角度、所述瞬时水平速度和所述瞬时垂直速度分别进行积分,得到所述机器人的偏转角度,所述水平位移距离,以及所述垂直位移距离。Integrating the instantaneous deflection angle, the instantaneous horizontal speed and the instantaneous vertical speed separately to obtain the deflection angle of the robot, the horizontal displacement distance, and the vertical displacement distance.
- 一种计算机非易失性可读存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行,用以执行如权利要求1-7任一项所述的方法。A computer non-volatile readable storage medium, characterized in that the computer storage medium stores a computer program, and the computer program includes program instructions, and the program instructions are executed by a processor to execute claim 1 -7 The method of any one.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910015235.0A CN109623876B (en) | 2019-01-04 | 2019-01-04 | Motion detection method, motion detection device and computer readable storage medium |
CN201910015235.0 | 2019-01-04 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020140605A1 true WO2020140605A1 (en) | 2020-07-09 |
Family
ID=66060036
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/116455 WO2020140605A1 (en) | 2019-01-04 | 2019-11-08 | Motion detection method and apparatus, and computer non-volatile readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109623876B (en) |
WO (1) | WO2020140605A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111993463A (en) * | 2020-07-10 | 2020-11-27 | 武汉海默机器人有限公司 | Pin type brake of robot and control method thereof |
CN112616039A (en) * | 2020-12-09 | 2021-04-06 | 广东电网有限责任公司 | Power grid operation monitoring system |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109623876B (en) * | 2019-01-04 | 2022-07-08 | 平安科技(深圳)有限公司 | Motion detection method, motion detection device and computer readable storage medium |
JP7368135B2 (en) * | 2019-07-31 | 2023-10-24 | ファナック株式会社 | Article conveyance system with multiple moving parts |
CN112536819A (en) * | 2020-05-26 | 2021-03-23 | 深圳优地科技有限公司 | Fault processing method and device, robot and storage medium |
CN112344933B (en) * | 2020-08-21 | 2023-04-07 | 北京京东乾石科技有限公司 | Information generation method and device and storage medium |
CN113183152B (en) * | 2021-04-25 | 2022-08-12 | 深圳优地科技有限公司 | Motion abnormality determination method, electronic device, and storage medium |
CN113608525A (en) * | 2021-06-23 | 2021-11-05 | 北京迈格威科技有限公司 | Robot motion state indicating method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9582000B2 (en) * | 2011-09-07 | 2017-02-28 | Lg Electronics Inc. | Robot cleaner, and system and method for remotely controlling the same |
CN206056965U (en) * | 2016-08-26 | 2017-03-29 | 龙岩学院 | A kind of wheeled robot slip detector |
CN107643186A (en) * | 2017-09-15 | 2018-01-30 | 深圳市杉川机器人有限公司 | The method, apparatus and system of machine skidding detection |
CN107962569A (en) * | 2017-11-23 | 2018-04-27 | 珠海格力电器股份有限公司 | Robot collision detection method and device and intelligent robot |
CN109623876A (en) * | 2019-01-04 | 2019-04-16 | 平安科技(深圳)有限公司 | A kind of method for testing motion, motion detection apparatus and computer readable storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010165242A (en) * | 2009-01-16 | 2010-07-29 | Hitachi Cable Ltd | Method and system for detecting abnormality of mobile body |
CN103335652B (en) * | 2013-06-24 | 2016-06-08 | 陕西科技大学 | The dining room path guiding system of a kind of robot and air navigation aid |
CN106406312B (en) * | 2016-10-14 | 2017-12-26 | 平安科技(深圳)有限公司 | Guide to visitors robot and its moving area scaling method |
CN206551897U (en) * | 2017-03-03 | 2017-10-13 | 山东鸿日新能源汽车有限公司 | A kind of four-wheel electric body of a motor car stabilizing control system |
CN108638053B (en) * | 2018-04-03 | 2020-11-17 | 珠海市一微半导体有限公司 | Robot slip detection method and correction method thereof |
CN108873891B (en) * | 2018-05-25 | 2022-07-05 | 深圳创动科技有限公司 | Robot control method, robot and storage medium |
-
2019
- 2019-01-04 CN CN201910015235.0A patent/CN109623876B/en active Active
- 2019-11-08 WO PCT/CN2019/116455 patent/WO2020140605A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9582000B2 (en) * | 2011-09-07 | 2017-02-28 | Lg Electronics Inc. | Robot cleaner, and system and method for remotely controlling the same |
CN206056965U (en) * | 2016-08-26 | 2017-03-29 | 龙岩学院 | A kind of wheeled robot slip detector |
CN107643186A (en) * | 2017-09-15 | 2018-01-30 | 深圳市杉川机器人有限公司 | The method, apparatus and system of machine skidding detection |
CN107962569A (en) * | 2017-11-23 | 2018-04-27 | 珠海格力电器股份有限公司 | Robot collision detection method and device and intelligent robot |
CN109623876A (en) * | 2019-01-04 | 2019-04-16 | 平安科技(深圳)有限公司 | A kind of method for testing motion, motion detection apparatus and computer readable storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111993463A (en) * | 2020-07-10 | 2020-11-27 | 武汉海默机器人有限公司 | Pin type brake of robot and control method thereof |
CN111993463B (en) * | 2020-07-10 | 2023-10-13 | 武汉海默机器人有限公司 | Pin type brake of robot and control method thereof |
CN112616039A (en) * | 2020-12-09 | 2021-04-06 | 广东电网有限责任公司 | Power grid operation monitoring system |
Also Published As
Publication number | Publication date |
---|---|
CN109623876B (en) | 2022-07-08 |
CN109623876A (en) | 2019-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020140605A1 (en) | Motion detection method and apparatus, and computer non-volatile readable storage medium | |
CN108748135A (en) | A kind of robotically-driven wheel skidding pose antidote and a kind of robot | |
US10318135B2 (en) | Method for adjusting window display position, and terminal | |
CN107962569B (en) | Robot collision detection method and device and intelligent robot | |
CN104898658A (en) | Autonomous moving robot and control method thereof | |
CN107529509A (en) | Construction tower crane group of planes lifting operation anticollision method for early warning | |
CN112068570B (en) | Robot movement control method and device and robot | |
CN107539887A (en) | Construction crane machine group anti-collision early warning accessory system | |
WO2017190503A1 (en) | Method and device for adjusting data collection cycle | |
CN103069462A (en) | Method and device for controlling an apparatus | |
CN112674653B (en) | Obstacle position marking method and device, computer equipment and storage medium | |
CN104142786B (en) | A kind of prompting frame display methods and terminal | |
CN109823340A (en) | It is a kind of control vehicle parking method, control equipment | |
US20170292249A1 (en) | Control system and method for a machine | |
CN111650874A (en) | Roller coaster overspeed protection monitoring system and method based on Internet of things | |
CN104267742B (en) | A kind of vertical origin calibrating method of ball machine and device | |
CN103324530A (en) | Calling method and device for orientation sensors of handheld mobile equipment | |
CN105538309A (en) | Obstacle dynamic identification algorithm for robot with limited sensing capability | |
CN104679019A (en) | Spherical PTZ (pan/tilt/zoom) and control device thereof | |
WO2020259185A1 (en) | Method and apparatus for implementing visual odometer | |
WO2020083347A1 (en) | Wearable device data control and processing method and system | |
WO2020094062A1 (en) | Rotation display method and apparatus for screen of on-board unit | |
CN110509995A (en) | A kind of Vehicular turn driving lever state judging device and method | |
CN113791535B (en) | Track following real-time control method, device and system and storage medium | |
JP7203938B1 (en) | Estimation device, estimation method and estimation program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19907484 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17/11/2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19907484 Country of ref document: EP Kind code of ref document: A1 |