WO2021022473A1 - Control method, control device, mobile platform, and storage medium - Google Patents

Control method, control device, mobile platform, and storage medium Download PDF

Info

Publication number
WO2021022473A1
WO2021022473A1 PCT/CN2019/099415 CN2019099415W WO2021022473A1 WO 2021022473 A1 WO2021022473 A1 WO 2021022473A1 CN 2019099415 W CN2019099415 W CN 2019099415W WO 2021022473 A1 WO2021022473 A1 WO 2021022473A1
Authority
WO
WIPO (PCT)
Prior art keywords
movable platform
acceleration
speed
motors
control device
Prior art date
Application number
PCT/CN2019/099415
Other languages
French (fr)
Chinese (zh)
Inventor
周长兴
陈超彬
龚鼎
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2019/099415 priority Critical patent/WO2021022473A1/en
Priority to CN201980032927.4A priority patent/CN112154388A/en
Publication of WO2021022473A1 publication Critical patent/WO2021022473A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0259Control of position or course in two dimensions specially adapted to land vehicles using magnetic or electromagnetic means
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W10/00Conjoint control of vehicle sub-units of different type or different function
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • B60W40/02Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to ambient conditions
    • B60W40/06Road conditions
    • B60W40/076Slope angle of the road
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62DMOTOR VEHICLES; TRAILERS
    • B62D63/00Motor vehicles or trailers not otherwise provided for
    • B62D63/02Motor vehicles
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/02Control of position or course in two dimensions
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0214Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory in accordance with safety or protection criteria, e.g. avoiding hazardous areas
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0221Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving a learning process
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0276Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle

Definitions

  • This application relates to the field of omnidirectional wheels, and in particular to a control method, control device, movable platform and computer-readable storage medium.
  • the omnidirectional wheel can realize full freedom of movement on the plane.
  • Multiple omnidirectional wheels (such as Mecanum wheel, Swedish wheel, etc.) can form the omnidirectional chassis of the movable platform.
  • the movable platform can move forward, laterally, obliquely, rotate and their combinations.
  • the control method for the omnidirectional wheels in the movable platform is usually: according to the target speed that the movable platform needs to achieve, the target speed of each omnidirectional wheel is calculated, and then the motor controller controls the motor corresponding to the omnidirectional wheel. Reach the target speed, thereby driving the rotation of the omnidirectional wheel.
  • the inventor found that if the movable platform is traveling on a ramp, because the ramp has a certain slope relative to the horizontal plane, it is difficult for the above control method to keep the movable platform on the ramp at 0 or 0 The relative position is stationary.
  • the present application provides a control method, control device, removable platform, and computer-readable storage medium.
  • the first aspect of the present application provides a method for controlling a movable platform.
  • the movable platform includes a power system.
  • the power system includes at least one motor controller, multiple motors, and one-to-one correspondence with the motors.
  • the at least one motor controller is used to control the rotation of the multiple motors, and the multiple motors are respectively used to drive the corresponding omnidirectional wheels to rotate, including:
  • the target rotation speeds of a plurality of the omnidirectional wheels are determined based on the moving speed, so that the motor controller controls the plurality of motors to reach the target rotation speed.
  • a control device for a movable platform includes a power system, the power system includes at least one motor controller, a plurality of motors and one-to-one with the motor Corresponding to multiple omnidirectional wheels, the at least one motor controller is used to control the rotation of the multiple motors, and the multiple motors are respectively used to drive the corresponding omnidirectional wheels to rotate, and the control device includes: a memory and a processor ;
  • the memory is used to store program codes
  • the processor calls the program code, and when the program code is executed, is used to perform the following operations:
  • the target rotation speeds of a plurality of the omnidirectional wheels are determined based on the moving speed, so that the motor controller controls the plurality of motors to reach the target rotation speed.
  • a movable platform including:
  • the power system is installed on the body and used to drive the movable platform to move.
  • the power system includes at least one motor controller, a plurality of motors, and a plurality of omnidirectional wheels corresponding to the motors one to one.
  • the at least one motor controller is used to control the rotation of multiple motors, and the multiple motors are respectively used to drive the corresponding omni wheel to rotate;
  • control device according to any one of the second aspect.
  • a computer-readable storage medium having computer instructions stored thereon, which implement the steps in any of the methods in the first aspect when the instructions are executed by a processor.
  • the initial acceleration of the movable platform After obtaining the stationary instruction for controlling the movable platform on the ramp, determine the initial acceleration of the movable platform according to the deviation between the target position pointed to by the stationary instruction and the current position of the movable platform, and, based on The slope of the ramp determines the compensation acceleration of the movable platform, and then determines the moving speed of the movable platform according to the initial acceleration and the compensated acceleration, and finally determines a plurality of the omnidirectionals based on the moving speed
  • the target rotation speed of the wheel is controlled by the motor controller to achieve the target rotation speed by the motors, so that the movable platform remains stationary on the slope; this embodiment obtains the compensation acceleration and sets the compensation Acceleration is used as one of the determinants of the final target rotation speed, so as to offset the influence of the slope of the ramp on the movable platform, so that the movable platform can remain stationary on the ramp.
  • Fig. 1 is a schematic diagram of an omnidirectional chassis composed of 4 omnidirectional wheels according to an exemplary embodiment of the present application;
  • Fig. 2A is a side view of a Swedish wheel structure according to an exemplary embodiment of the application.
  • Fig. 2B is a top view of a Swedish wheel structure according to an exemplary embodiment of the application.
  • Fig. 2C is a side view of a mecanum wheel structure according to an exemplary embodiment of the application.
  • Fig. 2D is a top view of a mecanum wheel structure according to an exemplary embodiment of the application.
  • Fig. 2E is a physical diagram of a mecanum wheel structure according to an exemplary embodiment of the application.
  • Fig. 3 is a schematic diagram showing a movable platform on a ramp according to an exemplary embodiment of this application;
  • Fig. 4 is a flowchart of an embodiment of a method for controlling a movable platform according to an exemplary embodiment of this application;
  • Fig. 5 is an example diagram showing the position of one of the omnidirectional wheels of the movable platform according to an exemplary embodiment of the present application
  • Fig. 6 is a structural diagram of a control device according to an exemplary embodiment of the application.
  • Fig. 7 is a structural diagram of a movable platform according to an exemplary embodiment of the application.
  • first, second, third, etc. may be used in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as second information, and similarly, the second information may also be referred to as first information.
  • word “if” as used herein can be interpreted as "when” or “when” or "in response to determination”.
  • the omnidirectional wheel can realize the movement of three degrees of freedom on the plane (x, y, theta).
  • multiple omnidirectional wheels can form the omnidirectional chassis of the movable platform.
  • Different omnidirectional wheels have different compositions.
  • Types of omnidirectional wheel chassis for example, the common omnidirectional wheels on the market are Mecanum wheels and Swedish wheels.
  • Figure 2A and Figure 2B shows the structure of a Swedish wheel, the roller and the hub of the Swedish wheel in Figure 2A form a 90° included angle;
  • Figure 2C, Figure 2D and Figure 2E Figure 2C and Figure 2D shows the structure of the mecanum wheel
  • Fig. 2E shows the physical diagram of the mecanum wheel
  • Fig. 2C it can be seen that the rollers of the mecanum wheel and the hub form an angle of 45°.
  • the movable platform can be moved forward, laterally, obliquely, rotating and their combinations.
  • the movable platform includes a power system, the power system includes at least one motor controller, a plurality of motors, and a plurality of omnidirectional wheels corresponding to the motors one-to-one, and the at least one motor controller is used to control a plurality of the motors Rotation, a plurality of the motors are respectively used to drive the corresponding omnidirectional wheels to rotate; wherein, the specific number of the motor controller, the motors, and the omnidirectional wheels can be specifically set according to the actual situation. There are no restrictions.
  • the movable platform may be a wheeled robot, the wheeled robot includes 2 motor controllers, 2 motors and 2 omnidirectional wheels, the motor controller, the motor and the omnidirectional wheel
  • the wheels correspond one to one, and the motor controller controls the rotation of the motor, and then the motor drives the omnidirectional wheel to rotate.
  • the number of motor controllers, motors and omnidirectional wheels are all 3, 4, 5 or more.
  • the working loop of the motor usually has three working modes, namely current loop, speed loop and position loop. Its main function is to make the error less and less, make the control precision higher, more accurate and faster, and realize automatic control. ;
  • the current loop is a current feedback system. Because the current and torque of the motor are proportional to each other, the motor controller can control the torque of the motor in the working mode of the current loop; the speed loop is a speed feedback system. In the working mode, the motor controller can control the speed of the motor; the position loop is a position feedback system. In the working mode of the position loop, the motor controller can control the motor position.
  • the control method for the omnidirectional chassis in the movable platform is usually: according to the target speed that the movable platform wants to achieve, calculate the target speed of each omnidirectional wheel that constitutes the omnidirectional chassis, and then let each omnidirectional chassis
  • the motor corresponding to the wheel works in the speed loop mode, that is, the motor controller controls the motor corresponding to the omnidirectional wheel to reach the target speed, thereby driving the rotation of the omnidirectional wheel.
  • the inventor found that if the movable platform is traveling on a ramp, please refer to Figure 3. Because the ramp has a tilt relative to the horizontal plane, there is a component g* of the gravity acceleration g on the ramp. sin(tilt) If the movable platform is still on the ramp and still uses the target speed obtained by the above control method to control the movable platform, because the movable platform is also affected by the acceleration g*sin(tilt), it can be The mobile platform can only keep fluctuating up and down at 0 speed, but it is difficult to keep the mobile platform at 0 speed or relatively stationary on the ramp.
  • the embodiment of the present application provides a method for controlling a movable platform, so that the movable platform can maintain a speed of 0 or a relative position on a ramp.
  • FIG. 4 which is based on an example of this application.
  • the embodiment shows a flowchart of an embodiment of a method for controlling a movable platform.
  • the control method may be executed by a control device, and the control method includes:
  • Step S101 Obtain a stationary instruction for controlling the movable platform on the ramp.
  • Step S102 Determine the initial acceleration of the movable platform according to the deviation between the target position pointed to by the stationary instruction and the current position of the movable platform.
  • Step S103 Determine the compensation acceleration of the movable platform based on the slope of the ramp.
  • Step S104 Determine the moving speed of the movable platform according to the initial acceleration and the compensated acceleration.
  • Step S105 Determine the target rotation speed of the plurality of omnidirectional wheels based on the moving speed, so that the motor controller controls the plurality of motors to reach the target rotation speed.
  • the manner of driving the movable platform to move includes but is not limited to the following manners:
  • the movable platform can be driven under the operation of the user.
  • the user can operate on a remote control device associated with the movable platform, and the remote control device is based on the user’s
  • the operation generates a corresponding driving instruction and sends it to the movable platform to drive the movable platform to move.
  • a control program may be preset on the movable platform, and the movable platform may run the preset control program, and execute movement modes such as moving, stationary, and rotating.
  • the mobile platform can perform intelligent learning based on principles established by artificial intelligence technology, and automatically determine the current exercise mode it should perform based on the results of intelligent learning to perform corresponding exercises.
  • the control device on the movable platform may obtain the control device for controlling the
  • the stationary command of the movable platform on the ramp is used to perform stationary control of the movable platform based on the stationary command; wherein the stationary command can also be obtained in other ways, and the embodiment of the present application does not impose any limitation on this.
  • control device may determine the initial acceleration of the movable platform according to the deviation between the target position pointed to by the stationary instruction and the current position of the movable platform.
  • the embodiment of the present application does not impose any restrictions on the source of the target position, which can be specifically set according to actual conditions.
  • the corresponding relationship between the stationary instruction and the target position may be pre-stored on the movable platform , And then the control device obtains the target position based on the obtained stationary instruction and the corresponding relationship; in another example, the stationary instruction may also include the target position information, so that the control device is acquiring At the same time as the stationary instruction, the target position pointed to by the stationary instruction can be acquired.
  • the current position of the movable platform can be determined based on the acceleration and angular velocity of the movable platform measured by the IMU module.
  • the IMU module Inertial Measurement Unit, inertial measurement unit
  • measures the three-axis attitude angle (or angular velocity) of the object and Acceleration device generally, an IMU contains three single-axis accelerometers and three single-axis gyroscopes, which can measure three acceleration directions and three angular velocity directions in space.
  • control device obtains The rotation angle of the omnidirectional wheel measured by the motor sensor, and then the displacement of the omnidirectional wheel is obtained based on the rotation angle of the omnidirectional wheel and the radius of the omnidirectional wheel, and the displacement of each omnidirectional wheel is compared with the movable measurement measured by the IMU module
  • the acceleration and angular velocity of the platform are fused and calculated to obtain the current position of the movable platform.
  • the control device may determine the initial acceleration of the movable platform through a position controller and a speed controller, and the control device determines one of the two based on the acquired target position and the current position of the movable platform. And send it to the position controller.
  • the position controller uses the deviation between the target position and the current position to determine the initial speed of the movable platform, and then the control device is based on the initial The speed and the acquired current speed of the movable platform determine the deviation between the two, and send the deviation data to the speed controller.
  • the speed controller determines the deviation between the initial speed and the current speed.
  • the initial acceleration; wherein, the current speed can be determined based on the acceleration and angular velocity of the movable platform measured by the IMU module.
  • the control device after acquiring the stationary instruction, the control device also determines the compensation acceleration of the movable platform based on the slope of the ramp, wherein the slope of the ramp may be based on the current
  • the posture data is determined, and the current posture data of the movable platform can be determined according to the acceleration and angular velocity of the movable platform measured by the IMU module.
  • the compensation acceleration is the product of the gravitational acceleration and the sine function value of the slope. Please refer to FIG. 3, that is, the value of the compensation acceleration is g*sin(tilt).
  • the compensation The direction of acceleration is determined according to the specific movement mode (uphill, downhill) of the movable platform, and the direction of the compensation acceleration is opposite to the direction of the gravitational acceleration on the slope; it can be seen that the embodiment of the application obtains The compensation acceleration, and using the compensation acceleration as one of the determining factors of the target rotation speed of the omnidirectional wheel, can offset the influence of the gravitational acceleration on the slope, so that the movable platform remains stationary on the slope.
  • step S102 and step S103 can be executed simultaneously.
  • step S103 if the operating resources of the control device are limited, step S102 may be executed first and then step S103, or step S103 may be executed first and then step S102 may be executed.
  • the control device determines the movement speed of the movable platform according to the initial acceleration and the compensation acceleration, and the movement speed is The result of integration of the sum of acceleration and the compensation acceleration.
  • the control device determines the target rotational speeds of the multiple omnidirectional wheels based on the moving speed, so that the motor controller controls the multiple motors to reach the target rotational speed.
  • gravity is taken into consideration.
  • the effect of acceleration on the slope, the size of the target speed is adjusted based on the component of the gravitational acceleration on the slope, so that the movable platform can remain relatively stationary on the slope based on the target speed, and avoid gravitational acceleration on the slope
  • the influence of the component causes the movable platform to fluctuate up and down at zero speed.
  • the target rotation speed is determined based on the moving speed and a designated mixing control matrix, and the mixing control matrix represents the conversion relationship between the target rotation speed and the moving speed.
  • the target The rotation speed is the result of the negative ratio of the product of the moving speed and the designated mixing control matrix to the radius of the omnidirectional wheel.
  • the movable platform including 4 omnidirectional wheels as an example: please refer to Figure 5, which shows the position of one of the omnidirectional wheels of the movable platform (the rectangle in the figure), where xoy represents The Cartesian coordinate system with the center of motion as the origin, x'o'y' represents the Cartesian coordinate system with the hub center as the origin, ⁇ i represents the offset angle between the hub and the roller, ⁇ i represents the angle between the straight line OO' and the X axis , Assuming that the acquired moving speed of the movable platform is (v x , v y , w), the target rotation speeds of the four omnidirectional wheels are respectively w 1 , w 2 , w 3 , and w 4 , then the control The target rotational speeds of the 4 omnidirectional wheels that the device can determine based on the moving speed and the designated mixing control matrix are:
  • r represents the radius of the omnidirectional wheel
  • l 1 , l 2 , l 3 and l 4 represent the distance from the center of each omnidirectional wheel to the center of rotation of the movable platform.
  • the control device of the movable platform currently obtains a stationary command, and performs the following control based on the stationary command:
  • the target position is (x1, y1, theta1)
  • the control device obtains the deviation between the current position and the target position (x1-x0, y1 -y0,theta1-theta0), and send the deviation to a position controller, which determines the initial speed (Vx0, Vy0, W0) of the movable platform based on the deviation, where W0 represents movable
  • the rotation speed of the platform and then the controller obtains the current speed (Vx, Vy, W) of the movable platform, determines the deviation between the initial speed of the movable platform and the current speed, and sends the deviation to the speed controller,
  • the speed controller determine
  • the present application also provides embodiments of a control device, a movable platform, and a computer-readable storage medium.
  • FIG. 6 is a structural block diagram of a control device of a movable platform according to an exemplary embodiment of this application.
  • the movable platform includes a power system
  • the power system includes at least one motor controller, a plurality of motors, and a plurality of omnidirectional wheels corresponding to the motors one-to-one
  • the at least one motor controller is used to control the One of the motors rotates, and a plurality of the motors are respectively used to drive the corresponding omni wheel to rotate.
  • control device 20 includes: a memory 21 and a processor 22;
  • the memory 21 is used to store program code 23;
  • the processor 22 calls the program code 23, and when the program code 23 is executed, is used to perform the following operations:
  • the target rotation speeds of a plurality of the omnidirectional wheels are determined based on the moving speed, so that the motor controller controls the plurality of motors to reach the target rotation speed.
  • the processor 22 executes the program code 23 included in the memory 21, and the processor 22 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors). Processor, DSP), Application Specific Integrated Circuit (ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 21 stores the program code of the control method.
  • the memory 21 may include at least one type of storage medium.
  • the storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.) ), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk , CD, etc.
  • the control device 20 may cooperate with a network storage device that performs the storage function of the memory through a network connection.
  • the memory 21 may be an internal storage unit of the control device 20, such as a hard disk or a memory of the control device 20.
  • the memory 21 may also be an external storage device of the control device 20, for example, a plug-in hard disk equipped on the control device 20, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, and a flash memory card (Flash). Card) and so on. Further, the memory 21 may also include both an internal storage unit of the control device 20 and an external storage device. The memory 21 is used to store computer program codes 23 and other programs and data required to control the device 20. The memory 21 can also be used to temporarily store data that has been output or will be output.
  • a plug-in hard disk equipped on the control device 20 for example, a plug-in hard disk equipped on the control device 20, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, and a flash memory card (Flash). Card) and so on. Further, the memory 21 may also include both an internal storage unit of the control device 20 and an external storage device. The memory 21 is used to store computer program codes 23 and other programs and data required to control the device 20. The memory
  • the various embodiments described herein can be implemented using a computer-readable medium such as computer software, hardware, or any combination thereof.
  • a computer-readable medium such as computer software, hardware, or any combination thereof.
  • ASIC application-specific integrated circuits
  • DSP digital signal processors
  • DSPD digital signal processing devices
  • PLD programmable logic devices
  • FPGA field programmable gate arrays
  • a processor a controller, a microcontroller, a microprocessor, and an electronic unit designed to perform the functions described herein are implemented.
  • implementations such as procedures or functions may be implemented with a separate software module that allows execution of at least one function or operation.
  • the software codes can be implemented by software applications (or programs) written in any suitable programming language, and the software codes can be stored in a memory and executed by the controller.
  • the control device 20 may include, but is not limited to, a memory 21 and a processor 22. Those skilled in the art can understand that FIG. 6 is only an example of the control device 20, and does not constitute a limitation on the control device 20. It may include more or less components than shown, or a combination of certain components, or different components. For example, the device may also include input and output devices, network access devices, and so on.
  • the determination of the initial acceleration includes:
  • the compensation acceleration is the product of the gravitational acceleration and the value of the sine function of the slope.
  • the moving speed is a result of integrating the sum of the initial acceleration and the compensation acceleration.
  • the slope of the ramp is determined based on the current attitude data of the movable platform; the current attitude data of the movable platform is determined based on the acceleration and angular velocity of the movable platform measured by the IMU module.
  • the current position and the current speed are determined based on the acceleration and angular velocity of the movable platform measured by the IMU module.
  • the target rotation speed is determined based on the moving speed and a designated mixing control matrix; the mixing control matrix represents a conversion relationship between the target rotation speed and the moving speed.
  • the target rotation speed is a result of a negative ratio of the product of the moving speed and the designated mixing control matrix to the radius of the omnidirectional wheel.
  • an embodiment of the present application further provides a movable platform 30, and the movable platform includes a body 31.
  • the power system 32 is installed on the body 31 and used to drive the movable platform 30 to move.
  • the power system 32 includes at least one motor controller 321, a plurality of motors 322, and one-to-one correspondence with the motors 322.
  • a plurality of omnidirectional wheels 323, the at least one motor controller 321 is used to control the rotation of the plurality of motors 322, and the plurality of motors 322 are respectively used to drive the corresponding omnidirectional wheels 323 to rotate.
  • the movable platform 30 may be a wheeled robot.
  • the power system includes three motor controllers 321, three motors 322, and three omnidirectional wheels 323, and the motor controllers, motors, and omnidirectional wheels correspond to each other as an example.
  • the number of motor controllers, motors, and omnidirectional wheels can be specifically set according to actual needs.
  • it can also be 4 motor controllers, 4 motors, and 4 omnidirectional wheels. Round, the embodiment of this application does not impose any restriction on this.
  • non-transitory computer-readable storage medium including instructions, such as a memory including instructions, which may be executed by a processor of a device to complete the foregoing method.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
  • a non-transitory computer-readable storage medium When the instructions in the storage medium are executed by the processor of the terminal, the terminal can execute the above method.

Abstract

A control method, a control device, a mobile platform, and a computer-readable storage medium. The method comprises: acquiring a standing instruction for controlling a mobile platform to stand on a ramp (S101); according to the deviation of the current position of the mobile platform from a target position indicated by the standing instruction, determining an initial acceleration for the mobile platform (S102); on the basis of the slope of the ramp, determining a compensation acceleration for the mobile platform (S103); according to the initial acceleration and the compensation acceleration, determining the moving speed of the mobile platform (S104); and on the basis of the moving speed, determining a target rotation speed of a plurality of omnidirectional wheels, such that an electric motor controller controls a plurality of electric motors to reach the target rotation speed (S105). Therefore, the mobile platform can remain in a standing state on the ramp.

Description

控制方法、控制设备、可移动平台以及存储介质Control method, control equipment, movable platform and storage medium 技术领域Technical field
本申请涉及全向轮领域,尤其涉及一种控制方法、控制设备、可移动平台以及计算机可读存储介质。This application relates to the field of omnidirectional wheels, and in particular to a control method, control device, movable platform and computer-readable storage medium.
背景技术Background technique
全向轮可实现在平面上的全自由度的移动,多个全向轮(如麦克纳姆轮、瑞典轮等)可组成可移动平台的全向底盘,通过对全向底盘的控制可以让可移动平台进行前行、横移、斜行、旋转及其组合等运动方式。相关技术中对于可移动平台中全向轮的控制方式通常是:根据可移动平台需要达到的目标速度,计算出每个全向轮的目标转速,再由电机控制器控制全向轮对应的电机达到目标转速,从而驱动全向轮的转动。The omnidirectional wheel can realize full freedom of movement on the plane. Multiple omnidirectional wheels (such as Mecanum wheel, Swedish wheel, etc.) can form the omnidirectional chassis of the movable platform. Through the control of the omnidirectional chassis, The movable platform can move forward, laterally, obliquely, rotate and their combinations. In the related art, the control method for the omnidirectional wheels in the movable platform is usually: according to the target speed that the movable platform needs to achieve, the target speed of each omnidirectional wheel is calculated, and then the motor controller controls the motor corresponding to the omnidirectional wheel. Reach the target speed, thereby driving the rotation of the omnidirectional wheel.
但是,发明人在实现本发明的过程中,发现:若可移动平台在坡道上行驶,由于坡道相对于水平面存在一定坡度,上述控制方式难以实现让可移动平台在坡道上保持速度为0或者相对位置静止。However, in the process of implementing the present invention, the inventor found that if the movable platform is traveling on a ramp, because the ramp has a certain slope relative to the horizontal plane, it is difficult for the above control method to keep the movable platform on the ramp at 0 or 0 The relative position is stationary.
发明内容Summary of the invention
有鉴于此,本申请提供一种控制方法、控制设备、可移动平台以及计算机可读存储介质。In view of this, the present application provides a control method, control device, removable platform, and computer-readable storage medium.
首先,本申请的第一方面提供了一种可移动平台的控制方法,所述可移动平台包括动力系统,所述动力系统包括至少一个电机控制器、多个电机以及与所述电机一一对应的多个全向轮,所述至少一个电机控制器用于控制多个所述电机转动,多个所述电机分别用于驱动对应的全向轮转动,包括:First of all, the first aspect of the present application provides a method for controlling a movable platform. The movable platform includes a power system. The power system includes at least one motor controller, multiple motors, and one-to-one correspondence with the motors. The at least one motor controller is used to control the rotation of the multiple motors, and the multiple motors are respectively used to drive the corresponding omnidirectional wheels to rotate, including:
获取用于控制所述可移动平台在坡道上的静止指令;Acquiring a stationary instruction for controlling the movable platform on the ramp;
根据所述静止指令指向的目标位置与所述可移动平台当前位置的偏差,确定所述可移动平台的初始加速度;以及,基于所述坡道的坡度确定所述可移动平台的补偿加速度;Determine the initial acceleration of the movable platform according to the deviation between the target position pointed to by the stationary instruction and the current position of the movable platform; and determine the compensated acceleration of the movable platform based on the slope of the ramp;
根据所述初始加速度以及所述补偿加速度确定所述可移动平台的移动速度;Determining the moving speed of the movable platform according to the initial acceleration and the compensated acceleration;
基于所述移动速度确定多个所述全向轮的目标转速,以由所述电机控制器控制多个所述电机达到所述目标转速。The target rotation speeds of a plurality of the omnidirectional wheels are determined based on the moving speed, so that the motor controller controls the plurality of motors to reach the target rotation speed.
根据本申请实施例的第二方面,提供一种可移动平台的控制设备,所述可移动平台包括动力系统,所述动力系统包括至少一个电机控制器、多个电机以及与所述电机一一对应的多个全向轮,所述至少一个电机控制器用于控制多个所述电机转动,多个所述电机分别用于驱动对应的全向轮转动,所述控制设备包括:存储器和处理器;According to a second aspect of the embodiments of the present application, there is provided a control device for a movable platform, the movable platform includes a power system, the power system includes at least one motor controller, a plurality of motors and one-to-one with the motor Corresponding to multiple omnidirectional wheels, the at least one motor controller is used to control the rotation of the multiple motors, and the multiple motors are respectively used to drive the corresponding omnidirectional wheels to rotate, and the control device includes: a memory and a processor ;
所述存储器用于存储程序代码;The memory is used to store program codes;
所述处理器,调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor calls the program code, and when the program code is executed, is used to perform the following operations:
获取用于控制所述可移动平台在坡道上的静止指令;Acquiring a stationary instruction for controlling the movable platform on the ramp;
根据所述静止指令指向的目标位置与所述可移动平台当前位置的偏差,确定所述可移动平台的初始加速度;以及,基于所述坡道的坡度确定所述可移动平台的补偿加速度;Determine the initial acceleration of the movable platform according to the deviation between the target position pointed to by the stationary instruction and the current position of the movable platform; and determine the compensated acceleration of the movable platform based on the slope of the ramp;
根据所述初始加速度以及所述补偿加速度确定所述可移动平台的移动速度;Determining the moving speed of the movable platform according to the initial acceleration and the compensated acceleration;
基于所述移动速度确定多个所述全向轮的目标转速,以由所述电机控制器控制多个所述电机达到所述目标转速。The target rotation speeds of a plurality of the omnidirectional wheels are determined based on the moving speed, so that the motor controller controls the plurality of motors to reach the target rotation speed.
根据本申请实施例的第三方面,提供一种可移动平台,包括:According to a third aspect of the embodiments of the present application, a movable platform is provided, including:
机身;body;
动力系统,安装在所述机身,用于驱动所述可移动平台运动,所述动力系 统包括至少一个电机控制器、多个电机以及与所述电机一一对应的多个全向轮,所述至少一个电机控制器用于控制多个所述电机转动,多个所述电机分别用于驱动对应的全向轮转动;The power system is installed on the body and used to drive the movable platform to move. The power system includes at least one motor controller, a plurality of motors, and a plurality of omnidirectional wheels corresponding to the motors one to one. The at least one motor controller is used to control the rotation of multiple motors, and the multiple motors are respectively used to drive the corresponding omni wheel to rotate;
以及第二方面中任一项所述的控制设备。And the control device according to any one of the second aspect.
根据本申请实施例的第四方面,还提供了一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现第一方面中任一所述方法中的步骤。According to the fourth aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having computer instructions stored thereon, which implement the steps in any of the methods in the first aspect when the instructions are executed by a processor.
本申请的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present application may include the following beneficial effects:
在获取到用于控制可移动平台在坡道上的静止指令之后,根据所述静止指令指向的目标位置与所述可移动平台当前位置的偏差,确定所述可移动平台的初始加速度,以及,基于所述坡道的坡度确定所述可移动平台的补偿加速度,然后根据所述初始加速度以及所述补偿加速度确定所述可移动平台的移动速度,最后基于所述移动速度确定多个所述全向轮的目标转速,以由所述电机控制器控制多个所述电机达到所述目标转速,从而实现所述可移动平台在坡道上保持静止;本实施例通过获取补偿加速度,并将所述补偿加速度作为最终获取的目标转速的决定因素之一,从而抵消所述坡道的坡度对所述可移动平台的影响,使得所述可移动平台可以在坡道上保持静止状态。After obtaining the stationary instruction for controlling the movable platform on the ramp, determine the initial acceleration of the movable platform according to the deviation between the target position pointed to by the stationary instruction and the current position of the movable platform, and, based on The slope of the ramp determines the compensation acceleration of the movable platform, and then determines the moving speed of the movable platform according to the initial acceleration and the compensated acceleration, and finally determines a plurality of the omnidirectionals based on the moving speed The target rotation speed of the wheel is controlled by the motor controller to achieve the target rotation speed by the motors, so that the movable platform remains stationary on the slope; this embodiment obtains the compensation acceleration and sets the compensation Acceleration is used as one of the determinants of the final target rotation speed, so as to offset the influence of the slope of the ramp on the movable platform, so that the movable platform can remain stationary on the ramp.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the application.
附图说明Description of the drawings
图1为本申请根据一示例性实施例示出的由4个全向轮组成的全向底盘的示意图;Fig. 1 is a schematic diagram of an omnidirectional chassis composed of 4 omnidirectional wheels according to an exemplary embodiment of the present application;
图2A为本申请根据一示例性实施例示出的一种瑞典轮结构的侧视图;Fig. 2A is a side view of a Swedish wheel structure according to an exemplary embodiment of the application;
图2B为本申请根据一示例性实施例示出的一种瑞典轮结构的俯视图;Fig. 2B is a top view of a Swedish wheel structure according to an exemplary embodiment of the application;
图2C为本申请根据一示例性实施例示出的一种麦克纳姆轮结构的侧视 图;Fig. 2C is a side view of a mecanum wheel structure according to an exemplary embodiment of the application;
图2D为本申请根据一示例性实施例示出的一种麦克纳姆轮结构的俯视图;Fig. 2D is a top view of a mecanum wheel structure according to an exemplary embodiment of the application;
图2E为本申请根据一示例性实施例示出的一种麦克纳姆轮结构的实物图;Fig. 2E is a physical diagram of a mecanum wheel structure according to an exemplary embodiment of the application;
图3为本申请根据一示例性实施例示出的可移动平台在坡道的示意图;Fig. 3 is a schematic diagram showing a movable platform on a ramp according to an exemplary embodiment of this application;
图4为本申请根据一示例性实施例示出的可移动平台的控制方法的实施例流程图;Fig. 4 is a flowchart of an embodiment of a method for controlling a movable platform according to an exemplary embodiment of this application;
图5为本申请根据一示例性实施例示出的可移动平台其中一个全向轮的位置示例图;Fig. 5 is an example diagram showing the position of one of the omnidirectional wheels of the movable platform according to an exemplary embodiment of the present application;
图6为本申请根据一示例性实施例示出的控制设备的结构图;Fig. 6 is a structural diagram of a control device according to an exemplary embodiment of the application;
图7为本申请根据一示例性实施例示出的可移动平台的结构图。Fig. 7 is a structural diagram of a movable platform according to an exemplary embodiment of the application.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are only examples of devices and methods consistent with some aspects of the application as detailed in the appended claims.
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit the application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区 分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information. Depending on the context, the word "if" as used herein can be interpreted as "when" or "when" or "in response to determination".
全向轮可实现在平面上(x,y,theta)三个自由度的移动,如图1所示,多个全向轮可组成可移动平台的全向底盘,不同的全向轮组成不同类型的全向轮底盘,比如目前市场上常见的全向轮有麦克纳姆轮和瑞典轮。请参阅图2A以及图2B,其示出了一种瑞典轮的结构,图2A中的瑞典轮的辊子和轮毂成90°夹角;请参阅图2C、图2D以及图2E,图2C以及图2D示出了麦克纳姆轮的结构,图2E示出了麦克纳姆轮的实物图,图2C中可见麦克纳姆轮的辊子和轮毂成45°夹角。The omnidirectional wheel can realize the movement of three degrees of freedom on the plane (x, y, theta). As shown in Figure 1, multiple omnidirectional wheels can form the omnidirectional chassis of the movable platform. Different omnidirectional wheels have different compositions. Types of omnidirectional wheel chassis, for example, the common omnidirectional wheels on the market are Mecanum wheels and Swedish wheels. Please refer to Figure 2A and Figure 2B, which shows the structure of a Swedish wheel, the roller and the hub of the Swedish wheel in Figure 2A form a 90° included angle; please refer to Figure 2C, Figure 2D and Figure 2E, Figure 2C and Figure 2D shows the structure of the mecanum wheel, Fig. 2E shows the physical diagram of the mecanum wheel, and in Fig. 2C, it can be seen that the rollers of the mecanum wheel and the hub form an angle of 45°.
通过对全向底盘中各个全向轮的控制可以让可移动平台进行前行、横移、斜行、旋转及其组合等运动方式。可移动平台包括动力系统,所述动力系统包括至少一个电机控制器、多个电机以及与所述电机一一对应的多个全向轮,所述至少一个电机控制器用于控制多个所述电机转动,多个所述电机分别用于驱动对应的全向轮转动;其中,对于所述电机控制器、电机以及全向轮的具体数量,可依据实际情况进行具体设置,本申请实施例对此不做任何限制。在一个具体的例子中,所述可移动平台可为轮式机器人,所述轮式机器人包括2个电机控制器、2个电机以及2个全向轮,所述电机控制器、电机以及全向轮一一对应,由电机控制器控制电机转动,进而电机驱动全向轮转动。当然在其他实施例中,电机控制器、电机以及全向轮的数量均为3个、4个、5个或更多个。Through the control of each omnidirectional wheel in the omnidirectional chassis, the movable platform can be moved forward, laterally, obliquely, rotating and their combinations. The movable platform includes a power system, the power system includes at least one motor controller, a plurality of motors, and a plurality of omnidirectional wheels corresponding to the motors one-to-one, and the at least one motor controller is used to control a plurality of the motors Rotation, a plurality of the motors are respectively used to drive the corresponding omnidirectional wheels to rotate; wherein, the specific number of the motor controller, the motors, and the omnidirectional wheels can be specifically set according to the actual situation. There are no restrictions. In a specific example, the movable platform may be a wheeled robot, the wheeled robot includes 2 motor controllers, 2 motors and 2 omnidirectional wheels, the motor controller, the motor and the omnidirectional wheel The wheels correspond one to one, and the motor controller controls the rotation of the motor, and then the motor drives the omnidirectional wheel to rotate. Of course, in other embodiments, the number of motor controllers, motors and omnidirectional wheels are all 3, 4, 5 or more.
其中,电机的工作环路通常有3种工作模式,分别为电流环、速度环和位置环,其主要的作用是使误差越来越少,使控制精度更高更准确更迅速并实现自动控制;电流环是电流反馈系统,由于电机的电流与转矩存在正比关系,在电流环的工作模式下,电机控制器可以对电机的转矩进行控制;速度环是速度反馈系统,在速度环的工作模式下,电机控制器可以对电机的转速进行控制;位置环是位置反馈系统,在位置环的工作模式下,电机控制器可以对电机位置进 行控制。Among them, the working loop of the motor usually has three working modes, namely current loop, speed loop and position loop. Its main function is to make the error less and less, make the control precision higher, more accurate and faster, and realize automatic control. ; The current loop is a current feedback system. Because the current and torque of the motor are proportional to each other, the motor controller can control the torque of the motor in the working mode of the current loop; the speed loop is a speed feedback system. In the working mode, the motor controller can control the speed of the motor; the position loop is a position feedback system. In the working mode of the position loop, the motor controller can control the motor position.
相关技术中对于可移动平台中全向底盘的控制方式通常是:根据可移动平台想要达到的目标速度,计算出组成全向底盘的每个全向轮的目标转速,然后让每个全向轮对应的电机工作在速度环模式下,即由电机控制器控制全向轮对应的电机达到目标转速,从而驱动全向轮的转动。In the related art, the control method for the omnidirectional chassis in the movable platform is usually: according to the target speed that the movable platform wants to achieve, calculate the target speed of each omnidirectional wheel that constitutes the omnidirectional chassis, and then let each omnidirectional chassis The motor corresponding to the wheel works in the speed loop mode, that is, the motor controller controls the motor corresponding to the omnidirectional wheel to reach the target speed, thereby driving the rotation of the omnidirectional wheel.
但是,发明人在实现本发明的过程中,发现:若可移动平台在坡道上行驶,请参阅图3,由于坡道相对于水平面存在坡度tilt,使得重力加速度g在坡道上存在一分量g*sin(tilt)若可移动平台在坡道上静止时仍以上述控制方式获取的目标转速对可移动平台进行控制,由于没有考虑到可移动平台还受到加速度g*sin(tilt)的影响,使得可移动平台只能在0速上下保持波动,而难以实现让可移动平台在坡道上保持速度为0或者相对位置静止。However, in the process of implementing the present invention, the inventor found that if the movable platform is traveling on a ramp, please refer to Figure 3. Because the ramp has a tilt relative to the horizontal plane, there is a component g* of the gravity acceleration g on the ramp. sin(tilt) If the movable platform is still on the ramp and still uses the target speed obtained by the above control method to control the movable platform, because the movable platform is also affected by the acceleration g*sin(tilt), it can be The mobile platform can only keep fluctuating up and down at 0 speed, but it is difficult to keep the mobile platform at 0 speed or relatively stationary on the ramp.
针对上述问题,本申请实施例提供了一种可移动平台的控制方法,使得所述可移动平台在坡道上可以保持速度为0或者相对位置静止,请参阅图4,为本申请根据一示例性实施例示出的一种可移动平台的控制方法的实施例流程图,所述控制方法可由控制设备来执行,所述控制方法包括:In response to the above problem, the embodiment of the present application provides a method for controlling a movable platform, so that the movable platform can maintain a speed of 0 or a relative position on a ramp. Please refer to FIG. 4, which is based on an example of this application. The embodiment shows a flowchart of an embodiment of a method for controlling a movable platform. The control method may be executed by a control device, and the control method includes:
步骤S101,获取用于控制所述可移动平台在坡道上的静止指令。Step S101: Obtain a stationary instruction for controlling the movable platform on the ramp.
步骤S102,根据所述静止指令指向的目标位置与所述可移动平台当前位置的偏差,确定所述可移动平台的初始加速度。Step S102: Determine the initial acceleration of the movable platform according to the deviation between the target position pointed to by the stationary instruction and the current position of the movable platform.
步骤S103,基于所述坡道的坡度确定所述可移动平台的补偿加速度。Step S103: Determine the compensation acceleration of the movable platform based on the slope of the ramp.
步骤S104,根据所述初始加速度以及所述补偿加速度确定所述可移动平台的移动速度。Step S104: Determine the moving speed of the movable platform according to the initial acceleration and the compensated acceleration.
步骤S105,基于所述移动速度确定多个所述全向轮的目标转速,以由所述电机控制器控制多个所述电机达到所述目标转速。Step S105: Determine the target rotation speed of the plurality of omnidirectional wheels based on the moving speed, so that the motor controller controls the plurality of motors to reach the target rotation speed.
其中,驱动所述可移动平台移动的方式包括但不限于以下方式:Wherein, the manner of driving the movable platform to move includes but is not limited to the following manners:
在第一种可能的实现方式中,所述可移动平台可以在用户的操作下行驶,作为例子,用户可以在与所述可移动平台关联的遥控设备上进行操作,所述遥 控设备基于用户的操作生成对应的行驶指令并发送至所述可移动平台,以驱使所述可移动平台移动。In the first possible implementation manner, the movable platform can be driven under the operation of the user. As an example, the user can operate on a remote control device associated with the movable platform, and the remote control device is based on the user’s The operation generates a corresponding driving instruction and sends it to the movable platform to drive the movable platform to move.
在第二种可能的实现方式中,可以在所述可移动平台预先设置控制程序,所述可移动平台可以运行预先设置的控制程序,执行移动、静止、旋转等运动方式。In the second possible implementation manner, a control program may be preset on the movable platform, and the movable platform may run the preset control program, and execute movement modes such as moving, stationary, and rotating.
在第三种可能的实现方式中,所述可移动平台可以基于人工智能技术制定的原则进行智能学习,以基于智能学习的结果自动判断自身当前应该进行的运动方式,以进行相应的运动。In a third possible implementation manner, the mobile platform can perform intelligent learning based on principles established by artificial intelligence technology, and automatically determine the current exercise mode it should perform based on the results of intelligent learning to perform corresponding exercises.
在一实施例中,若所述可移动平台在坡道上行驶,并基于自身实际情况需要静止停在坡道上时,所述可移动平台上的控制设备可以基于上述实现方式获取用于控制所述可移动平台在坡道上的静止指令,以基于所述静止指令对所述可移动平台进行静止控制;其中,所述静止指令也可以基于其他方式获取,本申请实施例对此不做任何限制。In an embodiment, if the movable platform is driving on a ramp and needs to stop on the ramp based on its actual situation, the control device on the movable platform may obtain the control device for controlling the The stationary command of the movable platform on the ramp is used to perform stationary control of the movable platform based on the stationary command; wherein the stationary command can also be obtained in other ways, and the embodiment of the present application does not impose any limitation on this.
在获取到所述静止指令之后,所述控制设备可以根据所述静止指令指向的目标位置与所述可移动平台当前位置的偏差,确定所述可移动平台的初始加速度。After acquiring the stationary instruction, the control device may determine the initial acceleration of the movable platform according to the deviation between the target position pointed to by the stationary instruction and the current position of the movable platform.
其中,本申请实施例对于所述目标位置的来源不做任何限制,其可依据实际情况进行具体设置,在一个例子中,可以在所述可移动平台上预先存储静止指令与目标位置的对应关系,然后所述控制设备基于获取的静止指令与所述对应关系获取所述目标位置;在另一例子中,所述静止指令也可以包括所述目标位置的信息,以使得所述控制设备在获取到所述静止指令的同时,可以获取所述静止指令指向的目标位置。Among them, the embodiment of the present application does not impose any restrictions on the source of the target position, which can be specifically set according to actual conditions. In one example, the corresponding relationship between the stationary instruction and the target position may be pre-stored on the movable platform , And then the control device obtains the target position based on the obtained stationary instruction and the corresponding relationship; in another example, the stationary instruction may also include the target position information, so that the control device is acquiring At the same time as the stationary instruction, the target position pointed to by the stationary instruction can be acquired.
另外,所述可移动平台当前位置可以基于IMU模块测量的可移动平台的加速度和角速度确定,所述IMU模块(Inertial measurement unit,惯性测量单元)是测量物体三轴姿态角(或角速率)以及加速度的装置,一般的,一个IMU包含了三个单轴的加速度计和三个单轴的陀螺,可以测量空间里三个加速度方向和 三个角速度方向,在一个例子中,所述控制设备获取电机传感器测量的全向轮转动的角度,然后基于所述全向轮转动的角度以及全向轮的半径得到所述全向轮的位移,将各个全向轮的位移与IMU模块测量的可移动平台的加速度和角速度进行融合计算,得到所述可移动平台当前位置。In addition, the current position of the movable platform can be determined based on the acceleration and angular velocity of the movable platform measured by the IMU module. The IMU module (Inertial Measurement Unit, inertial measurement unit) measures the three-axis attitude angle (or angular velocity) of the object and Acceleration device, generally, an IMU contains three single-axis accelerometers and three single-axis gyroscopes, which can measure three acceleration directions and three angular velocity directions in space. In one example, the control device obtains The rotation angle of the omnidirectional wheel measured by the motor sensor, and then the displacement of the omnidirectional wheel is obtained based on the rotation angle of the omnidirectional wheel and the radius of the omnidirectional wheel, and the displacement of each omnidirectional wheel is compared with the movable measurement measured by the IMU module The acceleration and angular velocity of the platform are fused and calculated to obtain the current position of the movable platform.
在一种实现方式中,所述控制设备可以通过位置控制器以及速度控制器确定所述可移动平台的初始加速度,所述控制设备基于获取的可移动平台的目标位置以及当前位置确定两者之间的偏差,并将其发送至所述位置控制器,所述位置控制器利用所述目标位置与当前位置的偏差,确定所述可移动平台的初始速度,然后所述控制设备基于所述初始速度以及获取的可移动平台的当前速度确定两者之间的偏差,并将所述偏差的数据发送至所述速度控制器,所述速度控制器根据所述初始速度与当前速度的偏差,确定所述初始加速度;其中,所述当前速度可以基于IMU模块测量的可移动平台的加速度和角速度确定。In an implementation manner, the control device may determine the initial acceleration of the movable platform through a position controller and a speed controller, and the control device determines one of the two based on the acquired target position and the current position of the movable platform. And send it to the position controller. The position controller uses the deviation between the target position and the current position to determine the initial speed of the movable platform, and then the control device is based on the initial The speed and the acquired current speed of the movable platform determine the deviation between the two, and send the deviation data to the speed controller. The speed controller determines the deviation between the initial speed and the current speed. The initial acceleration; wherein, the current speed can be determined based on the acceleration and angular velocity of the movable platform measured by the IMU module.
并且,在获取到所述静止指令之后,所述控制设备还基于所述坡道的坡度确定所述可移动平台的补偿加速度,其中,所述坡道的坡度可以基于所述可移动平台当前的姿态数据所确定,所述可移动平台当前的姿态数据可以根据IMU模块测量的可移动平台的加速度和角速度所确定。And, after acquiring the stationary instruction, the control device also determines the compensation acceleration of the movable platform based on the slope of the ramp, wherein the slope of the ramp may be based on the current The posture data is determined, and the current posture data of the movable platform can be determined according to the acceleration and angular velocity of the movable platform measured by the IMU module.
在一种实现方式中,所述补偿加速度为重力加速度与所述坡度的正弦函数值的乘积,请参阅图3,即所述补偿加速度的数值为g*sin(tilt),另外,所述补偿加速度的方向根据所述可移动平台具体的运动方式(上坡、下坡)所确定,所述补偿加速度的方向与重力加速度在坡道上的方向相反;可以看出,本申请实施例通过获取所述补偿加速度,并将所述补偿加速度作为所述全向轮的目标转速的决定因素之一,能够抵消重力加速度在坡道上所造成的影响,使得可移动平台在坡道上保持静止。In one implementation, the compensation acceleration is the product of the gravitational acceleration and the sine function value of the slope. Please refer to FIG. 3, that is, the value of the compensation acceleration is g*sin(tilt). In addition, the compensation The direction of acceleration is determined according to the specific movement mode (uphill, downhill) of the movable platform, and the direction of the compensation acceleration is opposite to the direction of the gravitational acceleration on the slope; it can be seen that the embodiment of the application obtains The compensation acceleration, and using the compensation acceleration as one of the determining factors of the target rotation speed of the omnidirectional wheel, can offset the influence of the gravitational acceleration on the slope, so that the movable platform remains stationary on the slope.
需要说明的是,本申请实施例对于步骤S102以及步骤S103执行的先后顺序不做任何限制,可以依据实际情况进行具体设置,若所述控制设备有足够的运行资源,则可以同时执行步骤S102以及步骤S103,如所述控制设备运 行资源有限,则可以先执行步骤S102再执行步骤S103,或者也可以先执行步骤S103再执行步骤S102。It should be noted that the embodiment of the present application does not impose any restrictions on the order of execution of step S102 and step S103. Specific settings can be made according to actual conditions. If the control device has sufficient operating resources, steps S102 and S103 can be executed simultaneously. In step S103, if the operating resources of the control device are limited, step S102 may be executed first and then step S103, or step S103 may be executed first and then step S102 may be executed.
接着,在确定所述可移动平台的初始加速度以及补偿加速度之后,所述控制设备根据所述初始加速度以及所述补偿加速度确定所述可移动平台的移动速度,所述移动速度为对所述初始加速度以及所述补偿加速度之和进行积分的结果。Then, after determining the initial acceleration and the compensation acceleration of the movable platform, the control device determines the movement speed of the movable platform according to the initial acceleration and the compensation acceleration, and the movement speed is The result of integration of the sum of acceleration and the compensation acceleration.
最后,所述控制设备基于所述移动速度确定多个所述全向轮的目标转速,以由所述电机控制器控制多个所述电机达到所述目标转速,本申请实施例中考虑到重力加速度在坡道上的影响,基于重力加速度在坡道上的分量调整所述目标转速的大小,使得所述可移动平台可以基于所述目标转速在坡道上保持相对位置静止,避免因重力加速度在坡道上的分量的影响导致所述可移动平台在0速上下波动。Finally, the control device determines the target rotational speeds of the multiple omnidirectional wheels based on the moving speed, so that the motor controller controls the multiple motors to reach the target rotational speed. In this embodiment, gravity is taken into consideration. The effect of acceleration on the slope, the size of the target speed is adjusted based on the component of the gravitational acceleration on the slope, so that the movable platform can remain relatively stationary on the slope based on the target speed, and avoid gravitational acceleration on the slope The influence of the component causes the movable platform to fluctuate up and down at zero speed.
在一实施例中,所述目标转速基于所述移动速度以及指定混控矩阵所确定,所述混控矩阵表示所述目标转速与所述移动速度的转换关系,在一个例子中,所述目标转速为所述移动速度与指定混控矩阵的乘积与所述全向轮的半径的比值取负的结果。In an embodiment, the target rotation speed is determined based on the moving speed and a designated mixing control matrix, and the mixing control matrix represents the conversion relationship between the target rotation speed and the moving speed. In an example, the target The rotation speed is the result of the negative ratio of the product of the moving speed and the designated mixing control matrix to the radius of the omnidirectional wheel.
作为例子,以所述可移动平台包括4个全向轮为例进行说明:请参阅图5,示出所述可移动平台其中一个全向轮的位置(图中的长方形),其中,xoy表示以运动中心为原点的直角坐标系,x’o’y’表示以轮毂中心为原点的直角坐标系,α i表示轮毂与辊子的偏置角,β i表示直线OO’与X轴的夹角,设获取到的所述可移动平台的移动速度为(v x,v y,w),4个全向轮的目标转速分别为w 1、w 2、w 3、w 4,则所述控制设备基于所述移动速度以及指定混控矩阵可以确定的4个全向轮的目标转速为: As an example, take the movable platform including 4 omnidirectional wheels as an example: please refer to Figure 5, which shows the position of one of the omnidirectional wheels of the movable platform (the rectangle in the figure), where xoy represents The Cartesian coordinate system with the center of motion as the origin, x'o'y' represents the Cartesian coordinate system with the hub center as the origin, α i represents the offset angle between the hub and the roller, β i represents the angle between the straight line OO' and the X axis , Assuming that the acquired moving speed of the movable platform is (v x , v y , w), the target rotation speeds of the four omnidirectional wheels are respectively w 1 , w 2 , w 3 , and w 4 , then the control The target rotational speeds of the 4 omnidirectional wheels that the device can determine based on the moving speed and the designated mixing control matrix are:
Figure PCTCN2019099415-appb-000001
其中,r表示全向轮的半径、l 1、l 2、l 3以及l 4表示各个全向轮的中心到可移动平台的旋转中心的距离。
Figure PCTCN2019099415-appb-000001
Among them, r represents the radius of the omnidirectional wheel, and l 1 , l 2 , l 3 and l 4 represent the distance from the center of each omnidirectional wheel to the center of rotation of the movable platform.
作为例子,假设所述可移动平台处于坡度为tilt的坡道上,当前所述可移动平台的控制设备获取到静止指令,基于静止指令进行如下控制:设获取到的可移动平台当前的位置用坐标表示为(x0,y0,theta0),目标位置为(x1,y1,theta1),在当前T1时刻,所述控制设备获取所述当前位置与目标位置两者之间的偏差(x1-x0,y1-y0,theta1-theta0),并将所述偏差发送至位置控制器,所述位置控制器基于所述偏差确定所述可移动平台的初始速度(Vx0,Vy0,W0),其中W0表示可移动平台的旋转速度,然后所述控制器获取可移动平台当前速度(Vx,Vy,W),确定所述可移动平台的初始速度与当前速度的偏差,并将所述偏差发送至速度控制器,所述速度控制器根据所述初始速度与当前速度的偏差,确定所述初始加速度,另外所述控制设备基于坡道的坡度tilt以及重力加速度获取加速度g*sin(tilt),设可移动平台与坡道的夹角为beta,则获取到可移动平台在各个自由度上的补偿加速度为(g*sin(tilt)*cos(beta),g*sin(tilt)*sin(beta),0),其中旋转方向不需要补偿,所述控制器对对所述初始加速度以及所述补偿加速度之和进行积分,获取所述可移动平台的移动速度,并基于所述移动速度以及指定混控矩阵确定各个全向轮的目标转速,以由所述电机控制器控制多个所述电机达到所述目标转速,以上过程即为T1时刻的可移动平台在坡道上保持静止的控制过程,在所述可移动平台接收到移动指令之前,所述可移动平台基于上述类似的方式在坡道上保持静止。As an example, suppose that the movable platform is on a slope with a tilt, and the control device of the movable platform currently obtains a stationary command, and performs the following control based on the stationary command: Set the acquired current position of the movable platform with coordinates Expressed as (x0, y0, theta0), the target position is (x1, y1, theta1), at the current time T1, the control device obtains the deviation between the current position and the target position (x1-x0, y1 -y0,theta1-theta0), and send the deviation to a position controller, which determines the initial speed (Vx0, Vy0, W0) of the movable platform based on the deviation, where W0 represents movable The rotation speed of the platform, and then the controller obtains the current speed (Vx, Vy, W) of the movable platform, determines the deviation between the initial speed of the movable platform and the current speed, and sends the deviation to the speed controller, The speed controller determines the initial acceleration according to the deviation between the initial speed and the current speed. In addition, the control device obtains the acceleration g*sin(tilt) based on the slope tilt of the ramp and the acceleration of gravity, and the movable platform is set with The angle of the ramp is beta, and the compensation acceleration of the movable platform in each degree of freedom is obtained as (g*sin(tilt)*cos(beta),g*sin(tilt)*sin(beta),0) , Wherein the direction of rotation does not need compensation, the controller integrates the initial acceleration and the sum of the compensated acceleration to obtain the moving speed of the movable platform, and determine based on the moving speed and a designated mixing control matrix The target rotation speed of each omnidirectional wheel is controlled by the motor controller to achieve the target rotation speed by the multiple motors. The above process is the control process for the movable platform to remain stationary on the ramp at time T1. Before the mobile platform receives the movement instruction, the movable platform remains stationary on the ramp based on the similar manner described above.
与本申请的方法的实施例相对应,本申请还提供了控制设备、可移动平台以及计算机可读存储介质的实施例。Corresponding to the embodiments of the method of the present application, the present application also provides embodiments of a control device, a movable platform, and a computer-readable storage medium.
请参阅图6,为本申请根据一示例性实施例示出的一种可移动平台的控制设备的结构框图。其中,所述可移动平台包括动力系统,所述动力系统包括至少一个电机控制器、多个电机以及与所述电机一一对应的多个全向轮,所述至少一个电机控制器用于控制多个所述电机转动,多个所述电机分别用于驱动对应的全向轮转动。Please refer to FIG. 6, which is a structural block diagram of a control device of a movable platform according to an exemplary embodiment of this application. Wherein, the movable platform includes a power system, the power system includes at least one motor controller, a plurality of motors, and a plurality of omnidirectional wheels corresponding to the motors one-to-one, and the at least one motor controller is used to control the One of the motors rotates, and a plurality of the motors are respectively used to drive the corresponding omni wheel to rotate.
图6所述的实施例中,所述控制设备20包括:存储器21和处理器22;In the embodiment shown in FIG. 6, the control device 20 includes: a memory 21 and a processor 22;
所述存储器21用于存储程序代码23;The memory 21 is used to store program code 23;
所述处理器22,调用所述程序代码23,当程序代码23被执行时,用于执行以下操作:The processor 22 calls the program code 23, and when the program code 23 is executed, is used to perform the following operations:
获取用于控制所述可移动平台在坡道上的静止指令;Acquiring a stationary instruction for controlling the movable platform on the ramp;
根据所述静止指令指向的目标位置与所述可移动平台当前位置的偏差,确定所述可移动平台的初始加速度;以及,基于所述坡道的坡度确定所述可移动平台的补偿加速度;Determine the initial acceleration of the movable platform according to the deviation between the target position pointed to by the stationary instruction and the current position of the movable platform; and determine the compensated acceleration of the movable platform based on the slope of the ramp;
根据所述初始加速度以及所述补偿加速度确定所述可移动平台的移动速度;Determining the moving speed of the movable platform according to the initial acceleration and the compensated acceleration;
基于所述移动速度确定多个所述全向轮的目标转速,以由所述电机控制器控制多个所述电机达到所述目标转速。The target rotation speeds of a plurality of the omnidirectional wheels are determined based on the moving speed, so that the motor controller controls the plurality of motors to reach the target rotation speed.
所述处理器22执行所述存储器21中包括的程序代码23,所述处理器22可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 22 executes the program code 23 included in the memory 21, and the processor 22 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors). Processor, DSP), Application Specific Integrated Circuit (ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器21存储所述的控制方法的程序代码,所述存储器21可以包括至少一种类型的存储介质,存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,控制设备20可以与通过网络连接执行存储器的存储功能的网络存储装置协作。存储器21可以是控制设备20的内部存储单元,例如控制设备20的硬盘或内存。存储器21也可以是控制设备20的外部存储设备,例如控制设备20上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器21还可以既包括控制设备20的内部存储单元也包括外部存储设备。存储器21用于存储计算机程序代码23以及控制设备20所需的其他程序和数据。存储器21还可以用于暂时地存储已经输出或者将要输出的数据。The memory 21 stores the program code of the control method. The memory 21 may include at least one type of storage medium. The storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.) ), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk , CD, etc. Also, the control device 20 may cooperate with a network storage device that performs the storage function of the memory through a network connection. The memory 21 may be an internal storage unit of the control device 20, such as a hard disk or a memory of the control device 20. The memory 21 may also be an external storage device of the control device 20, for example, a plug-in hard disk equipped on the control device 20, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, and a flash memory card (Flash). Card) and so on. Further, the memory 21 may also include both an internal storage unit of the control device 20 and an external storage device. The memory 21 is used to store computer program codes 23 and other programs and data required to control the device 20. The memory 21 can also be used to temporarily store data that has been output or will be output.
这里描述的各种实施方式可以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器中并且由控制器执行。The various embodiments described herein can be implemented using a computer-readable medium such as computer software, hardware, or any combination thereof. For hardware implementation, the implementation described here can be achieved by using application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays ( FPGA), a processor, a controller, a microcontroller, a microprocessor, and an electronic unit designed to perform the functions described herein are implemented. For software implementation, implementations such as procedures or functions may be implemented with a separate software module that allows execution of at least one function or operation. The software codes can be implemented by software applications (or programs) written in any suitable programming language, and the software codes can be stored in a memory and executed by the controller.
所述控制设备20可包括,但不仅限于,存储器21、处理器22。本领域技术人员可以理解,图6仅仅是控制设备20的示例,并不构成对控制设备20的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如设备还可以包括输入输出设备、网络接入设备等。The control device 20 may include, but is not limited to, a memory 21 and a processor 22. Those skilled in the art can understand that FIG. 6 is only an example of the control device 20, and does not constitute a limitation on the control device 20. It may include more or less components than shown, or a combination of certain components, or different components. For example, the device may also include input and output devices, network access devices, and so on.
作为例子,所述初始加速度的确定包括:As an example, the determination of the initial acceleration includes:
利用所述目标位置与当前位置的偏差,确定所述可移动平台的初始速度;Using the deviation between the target position and the current position to determine the initial speed of the movable platform;
根据所述初始速度与当前速度的偏差,确定初始加速度。Determine the initial acceleration according to the deviation between the initial speed and the current speed.
作为例子,所述补偿加速度为重力加速度与所述坡度的正弦函数值的乘积。As an example, the compensation acceleration is the product of the gravitational acceleration and the value of the sine function of the slope.
作为例子,所述移动速度为对所述初始加速度以及所述补偿加速度之和进行积分的结果。As an example, the moving speed is a result of integrating the sum of the initial acceleration and the compensation acceleration.
作为例子,所述坡道的坡度基于所述可移动平台当前的姿态数据所确定;所述可移动平台当前的姿态数据根据IMU模块测量的可移动平台的加速度和角速度所确定。As an example, the slope of the ramp is determined based on the current attitude data of the movable platform; the current attitude data of the movable platform is determined based on the acceleration and angular velocity of the movable platform measured by the IMU module.
作为例子,所述当前位置以及所述当前速度基于IMU模块测量的可移动平台的加速度和角速度所确定。As an example, the current position and the current speed are determined based on the acceleration and angular velocity of the movable platform measured by the IMU module.
作为例子,所述目标转速基于所述移动速度以及指定混控矩阵所确定;所述混控矩阵表示所述目标转速与所述移动速度的转换关系。As an example, the target rotation speed is determined based on the moving speed and a designated mixing control matrix; the mixing control matrix represents a conversion relationship between the target rotation speed and the moving speed.
作为例子,所述目标转速为所述移动速度与指定混控矩阵的乘积与所述全向轮的半径的比值取负的结果。As an example, the target rotation speed is a result of a negative ratio of the product of the moving speed and the designated mixing control matrix to the radius of the omnidirectional wheel.
上述设备中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and roles of each unit in the above-mentioned device, refer to the implementation process of the corresponding steps in the above-mentioned method for details, which will not be repeated here.
相应的,如图7所示,本申请实施例还提供一种可移动平台30,所述可移动平台包括机身31。Correspondingly, as shown in FIG. 7, an embodiment of the present application further provides a movable platform 30, and the movable platform includes a body 31.
动力系统32,安装在所述机身31,用于驱动所述可移动平台30运动,所述动力系统32包括至少一个电机控制器321、多个电机322以及与所述电机322一一对应的多个全向轮323,所述至少一个电机控制器321用于控制多个所述电机322转动,多个所述电机322分别用于驱动对应的全向轮323转动。The power system 32 is installed on the body 31 and used to drive the movable platform 30 to move. The power system 32 includes at least one motor controller 321, a plurality of motors 322, and one-to-one correspondence with the motors 322. A plurality of omnidirectional wheels 323, the at least one motor controller 321 is used to control the rotation of the plurality of motors 322, and the plurality of motors 322 are respectively used to drive the corresponding omnidirectional wheels 323 to rotate.
以及安装在所述机身31的上述的控制设备20。And the aforementioned control device 20 installed in the body 31.
作为例子,所述可移动平台30可以为轮式机器人。As an example, the movable platform 30 may be a wheeled robot.
需要说明的是,图7中以所述动力系统包括3个电机控制器321、3个电机322以及3个全向轮323,所述电机控制器、电机以及全向轮一一对应进行示例,在实际应用中,所述电机控制器、电机以及全向轮的数量可依据实际需求进行具体设置,例如在其他实施例中还可以是4个电机控制器、4个电机、以及4个全向轮,本申请实施例对此不做任何限制。It should be noted that, in FIG. 7, the power system includes three motor controllers 321, three motors 322, and three omnidirectional wheels 323, and the motor controllers, motors, and omnidirectional wheels correspond to each other as an example. In practical applications, the number of motor controllers, motors, and omnidirectional wheels can be specifically set according to actual needs. For example, in other embodiments, it can also be 4 motor controllers, 4 motors, and 4 omnidirectional wheels. Round, the embodiment of this application does not impose any restriction on this.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器,上述指令可由装置的处理器执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory including instructions, which may be executed by a processor of a device to complete the foregoing method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
一种非临时性计算机可读存储介质,当存储介质中的指令由终端的处理器执行时,使得终端能够执行上述方法。A non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the terminal, the terminal can execute the above method.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。After considering the specification and practicing the invention disclosed herein, those skilled in the art will easily think of other embodiments of the present application. This application is intended to cover any variations, uses, or adaptive changes of this application. These variations, uses, or adaptive changes follow the general principles of this application and include common knowledge or customary technical means in the technical field not disclosed in this application. . The description and embodiments are only regarded as exemplary, and the true scope and spirit of the application are pointed out by the following claims.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that the present application is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the application is only limited by the appended claims.
以上仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above are only the preferred embodiments of this application and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection of this application. Within range.

Claims (19)

  1. 一种可移动平台的控制方法,所述可移动平台包括动力系统,所述动力系统包括至少一个电机控制器、多个电机以及与所述电机一一对应的多个全向轮,所述至少一个电机控制器用于控制多个所述电机转动,多个所述电机分别用于驱动对应的全向轮转动,其特征在于,包括:A method for controlling a movable platform. The movable platform includes a power system. The power system includes at least one motor controller, a plurality of motors, and a plurality of omnidirectional wheels corresponding to the motors one-to-one. One motor controller is used to control the rotation of a plurality of said motors, and the plurality of said motors are respectively used to drive the corresponding omnidirectional wheel to rotate, and is characterized in that it includes:
    获取用于控制所述可移动平台在坡道上的静止指令;Acquiring a stationary instruction for controlling the movable platform on the ramp;
    根据所述静止指令指向的目标位置与所述可移动平台当前位置的偏差,确定所述可移动平台的初始加速度;以及,基于所述坡道的坡度确定所述可移动平台的补偿加速度;Determine the initial acceleration of the movable platform according to the deviation between the target position pointed to by the stationary instruction and the current position of the movable platform; and determine the compensated acceleration of the movable platform based on the slope of the ramp;
    根据所述初始加速度以及所述补偿加速度确定所述可移动平台的移动速度;Determining the moving speed of the movable platform according to the initial acceleration and the compensated acceleration;
    基于所述移动速度确定多个所述全向轮的目标转速,以由所述电机控制器控制多个所述电机达到所述目标转速。The target rotation speeds of a plurality of the omnidirectional wheels are determined based on the moving speed, so that the motor controller controls the plurality of motors to reach the target rotation speed.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述静止指令指向的目标位置与所述可移动平台当前位置的偏差,确定所述可移动平台的初始加速度,包括:The method according to claim 1, wherein the determining the initial acceleration of the movable platform according to the deviation between the target position pointed to by the stationary instruction and the current position of the movable platform comprises:
    利用所述目标位置与当前位置的偏差,确定所述可移动平台的初始速度;Using the deviation between the target position and the current position to determine the initial speed of the movable platform;
    根据所述初始速度与当前速度的偏差,确定初始加速度。Determine the initial acceleration according to the deviation between the initial speed and the current speed.
  3. 根据权利要求1所述的方法,其特征在于,所述补偿加速度为重力加速度与所述坡度的正弦函数值的乘积。The method according to claim 1, wherein the compensation acceleration is a product of a gravitational acceleration and a sine function value of the slope.
  4. 根据权利要求1所述的方法,其特征在于,所述移动速度为对所述初始加速度以及所述补偿加速度之和进行积分的结果。The method according to claim 1, wherein the moving speed is a result of integrating the sum of the initial acceleration and the compensation acceleration.
  5. 根据权利要求1至4任意一项所述的方法,其特征在于,所述坡道的坡度基于所述可移动平台当前的姿态数据所确定;所述可移动平台当前的姿态数据根据IMU模块测量的可移动平台的加速度和角速度所确定。The method according to any one of claims 1 to 4, wherein the slope of the ramp is determined based on the current attitude data of the movable platform; the current attitude data of the movable platform is measured according to the IMU module The acceleration and angular velocity of the movable platform are determined.
  6. 根据权利要求2所述的方法,其特征在于,所述当前位置以及所述当前 速度基于IMU模块测量的可移动平台的加速度和角速度确定。The method according to claim 2, wherein the current position and the current speed are determined based on the acceleration and angular velocity of the movable platform measured by the IMU module.
  7. 根据权利要求1所述的方法,其特征在于,所述目标转速基于所述移动速度以及指定混控矩阵所确定;所述混控矩阵表示所述目标转速与所述移动速度的转换关系。The method according to claim 1, wherein the target rotation speed is determined based on the moving speed and a designated mixing control matrix; the mixing control matrix represents a conversion relationship between the target rotation speed and the moving speed.
  8. 根据权利要求7所述的方法,其特征在于,所述目标转速为所述移动速度与指定混控矩阵的乘积与所述全向轮的半径的比值取负的结果。8. The method according to claim 7, wherein the target rotation speed is a result of a negative ratio of the product of the moving speed and the designated mixing control matrix to the radius of the omnidirectional wheel.
  9. 一种可移动平台的控制设备,所述可移动平台包括动力系统,所述动力系统包括至少一个电机控制器、多个电机以及与所述电机一一对应的多个全向轮,所述至少一个电机控制器用于控制多个所述电机转动,多个所述电机分别用于驱动对应的全向轮转动,其特征在于,所述控制设备包括:存储器和处理器;A control device for a movable platform. The movable platform includes a power system. The power system includes at least one motor controller, a plurality of motors, and a plurality of omnidirectional wheels corresponding to the motors one to one. One motor controller is used to control the rotation of a plurality of the motors, and the plurality of motors are respectively used to drive the rotation of the corresponding omni wheel, wherein the control device includes: a memory and a processor;
    所述存储器用于存储程序代码;The memory is used to store program codes;
    所述处理器,调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor calls the program code, and when the program code is executed, is used to perform the following operations:
    获取用于控制所述可移动平台在坡道上的静止指令;Acquiring a stationary instruction for controlling the movable platform on the ramp;
    根据所述静止指令指向的目标位置与所述可移动平台当前位置的偏差,确定所述可移动平台的初始加速度;以及,基于所述坡道的坡度确定所述可移动平台的补偿加速度;Determine the initial acceleration of the movable platform according to the deviation between the target position pointed by the stationary instruction and the current position of the movable platform; and determine the compensated acceleration of the movable platform based on the slope of the ramp;
    根据所述初始加速度以及所述补偿加速度确定所述可移动平台的移动速度;Determining the moving speed of the movable platform according to the initial acceleration and the compensated acceleration;
    基于所述移动速度确定多个所述全向轮的目标转速,以由所述电机控制器控制多个所述电机达到所述目标转速。The target rotation speeds of the plurality of omnidirectional wheels are determined based on the moving speed, so that the motor controller controls the plurality of motors to reach the target rotation speed.
  10. 根据权利要求9所述的控制设备,其特征在于,所述初始加速度的确定包括:The control device according to claim 9, wherein the determination of the initial acceleration comprises:
    利用所述目标位置与当前位置的偏差,确定所述可移动平台的初始速度;Using the deviation between the target position and the current position to determine the initial speed of the movable platform;
    根据所述初始速度与当前速度的偏差,确定初始加速度。The initial acceleration is determined according to the deviation between the initial speed and the current speed.
  11. 根据权利要求9所述的控制设备,其特征在于,所述补偿加速度为重力加速度与所述坡度的正弦函数值的乘积。The control device according to claim 9, wherein the compensation acceleration is the product of the gravitational acceleration and the value of the sine function of the slope.
  12. 根据权利要求9所述的控制设备,其特征在于,所述移动速度为对所述初始加速度以及所述补偿加速度之和进行积分的结果。The control device according to claim 9, wherein the moving speed is a result of integrating the sum of the initial acceleration and the compensation acceleration.
  13. 根据权利要求9至12任意一项所述的控制设备,其特征在于,所述坡道的坡度基于所述可移动平台当前的姿态数据所确定;所述可移动平台当前的姿态数据根据IMU模块测量的可移动平台的加速度和角速度所确定。The control device according to any one of claims 9 to 12, wherein the slope of the ramp is determined based on the current attitude data of the movable platform; the current attitude data of the movable platform is determined according to the IMU module Determined by the measured acceleration and angular velocity of the movable platform.
  14. 根据权利要求9所述的控制设备,其特征在于,所述当前位置以及所述当前速度基于IMU模块测量的可移动平台的加速度和角速度所确定。The control device according to claim 9, wherein the current position and the current speed are determined based on the acceleration and angular velocity of the movable platform measured by the IMU module.
  15. 根据权利要求9所述的控制设备,其特征在于,所述目标转速基于所述移动速度以及指定混控矩阵所确定;所述混控矩阵表示所述目标转速与所述移动速度的转换关系。8. The control device according to claim 9, wherein the target rotation speed is determined based on the moving speed and a designated mixing control matrix; the mixing control matrix represents a conversion relationship between the target rotation speed and the moving speed.
  16. 根据权利要求15所述的控制设备,其特征在于,所述目标转速为所述移动速度与指定混控矩阵的乘积与所述全向轮的半径的比值取负的结果。The control device according to claim 15, wherein the target rotation speed is the result of a negative ratio of the product of the moving speed and the designated mixing matrix to the radius of the omnidirectional wheel.
  17. 一种可移动平台,其特征在于,包括:A movable platform, characterized in that it comprises:
    机身;body;
    动力系统,安装在所述机身,用于驱动所述可移动平台运动,所述动力系统包括至少一个电机控制器、多个电机以及与所述电机一一对应的多个全向轮,所述至少一个电机控制器用于控制多个所述电机转动,多个所述电机分别用于驱动对应的全向轮转动;The power system is installed on the body and used to drive the movable platform to move. The power system includes at least one motor controller, multiple motors, and multiple omnidirectional wheels corresponding to the motors one-to-one. The at least one motor controller is used to control the rotation of multiple motors, and the multiple motors are respectively used to drive the corresponding omni wheel to rotate;
    以及权利要求9至16任一项所述的控制设备。And the control device according to any one of claims 9 to 16.
  18. 根据权利要求17所述的可移动设备,其特征在于,所述可移动平台为轮式机器人。The movable device according to claim 17, wherein the movable platform is a wheeled robot.
  19. 一种计算机可读存储介质,其特征在于,其上存储有计算机指令,该指令被处理器执行时实现权利要求1至8任意一项所述的方法。A computer-readable storage medium, characterized in that computer instructions are stored thereon, and when the instructions are executed by a processor, the method according to any one of claims 1 to 8 is realized.
PCT/CN2019/099415 2019-08-06 2019-08-06 Control method, control device, mobile platform, and storage medium WO2021022473A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/099415 WO2021022473A1 (en) 2019-08-06 2019-08-06 Control method, control device, mobile platform, and storage medium
CN201980032927.4A CN112154388A (en) 2019-08-06 2019-08-06 Control method, control apparatus, removable platform, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/099415 WO2021022473A1 (en) 2019-08-06 2019-08-06 Control method, control device, mobile platform, and storage medium

Publications (1)

Publication Number Publication Date
WO2021022473A1 true WO2021022473A1 (en) 2021-02-11

Family

ID=73891286

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/099415 WO2021022473A1 (en) 2019-08-06 2019-08-06 Control method, control device, mobile platform, and storage medium

Country Status (2)

Country Link
CN (1) CN112154388A (en)
WO (1) WO2021022473A1 (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080119984A1 (en) * 2006-11-16 2008-05-22 Davor Hrovat Tripped rollover mitigation and prevention systems and methods
CN101189420A (en) * 2005-06-01 2008-05-28 丰田自动车株式会社 Motor vehicle and control method of motor vehicle
CN103380034A (en) * 2011-01-28 2013-10-30 大陆-特韦斯贸易合伙股份公司及两合公司 Method for detecting and correcting vehicle reference speed, and vehicle system
CN103661395A (en) * 2012-08-31 2014-03-26 福特全球技术公司 Dynamic road gradient estimation
CN105116167A (en) * 2015-09-10 2015-12-02 深圳威易森科技有限公司 Acceleration determination method for motor vehicle running on slope plane
CN105313874A (en) * 2014-07-24 2016-02-10 福特全球技术公司 Brake control for stopping/startting vehicle
CN106383517A (en) * 2016-09-30 2017-02-08 汕头大学 Control system used for autonomous mobile robot platform and control method and device thereof
CN107444393A (en) * 2017-07-20 2017-12-08 北京新能源汽车股份有限公司 Brakes control method and device
CN107943026A (en) * 2017-11-09 2018-04-20 国网湖北省电力公司 Mecanum takes turns inspecting robot and its inspection method
CN108162974A (en) * 2016-12-06 2018-06-15 通用汽车环球科技运作有限责任公司 Use the vehicle control of road angle-data
CN109414956A (en) * 2016-07-01 2019-03-01 学校法人东京理科大学 Omnidirection mobile device and its posture control method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3103842B1 (en) * 1999-05-31 2000-10-30 株式会社イトーキ Display case
JP5115133B2 (en) * 2007-10-12 2013-01-09 株式会社エクォス・リサーチ vehicle
US9482536B2 (en) * 2012-05-31 2016-11-01 International Electronic Machines Corp. Pose estimation
CN104483968A (en) * 2014-12-02 2015-04-01 冯炳和 Four-wheel full-direction football robot moving control method based on PID
CN104999925B (en) * 2015-07-23 2018-01-05 北京锐安科技有限公司 The control method and device of balance car
US10521703B2 (en) * 2017-06-21 2019-12-31 Caterpillar Inc. System and method for controlling machine pose using sensor fusion

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101189420A (en) * 2005-06-01 2008-05-28 丰田自动车株式会社 Motor vehicle and control method of motor vehicle
US20080119984A1 (en) * 2006-11-16 2008-05-22 Davor Hrovat Tripped rollover mitigation and prevention systems and methods
CN103380034A (en) * 2011-01-28 2013-10-30 大陆-特韦斯贸易合伙股份公司及两合公司 Method for detecting and correcting vehicle reference speed, and vehicle system
CN103661395A (en) * 2012-08-31 2014-03-26 福特全球技术公司 Dynamic road gradient estimation
CN105313874A (en) * 2014-07-24 2016-02-10 福特全球技术公司 Brake control for stopping/startting vehicle
CN105116167A (en) * 2015-09-10 2015-12-02 深圳威易森科技有限公司 Acceleration determination method for motor vehicle running on slope plane
CN109414956A (en) * 2016-07-01 2019-03-01 学校法人东京理科大学 Omnidirection mobile device and its posture control method
CN106383517A (en) * 2016-09-30 2017-02-08 汕头大学 Control system used for autonomous mobile robot platform and control method and device thereof
CN108162974A (en) * 2016-12-06 2018-06-15 通用汽车环球科技运作有限责任公司 Use the vehicle control of road angle-data
CN107444393A (en) * 2017-07-20 2017-12-08 北京新能源汽车股份有限公司 Brakes control method and device
CN107943026A (en) * 2017-11-09 2018-04-20 国网湖北省电力公司 Mecanum takes turns inspecting robot and its inspection method

Also Published As

Publication number Publication date
CN112154388A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
TWI662388B (en) Obstacle avoidance control system and method for a robot
EP4045390B1 (en) Dynamic planning controller
US20080133053A1 (en) Determination of Foot Placement for Humanoid Push Recovery
US20200332944A1 (en) Control method for non-orthogonal gimbal, gimbal thereof, and storage device
Alexey et al. Stabilization of the motion of a spherical robot using feedbacks
WO2022199146A1 (en) Robot control method and robot based on spiking neural network, and storage medium
Xian et al. A low-cost hardware-in-the-loop-simulation testbed of quadrotor UAV and implementation of nonlinear control schemes
Vidhya et al. Smart Design and Implementation of Self Adjusting Robot using Arduino
WO2021022473A1 (en) Control method, control device, mobile platform, and storage medium
CN113534817A (en) Mobile robot dynamics modeling and trajectory tracking control method and device
CN112720455A (en) Optimal joint acceleration and deceleration calculation method and device and application thereof
Vajnar Model car for the f1/10 autonomous car racing competition
US20230168693A1 (en) Motion state control method and apparatus, device, and readable storage medium
US20200086941A1 (en) Stable balance controller
CN116449820A (en) Unmanned tracked vehicle track tracking control method based on constraint following
WO2022179213A1 (en) Decoupling control method and apparatus for humanoid robot, and humanoid robot
CN114114903A (en) Variable-exponent power approach law-based sliding mode control method for integrating terminal of cricket system
Mundhra et al. Intercepting a falling object: Digital video robot
Savnani et al. Modelling, Design and Control of a Four wheel Holonomic Drive
CN115268510B (en) Holder control method, holder control device, electronic equipment and computer readable storage medium
Corke Advanced Visual Servoing
US20220371284A1 (en) Display guided high-accuracy robotic navigation and motion control system and methods
Peiris et al. Alternative Platform for Vision based Robot Navigation
WO2021208917A1 (en) Method and device for determining barycenter position, legged robot, and storage medium
CN114675629A (en) Movement parameter determination method and device, intelligent equipment and storage medium

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: 19940357

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19940357

Country of ref document: EP

Kind code of ref document: A1