WO2021127942A1 - Mobile platform control method, control terminal, mobile platform, and storage medium - Google Patents
Mobile platform control method, control terminal, mobile platform, and storage medium Download PDFInfo
- Publication number
- WO2021127942A1 WO2021127942A1 PCT/CN2019/127659 CN2019127659W WO2021127942A1 WO 2021127942 A1 WO2021127942 A1 WO 2021127942A1 CN 2019127659 W CN2019127659 W CN 2019127659W WO 2021127942 A1 WO2021127942 A1 WO 2021127942A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- program code
- code package
- package
- target program
- target
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/33—Intelligent editors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
Definitions
- This application relates to the technical field of movable platform control, and in particular to a movable platform control method, a control terminal, a movable platform and a storage medium.
- mobile platforms such as robots, unmanned aircraft, and remote control vehicles on the market all have custom programming functions.
- Users can write program codes through custom programming functions to control the mobile platform to perform advanced actions, such as controlling the mobile platform to perform advanced actions. Rotate shooting and move and rotate shooting according to the set trajectory during the movement.
- users with weak programming skills cannot write program codes through custom programming functions to control the mobile platform to perform advanced actions.
- users want to experience advanced actions on their own mobile platforms they need to consult other users with better programming skills. , But it takes a long learning time to program the advanced actions of the movable platform, which is not convenient for users to program the movable platform, and the user experience is not good.
- this application provides a method for controlling a movable platform, a control terminal, a movable platform, and a storage medium, aiming to improve the programming convenience of the movable platform and improve user experience.
- this application provides a method for controlling a movable platform, including:
- the present application also provides a control terminal, the control terminal including a display device, a memory, and a processor;
- the display device is used to display a custom programming page
- the memory is used to store a computer program
- the processor is configured to execute the computer program and, when the computer program is executed, implement the steps of the movable platform control method as described above.
- this application also provides a movable platform, which includes:
- the platform body includes a chassis main body and a pan/tilt main body provided on the chassis main body, and the pan/tilt main body is used to carry a camera device;
- a power device which is provided on the chassis body, and is used to provide moving power to the platform body;
- the communication device is arranged on the platform body and is used to communicate with the control terminal.
- the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes the above-mentioned removable The steps of the platform control method.
- the embodiment of the application provides a method for controlling a movable platform, a control terminal, a movable platform, and a storage medium.
- the user can customize the programming page to download the program code package, and the control terminal Send the downloaded program code package to the mobile platform, so that the mobile platform loads the program code package, and can control the mobile platform to run the loaded program code based on the program running instruction when the program running instruction triggered by the user is detected
- the package enables the mobile platform to perform corresponding actions, which can reduce the user's programming time, effectively improve the programming convenience of the mobile platform, and greatly improve the user experience.
- FIG. 1 is a schematic flowchart of steps of a method for controlling a movable platform provided by an embodiment of the present application
- Fig. 2 is a schematic diagram of a custom programming page provided by an embodiment of the present application.
- Fig. 3 is a schematic flow chart of sub-steps of the movable platform control method in Fig. 1;
- Fig. 4 is a schematic diagram of a program code package browsing page provided by an embodiment of the present application.
- FIG. 5 is another schematic diagram of a custom programming page provided by an embodiment of the present application.
- Fig. 6 is another schematic diagram of a custom programming page provided by an embodiment of the present application.
- FIG. 7 is another schematic diagram of a custom programming page provided by an embodiment of the present application.
- FIG. 8 is another schematic diagram of a custom programming page provided by an embodiment of the present application.
- FIG. 9 is another schematic diagram of a custom programming page provided by an embodiment of the present application.
- FIG. 10 is another schematic diagram of a custom programming page provided by an embodiment of the present application.
- FIG. 11 is a schematic block diagram of the structure of a control terminal according to an embodiment of the present application.
- Fig. 12 is a schematic structural diagram of a movable platform provided by an embodiment of the present application.
- FIG. 1 is a schematic flowchart of steps of a method for controlling a movable platform according to an embodiment of the present application.
- the movable platform control method can be applied to a control terminal, and a communication connection can be established between the control terminal and the movable platform, so that the control terminal can control the movable platform.
- the control terminal and the movable platform can establish a communication connection through wireless communication, for example, a communication connection through WiFi; it can also establish a communication connection through a wired connection, for example, the control terminal and the movable platform are respectively provided with interfaces, which are realized through the interface Control the communication connection between the terminal and the movable platform.
- control terminals include remote controls, ground control platforms, mobile phones, tablets, laptops, and PC computers.
- Movable platforms include drones, mobile robots and pan-tilts, and drones include rotary-wing drones.
- four-rotor drones, six-rotor drones, and eight-rotor drones can also be fixed-wing drones, or a combination of rotary-wing and fixed-wing drones, which are not limited here.
- the movable platform control method includes step S101 to step S103.
- the control terminal displays a custom programming page, where the user can write program code through the custom programming page, or download the program code package through the custom programming page; obtain the program code download instruction triggered by the user based on the displayed custom programming page, And according to the program code download instruction, download the target program code package.
- the program code download instruction carries an identifier of the program code package, and the identifier is used to uniquely identify the program code package, and the corresponding program code package can be downloaded through the identifier.
- the program code download instruction is sent to the server, so that when the server receives the program code download instruction, it obtains the identifier of the program code package to be downloaded from the program code download instruction, and based on the identifier , Obtain the target program code package, and send the target program code package to the control terminal, so as to download so that the control terminal downloads the target program code package; or the server obtains the download link of the target program code package based on the identifier, and sends the target program code package The download link is sent to the control terminal, and the control terminal downloads the target program code package based on the download link.
- the custom programming page displays a code download control Run control and exit control "X"
- the code download control is used to control the control terminal to display the program code package browsing page
- the program code package browsing page displays the names of multiple program code packages
- the run control is used to control the control
- the terminal sends the program running instruction to the movable platform, so that the movable platform can run the corresponding program code based on the program running instruction
- the exit control is used to control the control terminal to exit the custom programming page.
- step S101 includes sub-steps S1011 to S1012.
- the program code package browsing page can be displayed based on the user's trigger operation of the code download control in the custom programming page.
- the trigger operation includes at least one of the following: a click operation, a double-click operation, and a long-press operation.
- the program code package browse page displays a search box Exit the control "X" and the identification information of the nine program code packages, and the identification information of the nine program code packages are A, B, C, D, E, F, G, H, and I, and the program code package E Selected by the user.
- the user can operate the custom programming page and the program code package browsing page through an external device, such as an external mouse or an external keyboard, for example, by clicking the mouse or double-clicking the code download control in the custom programming page , So as to get the user's trigger operation on the code download control; the user can also touch the custom programming page and the program code package browsing page through the finger, and input text on the custom programming page and the program code package browsing page through the virtual keyboard Information, for example, the user clicks, double-clicks, or long presses the code download control in the custom programming page with his finger, so as to obtain the user's trigger operation on the code download control, which is not specifically limited in this application.
- an external device such as an external mouse or an external keyboard
- the page load request of the program code package browsing page is sent to the server, and the page load data returned by the server based on the page load request is received, and the program is loaded and displayed based on the page load data Code package browsing page; when the server receives the page load request of the program code package browsing page, it obtains the page identifier from the page load request, and obtains the page load data corresponding to the page identifier from the database, and the The page loading data is sent to the control terminal.
- the page loading data includes page component configuration information and page content information
- the page component configuration information is used to load the program code package page components required to browse the page
- the page content information includes the program code package used to describe the program code package to be loaded and displayed Information such as text, pictures and/or videos.
- the program code download instruction of the corresponding program code package is generated based on the user's selection operation of the program code package in the program code package browsing page.
- the program code download instruction carries an identifier of the program code package to be downloaded, the identifier is used to uniquely identify the program code package, and the corresponding program code package can be downloaded through the identifier.
- the target program code package is determined according to the user's selection operation of the program code package in the program code package browsing page, and it is determined whether the current login account has the download permission of the target program code package; if the current login account has the target The download authority of the program code package generates the program code download instruction of the target program code package.
- the identification information of the selected program code package can be determined, so that the program code package corresponding to the identification information is taken as the target program code package.
- the target program code package after determining the target program code package, determine whether the user is logged in, if the user is not logged in, jump to the account login page so that the user can log in to the account; obtain the account information and information entered by the user on the account login page Password information, and verify the account information and password information; when the account information and password information are verified, the account login operation is performed according to the account information and password information.
- the action tag of the target program code package is obtained, and the action tag list of the currently logged-in account is obtained; if the action tag is located in the action tag list, it is determined that the currently logged-in account has the download permission of the target program code package; if the action tag is not located in the action Tag list, it is determined that the currently logged-in account does not have the download permission of the target program code package.
- the action tag is used to identify the actions that can be performed by the mobile platform after running the program code in the program code package.
- the user's trigger operation on the zoom control in the program code package browsing page is acquired, and the page zoom instruction is generated according to the trigger operation and the current size of the program code package browsing page, and according to the page zoom instruction,
- the program code package browsing page is zoomed, and the zoomed program code package browsing page is displayed in the custom programming page.
- the zoom control can be dragged and moved, so that the zoom control can be located anywhere on the custom programming page.
- the program code package browsing page is enlarged and displayed so that the program code package browsing page covers the entire display area; if the current size of the program code package browsing page is equal to the first preset size, a page reduction instruction is generated, and the page reduction instruction is generated, The size of the program code package browsing page is reduced to the second preset size.
- the first preset size is greater than the second preset size, and the first preset size is determined according to the size of the display area of the control device.
- the program code package browsing page covers the entire display area.
- the program code package browsing page and zoom controls are displayed in the custom programming page.
- the user's click operation on the search box is acquired, and the action tag selection window is displayed on the program code package browsing page according to the click operation; the user's selection operation on the action tag in the action tag selection window is acquired, and the selection operation is performed according to the selection operation
- the program code package in the program code package browsing page is filtered, and the filtered program code package browsing page is displayed.
- the action label selection window displays multiple action labels.
- the custom programming page displays the action tag selection window, the action tag selection window, and the action tag selection window displays 4 action tags, which are respectively action label 1, action label 2, Action label 3 and action label 4.
- the target action tag is determined according to the selection operation; the program code package in the program code package browsing page is filtered according to the target action tag, that is, the identification information set corresponding to the target action tag is obtained, and the identification information is located in the identification information set.
- the program code package is filtered out.
- the user can determine the identification information of the program code package through the user's selection operation on the action label in the action label selection window, and use the action label corresponding to the identification information as the target action label, and the target action label includes at least one action label.
- the action label selected by the user is action label 3, and the identification information set corresponding to action label 3 is [A, B, I], then the filtered program code package is browsed
- the program code packages on the page are C, D, E, F, G, and H.
- the target program code package is sent to the mobile platform, so that the mobile platform loads the target program code package.
- the program code in the target program code package is displayed on the custom programming page, that is, the target program code package is parsed to obtain the program code, and the parsed program code is displayed on the custom programming page; Obtain the user's editing operation of the program code, and update the program code according to the editing operation; Obtain the program code sending instruction triggered by the user based on the custom programming page, and send the instruction according to the program code, and send the updated program code To the mobile platform, so that the mobile platform can load the updated program code.
- the editing operation includes at least one of the following: a program code modification operation, a program code deletion operation, a program code addition operation, and a programming language conversion operation.
- the programming language conversion operation is used to convert the programming language of the program code.
- the self-defined programming page includes a transmission control, and when a user triggering operation on the transmission control is detected, a program code is generated to send an instruction.
- a program code is generated to send an instruction.
- the custom programming page displays program codes and transmission controls.
- the program code in the target program code package is displayed in the program code programming window in the custom programming page; the user's editing operation on the program code is obtained, and the program code is updated according to the editing operation;
- the program code sending instruction triggered by the program code programming window sends the updated program code to the movable platform according to the program code sending instruction, so that the movable platform can load the updated program code.
- the program code programming window includes a transmission control and an operation control, and when a user triggering operation on the transmission control is detected, a program code is generated to send an instruction.
- the custom programming page displays the program code programming window and the reduced program code package browsing page
- the program code programming window displays the program code, transmission control and running control
- the program code package browsing page A search box and program code packages A, B, C, D, E, F, G, H, and I are displayed.
- the user's selection operation on the program code package in the program code package browsing page is acquired, the program code package is downloaded according to the selection operation, and the program in the downloaded program code package is displayed in the program code programming window Code. This allows the user to quickly display the program code in the downloaded program code package after the program code package is downloaded, which is convenient for the user to download and edit the program code.
- the user's triggering operation on the running control is acquired, and the corresponding program running instruction is generated according to the triggering operation; the movable platform is controlled to run the target program code package according to the program running instruction, so that the movable platform executes the corresponding action.
- the movable platform includes a launching device, the launching device is used to launch projectiles, and the actions include at least one of the following: controlling the movable platform to move at a variable speed, controlling the launching device to launch projectiles at a variable speed, and controlling the launching device Launching projectiles while rotating according to a preset trajectory and controlling the movable platform to move along a preset moving path while controlling the launching device to launch projectiles, the action may also be other actions, which are not specifically limited in this application.
- the target program code package includes a power plant control parameter group and a shift interval time, wherein the power plant control parameter group includes a plurality of power plant control parameters, and each power plant control parameter is different, so The power plant control parameters are used to control the power plant of the movable platform to provide the movable platform with moving power, so that the movable platform moves; each time at the speed change interval, the power plant is randomly controlled One power device control parameter is selected from the parameter group, and the power device of the movable platform is driven according to the selected power device control parameter, so as to control the variable speed movement of the movable platform.
- the aforementioned shifting interval time can be set based on actual conditions, which is not specifically limited in this application.
- the shift time interval is 5 seconds
- the target program code package includes a transmission device control parameter group and a shift interval time, wherein the transmission device control parameter group includes a plurality of transmission device control parameters, and each transmission device has a different control parameter.
- the launching speed of the projectile is different if the device control parameter is different.
- the launching device control parameter is used to control the launching device to launch the projectile; each time at the variable interval time, one is randomly selected from the launching device control parameter group to launch Device control parameters, and control the launching device to launch projectiles according to the selected launching device control parameters, thereby controlling the launching device to launch projectiles at variable speeds.
- the aforementioned shifting interval time can be set based on actual conditions, which is not specifically limited in this application.
- the shift time interval is 3 seconds.
- the target program code package includes the control parameter group of the mecanum wheel of the movable platform and the output sequence of each control parameter, and also includes the control parameters of the launching device.
- the mecanum wheel The control parameters are used to control the mecanum wheel, the control parameters include the X-axis speed, the Y-axis speed and the rotation angular velocity of the mecanum wheel, and the launching device control parameters are used to control the launching device to launch projectiles; according to each control parameter
- the output sequence of each control parameter is output in turn, so as to control the rotation of the mecanum wheel of the movable platform, and control the launching device to launch projectiles according to the control parameters of the launching device, so that the movable platform moves according to the preset movement path At the same time, control the launcher to launch projectiles.
- the preset movement path includes but is not limited to a zigzag movement path, an O-shape movement path, an X-shape movement path, a horizontal figure-eight movement path, and an arcuate movement path, and may also include a zigzag movement path, an O-shape movement path, and an X-shape movement path.
- the combination of at least two moving paths among the moving path, the horizontal figure-eight moving path and the arcuate moving path is not specifically limited in this application.
- the mobile platform obtains the loading progress information of the target program code package, and sends the loading progress information to the control terminal for the control terminal to use based on the loading progress.
- the information displays the corresponding loading progress bar and stores the loading progress information.
- control terminal sends the program running instruction to the movable platform, and the movable platform receives the program running instruction through the communication device, and obtains the current loading progress information of the target program code package; according to the current loading progress information, it is determined that the program can be loaded.
- the mobile platform has loaded the target program code package, that is, determine whether the progress percentage in the current loading progress information is 100%. If the progress percentage in the current loading progress information is 100%, it is determined that the target program code package has been loaded by the mobile platform.
- the progress percentage in the current loading progress information is not 100%, it is determined that the target program code package has not been loaded by the mobile platform; if the target program code package has been loaded by the mobile platform, the mobile platform is controlled according to the program running instruction The platform runs the target program code package so that the movable platform executes the corresponding action; if the movable platform has not completed the loading of the target program code package, no processing is performed.
- the loading progress information of the target program code package is obtained according to the user's triggering operation on the running control, wherein the loading progress information is used to describe the progress of the mobile platform loading the target program code package; according to the loading progress Information to determine whether the target program code package has been loaded on the mobile platform; if the target program code package is loaded on the mobile platform, a program running instruction for the target program code package is generated, and if the target program code package has not been loaded on the mobile platform, it will be displayed The reminding message that the loading is not completed is to remind the user that the target program code package has not been loaded on the mobile platform.
- the custom programming page includes a loading progress bar of the target program code package, and the loading progress bar is used to describe the progress of the mobile platform loading the target program code package; the loading The progress bar includes a loading progress percentage.
- the loading progress bar can be displayed transparently according to a preset transparent percentage. When the target program code package is loaded by the mobile platform, the loading progress bar is hidden. It is understandable that the preset transparency percentage can be set based on actual conditions, which is not specifically limited in this application. Optionally, the preset transparency percentage is 50%.
- the mobile platform control method allows the user to customize the programming page to download the program code package by displaying the custom programming page of the mobile platform, and the control terminal sends the downloaded program code package to the mobile platform,
- the program code package can be loaded by the mobile platform, and when the program running instruction triggered by the user is detected, the program code package can be controlled based on the program running instruction to run the loaded program code package, so that the movable platform can execute the corresponding action. Reduce the user's programming time, effectively improve the programming convenience of the mobile platform, and greatly improve the user experience.
- FIG. 11 is a schematic block diagram of a control terminal according to an embodiment of the present application.
- the control terminal includes, but is not limited to, a remote control, a ground control platform, a mobile phone, a tablet computer, a notebook computer, a PC computer, and the like.
- the control terminal 200 includes a processor 201, a memory 202, and a display device 203.
- the processor 201, the memory 202 and the display device 203 are connected by a bus 204, such as an I2C (Inter-integrated Circuit) bus.
- I2C Inter-integrated Circuit
- the processor 201 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
- MCU Micro-controller Unit
- CPU Central Processing Unit
- DSP Digital Signal Processor
- the memory 202 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk.
- the display device 203 may be a liquid crystal display screen, a touch-control display screen, or an external display device.
- the display device 203 is used to display a custom programming page.
- the processor 201 is configured to run a computer program stored in the memory 202, and implement the following steps when the computer program is executed:
- the processor implements the obtaining of the program code download instruction triggered by the user based on the displayed custom programming page, it is used to implement:
- the processor when the processor implements the program code download instruction that generates the corresponding program code package according to the selection operation, it is used to implement:
- the processor when the processor implements the determining whether the currently logged-in account has the download permission of the target program code package, it is used to implement:
- action tag is not in the action tag list, it is determined that the currently logged-in account does not have the download authority of the target program code package.
- the processor implements the determining whether the currently logged-in account has the download authority of the target program code package, it is further used to implement:
- the processor realizes that the program code package browsing page is displayed with a search box; after the program code package browsing page is displayed according to the trigger operation, it is further used to realize:
- the processor when the processor implements the screening of the program code packages in the program code package browsing page according to the selection operation, the processor is used to implement:
- the program code packages in the program code package browsing page are filtered according to the target action tag.
- the custom programming page includes a program code programming window; before the processor realizes the sending of the target program code package to the mobile platform, it is also used to realize:
- the sending the target program code package to a mobile platform includes:
- the updated program code is sent to the movable platform according to the program code sending instruction, so that the movable platform can load the updated program code.
- the editing operation includes at least one of the following: a program code modification operation, a program code deletion operation, a program code addition operation, and a programming language conversion operation, and the programming language conversion operation is used to convert the programming language of the program code .
- the custom programming page includes a run control; when the processor implements the program run instruction triggered by the user, it is used to implement:
- the processor realizes that the corresponding program running instruction is generated according to the trigger operation, it is used to realize:
- the loading progress information determine whether the target program code package has been loaded by the mobile platform
- the custom programming page includes a loading progress bar of the target program code package, and the loading progress bar is used to describe the progress of the mobile platform loading the target program code package.
- the movable platform includes a launching device for launching projectiles
- the actions include at least one of the following: controlling the movable platform to move at a variable speed, controlling the launching device to launch projectiles at a variable speed, and controlling The launching device launches projectiles while rotating according to a preset trajectory and controls the movable platform to move along a preset movement path while controlling the launching device to launch projectiles.
- FIG. 12 is a schematic structural diagram of a movable platform provided by an embodiment of the present application.
- the movable platform 300 includes:
- the platform body 310 includes a chassis main body 311 and a pan/tilt main body 312 provided on the chassis main body 311, and the pan/tilt main body 312 is used to carry a camera 314;
- Power devices 320, 120 are provided on the chassis body 311, and are used to provide moving power to the platform body 310;
- the communication device is arranged on the platform body 310 and is used to communicate with the control terminal.
- the platform body 310 of the movable platform 300 further includes a launching device 313 provided on the chassis main body 311, and the launching device 313 is used to launch projectiles.
- the mobile platform 300 includes drones, mobile robots, and pan-tilt vehicles.
- the drones include rotary wing drones, such as quadrotor drones, hexarotor drones, and octorotor drones.
- the fixed-wing UAV can also be a combination of a rotary-wing type and a fixed-wing UAV, which is not limited here.
- the movable platform further includes a controller, and the communication device is connected to the controller, wherein:
- the communication device is configured to receive the target program code package sent by the control terminal;
- the controller is used to implement:
- controller is also used to implement:
- the loading progress information is sent to the control terminal, so that the control terminal displays a corresponding loading progress bar based on the loading progress information.
- the communication device is further configured to receive a program running instruction sent by the control terminal;
- the controller is also used to implement:
- the controller after the controller obtains the program running instruction received by the communication device, it is further used to implement:
- the movable platform is controlled to run the target program code package according to the program running instruction, so that the movable platform executes a corresponding action.
- the action includes at least one of the following: controlling the movable platform to move at a variable speed, controlling the launching device to launch projectiles at a variable speed, controlling the launching device to rotate according to a preset trajectory while launching projectiles, and controlling the movable platform.
- the mobile platform controls the launching device to launch projectiles while moving according to the preset moving path.
- the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement the foregoing implementation Example provides the steps of the movable platform control method.
- the computer-readable storage medium may be the internal storage unit of the control terminal described in any of the foregoing embodiments, such as the hard disk or memory of the control terminal.
- the computer-readable storage medium may also be an external storage device of the control terminal, such as a plug-in hard disk equipped on the control terminal, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) ) Card, Flash Card, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
- Telephone Function (AREA)
Abstract
A mobile platform control method, a control terminal, a mobile platform, and a storage medium. The method comprises: downloading a target program code package according to a program code download instruction triggered, on the basis of a customized programming page, by a user; controlling a mobile platform to load the target program code package; and controlling the mobile platform to run the target program code package, such that the mobile platform carries out a corresponding action. The method improves programming convenience for mobile platforms.
Description
本申请涉及可移动平台控制的技术领域,尤其涉及一种可移动平台控制方法、控制终端、可移动平台及存储介质。This application relates to the technical field of movable platform control, and in particular to a movable platform control method, a control terminal, a movable platform and a storage medium.
目前,市面上的机器人、无人飞机和遥控车等可移动平台均具备自定义编程功能,用户可以通过自定义编程功能编写程序代码,从而控制可移动平台执行高级动作,例如控制可移动平台在移动过程中进行旋转射击和按照设定的轨迹移动且旋转射击等。然而,编程能力弱的用户无法通过自定义编程功能编写程序代码,控制可移动平台执行高级动作,当用户想要在自己的可移动平台上体验高级动作时,需要请教编程能力较好的其余用户,但需要经过一段较长的学习时间才能编程实现可移动平台的高级动作,不便于用户对可移动平台进行编程,用户体验不好。At present, mobile platforms such as robots, unmanned aircraft, and remote control vehicles on the market all have custom programming functions. Users can write program codes through custom programming functions to control the mobile platform to perform advanced actions, such as controlling the mobile platform to perform advanced actions. Rotate shooting and move and rotate shooting according to the set trajectory during the movement. However, users with weak programming skills cannot write program codes through custom programming functions to control the mobile platform to perform advanced actions. When users want to experience advanced actions on their own mobile platforms, they need to consult other users with better programming skills. , But it takes a long learning time to program the advanced actions of the movable platform, which is not convenient for users to program the movable platform, and the user experience is not good.
发明内容Summary of the invention
基于此,本申请提供了一种可移动平台控制方法、控制终端、可移动平台及存储介质,旨在提高可移动平台的编程便利性,提高用户体验。Based on this, this application provides a method for controlling a movable platform, a control terminal, a movable platform, and a storage medium, aiming to improve the programming convenience of the movable platform and improve user experience.
第一方面,本申请提供了一种可移动平台控制方法,包括:In the first aspect, this application provides a method for controlling a movable platform, including:
获取用户基于显示的自定义编程页面触发的程序代码下载指令,并根据所述程序代码下载指令,下载目标程序代码包;Obtain the program code download instruction triggered by the user based on the displayed custom programming page, and download the target program code package according to the program code download instruction;
将所述目标程序代码包发送至可移动平台,以供所述可移动平台加载所述目标程序代码包;Sending the target program code package to a mobile platform for the mobile platform to load the target program code package;
获取用户触发的程序运行指令,并根据所述程序运行指令控制所述可移动平台运行所述目标程序代码包,以使所述可移动平台执行对应的动作。Acquire a program running instruction triggered by a user, and control the movable platform to run the target program code package according to the program running instruction, so that the movable platform executes a corresponding action.
第二方面,本申请还提供了一种控制终端,所述控制终端包括显示装置、存储器和处理器;In the second aspect, the present application also provides a control terminal, the control terminal including a display device, a memory, and a processor;
所述显示装置,用于显示自定义编程页面;The display device is used to display a custom programming page;
所述存储器用于存储计算机程序;The memory is used to store a computer program;
所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现 如上所述的可移动平台控制方法的步骤。The processor is configured to execute the computer program and, when the computer program is executed, implement the steps of the movable platform control method as described above.
第三方面,本申请还提供了一种可移动平台,所述可移动平台包括:In the third aspect, this application also provides a movable platform, which includes:
平台本体,包括底盘主体和设于所述底盘主体上的云台主体,所述云台主体用于搭载摄像装置;The platform body includes a chassis main body and a pan/tilt main body provided on the chassis main body, and the pan/tilt main body is used to carry a camera device;
动力装置,设于所述底盘主体上,用于对所述平台本体提供移动动力;A power device, which is provided on the chassis body, and is used to provide moving power to the platform body;
通信装置,设于所述平台本体上,用于与控制终端进行通信。The communication device is arranged on the platform body and is used to communicate with the control terminal.
第四方面,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如上所述的可移动平台控制方法的步骤。In a fourth aspect, the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes the above-mentioned removable The steps of the platform control method.
本申请实施例提供了一种可移动平台控制方法、控制终端、可移动平台及存储介质,通过显示可移动平台的自定义编程页面,使得用户可以自定义编程页面下载程序代码包,由控制终端将下载完成的程序代码包发送至可移动平台,使得可移动平台加载该程序代码包,能够在检测到用户触发的程序运行指令时,基于该程序运行指令控制可移动平台运行加载完成的程序代码包,使得可移动平台可以执行对应的动作,可以减少用户的编程时间,有效的提高了可移动平台的编程便利性,极大的提高用户体验。The embodiment of the application provides a method for controlling a movable platform, a control terminal, a movable platform, and a storage medium. By displaying the custom programming page of the movable platform, the user can customize the programming page to download the program code package, and the control terminal Send the downloaded program code package to the mobile platform, so that the mobile platform loads the program code package, and can control the mobile platform to run the loaded program code based on the program running instruction when the program running instruction triggered by the user is detected The package enables the mobile platform to perform corresponding actions, which can reduce the user's programming time, effectively improve the programming convenience of the mobile platform, and greatly improve the user experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the application.
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. Ordinary technicians can obtain other drawings based on these drawings without creative work.
图1是本申请实施例提供的一种可移动平台控制方法的步骤示意流程图;FIG. 1 is a schematic flowchart of steps of a method for controlling a movable platform provided by an embodiment of the present application;
图2是本申请实施例提供的自定义编程页面的一示意图;Fig. 2 is a schematic diagram of a custom programming page provided by an embodiment of the present application;
图3是图1中的可移动平台控制方法的子步骤示意流程图;Fig. 3 is a schematic flow chart of sub-steps of the movable platform control method in Fig. 1;
图4是本申请实施例提供的程序代码包浏览页面的一示意图;Fig. 4 is a schematic diagram of a program code package browsing page provided by an embodiment of the present application;
图5是本申请实施例提供的自定义编程页面的另一示意图;FIG. 5 is another schematic diagram of a custom programming page provided by an embodiment of the present application;
图6是本申请实施例提供的自定义编程页面的另一示意图;Fig. 6 is another schematic diagram of a custom programming page provided by an embodiment of the present application;
图7是本申请实施例提供的自定义编程页面的另一示意图;FIG. 7 is another schematic diagram of a custom programming page provided by an embodiment of the present application;
图8是本申请实施例提供的自定义编程页面的另一示意图;FIG. 8 is another schematic diagram of a custom programming page provided by an embodiment of the present application;
图9是本申请实施例提供的自定义编程页面的另一示意图;FIG. 9 is another schematic diagram of a custom programming page provided by an embodiment of the present application;
图10是本申请实施例提供的自定义编程页面的另一示意图;FIG. 10 is another schematic diagram of a custom programming page provided by an embodiment of the present application;
图11是本申请一实施例提供的一种控制终端的结构示意性框图;FIG. 11 is a schematic block diagram of the structure of a control terminal according to an embodiment of the present application;
图12是本申请一实施例提供的可移动平台的结构示意图。Fig. 12 is a schematic structural diagram of a movable platform provided by an embodiment of the present application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowchart shown in the drawings is only an example, and does not necessarily include all contents and operations/steps, nor does it have to be executed in the described order. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to actual conditions.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of the present application will be described in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
请参阅图1,图1是本申请实施例提供的一种可移动平台控制方法的步骤示意流程图。该可移动平台控制方法可以应用在控制终端,控制终端与可移动平台之间可以建立通信连接,使得控制终端可以控制可移动平台。控制终端与可移动平台可以通过无线通讯的方式建立通信连接,例如通过WiFi实现通信连接;还可以通过有线连接的方式建立通信连接,例如控制终端与可移动平台分别设有接口,通过该接口实现控制终端与可移动平台的通信连接。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of steps of a method for controlling a movable platform according to an embodiment of the present application. The movable platform control method can be applied to a control terminal, and a communication connection can be established between the control terminal and the movable platform, so that the control terminal can control the movable platform. The control terminal and the movable platform can establish a communication connection through wireless communication, for example, a communication connection through WiFi; it can also establish a communication connection through a wired connection, for example, the control terminal and the movable platform are respectively provided with interfaces, which are realized through the interface Control the communication connection between the terminal and the movable platform.
其中,控制终端包括遥控器、地面控制平台、手机、平板电脑、笔记本电脑和PC电脑等,可移动平台包括无人机、可移动机器人和云台车等,无人机包括旋翼型无人机,例如四旋翼无人机、六旋翼无人机、八旋翼无人机,也可以是固定翼无人机,还可以是旋翼型与固定翼无人机的组合,在此不作限定。Among them, control terminals include remote controls, ground control platforms, mobile phones, tablets, laptops, and PC computers. Movable platforms include drones, mobile robots and pan-tilts, and drones include rotary-wing drones. For example, four-rotor drones, six-rotor drones, and eight-rotor drones can also be fixed-wing drones, or a combination of rotary-wing and fixed-wing drones, which are not limited here.
具体地,如图1所示,该可移动平台控制方法包括步骤S101至步骤S103。Specifically, as shown in FIG. 1, the movable platform control method includes step S101 to step S103.
S101、获取用户基于显示的自定义编程页面触发的程序代码下载指令,并根据所述程序代码下载指令,下载目标程序代码包。S101. Obtain a program code download instruction triggered by a user based on a displayed custom programming page, and download a target program code package according to the program code download instruction.
控制终端显示自定义编程页面,其中,用户可以通过该自定义编程页面编写程序代码,也可以通过自定义编程页面下载程序代码包;获取用户基于显示的自定义编程页面触发的程序代码下载指令,并根据该程序代码下载指令,下载目标程序代码包。其中,程序代码下载指令携带有程序代码包的标识符,该 标识符用于唯一标识程序代码包,通过该标识符,可以下载得到对应的程序代码包。The control terminal displays a custom programming page, where the user can write program code through the custom programming page, or download the program code package through the custom programming page; obtain the program code download instruction triggered by the user based on the displayed custom programming page, And according to the program code download instruction, download the target program code package. Wherein, the program code download instruction carries an identifier of the program code package, and the identifier is used to uniquely identify the program code package, and the corresponding program code package can be downloaded through the identifier.
在一实施例中,将该程序代码下载指令发送至服务器,以使服务器在接收到程序代码下载指令时,从程序代码下载指令中获取待下载的程序代码包的标识符,并基于该标识符,获取目标程序代码包,且将该目标程序代码包发送至控制终端,从而下载使得控制终端下载得到目标程序代码包;或者服务器基于该标识符,获取目标程序代码包的下载链接,并将该下载链接发送至控制终端,由控制终端基于该下载链接,下载目标程序代码包。In one embodiment, the program code download instruction is sent to the server, so that when the server receives the program code download instruction, it obtains the identifier of the program code package to be downloaded from the program code download instruction, and based on the identifier , Obtain the target program code package, and send the target program code package to the control terminal, so as to download so that the control terminal downloads the target program code package; or the server obtains the download link of the target program code package based on the identifier, and sends the target program code package The download link is sent to the control terminal, and the control terminal downloads the target program code package based on the download link.
示例性的,如图2所示,自定义编程页面显示有代码下载控件
运行控件和退出控件“X”,该代码下载控件用于控制该控制终端显示程序代码包浏览页面,该程序代码包浏览页面显示有多个程序代码包的名称,该运行控件用于控制该控制终端将程序运行指令发送至可移动平台,以使可移动平台可以基于程序运行指令,运行对应的程序代码,该退出控件用于控制该控制终端退出该自定义编程页面。
Exemplarily, as shown in Figure 2, the custom programming page displays a code download control Run control and exit control "X", the code download control is used to control the control terminal to display the program code package browsing page, the program code package browsing page displays the names of multiple program code packages, and the run control is used to control the control The terminal sends the program running instruction to the movable platform, so that the movable platform can run the corresponding program code based on the program running instruction, and the exit control is used to control the control terminal to exit the custom programming page.
在一实施例中,如图3所示,步骤S101包括子步骤S1011至S1012。In one embodiment, as shown in FIG. 3, step S101 includes sub-steps S1011 to S1012.
S1011、获取用户对所述自定义编程页面中的代码下载控件的触发操作,并根据所述触发操作显示程序代码包浏览页面;S1011. Acquire a user's trigger operation on the code download control in the custom programming page, and display a program code package browsing page according to the trigger operation;
在显示自定义编程页面后,可以基于用户对该自定义编程页面中的代码下载控件的触发操作,显示程序代码包浏览页面。其中,该触发操作包括如下至少一种:点击操作、双击操作和长按操作。如图4所示,程序代码包浏览页面显示有搜索框
退出控件“X”和九个程序代码包的标识信息,且这九个程序代码包的标识信息分别为A、B、C、D、E、F、G、H和I,且程序代码包E被用户所选择。
After the custom programming page is displayed, the program code package browsing page can be displayed based on the user's trigger operation of the code download control in the custom programming page. Wherein, the trigger operation includes at least one of the following: a click operation, a double-click operation, and a long-press operation. As shown in Figure 4, the program code package browse page displays a search box Exit the control "X" and the identification information of the nine program code packages, and the identification information of the nine program code packages are A, B, C, D, E, F, G, H, and I, and the program code package E Selected by the user.
可以理解的是,用户可以通过外接设备,如外接鼠标或者外接键盘,对自定义编程页面和程序代码包浏览页面进行操作,例如,通过鼠标单击或者双击该自定义编程页面中的代码下载控件,从而得到用户对代码下载控件的触发操作;用户还可以通过手指对自定义编程页面和程序代码包浏览页面进行触控操作,以及通过虚拟键盘在自定义编程页面和程序代码包浏览页面输入文字信息,例如,用户通过手指对自定义编程页面中的代码下载控件进行点击、双击或者长按等操作,从而得到用户对代码下载控件的触发操作,本申请对此不作具体限定。It is understandable that the user can operate the custom programming page and the program code package browsing page through an external device, such as an external mouse or an external keyboard, for example, by clicking the mouse or double-clicking the code download control in the custom programming page , So as to get the user's trigger operation on the code download control; the user can also touch the custom programming page and the program code package browsing page through the finger, and input text on the custom programming page and the program code package browsing page through the virtual keyboard Information, for example, the user clicks, double-clicks, or long presses the code download control in the custom programming page with his finger, so as to obtain the user's trigger operation on the code download control, which is not specifically limited in this application.
具体地,根据用户对代码下载控件的触发操作,向服务器发送程序代码包 浏览页面的页面加载请求,并接收服务器基于该页面加载请求返回的页面加载数据,且基于该页面加载数据加载并显示程序代码包浏览页面;服务器在接收到程序代码包浏览页面的页面加载请求时,从该页面加载请求中获取页面标识符,并从数据库中获取与该页面标识符对应的页面加载数据,且将该页面加载数据发送至控制终端。其中,页面加载数据包括页面组件配置信息和页面内容信息,该页面组件配置信息用于加载程序代码包浏览页面所需的页面组件,该页面内容信息包括用于描述待加载与显示的程序代码包的文字、图片和/或视频等信息。Specifically, according to the user's triggering operation on the code download control, the page load request of the program code package browsing page is sent to the server, and the page load data returned by the server based on the page load request is received, and the program is loaded and displayed based on the page load data Code package browsing page; when the server receives the page load request of the program code package browsing page, it obtains the page identifier from the page load request, and obtains the page load data corresponding to the page identifier from the database, and the The page loading data is sent to the control terminal. Wherein, the page loading data includes page component configuration information and page content information, the page component configuration information is used to load the program code package page components required to browse the page, and the page content information includes the program code package used to describe the program code package to be loaded and displayed Information such as text, pictures and/or videos.
S1012、获取用户对所述程序代码包浏览页面中的程序代码包的选择操作,并根据所述选择操作生成对应的程序代码包的程序代码下载指令。S1012. Obtain a user's selection operation of the program code package in the program code package browsing page, and generate a program code download instruction of the corresponding program code package according to the selection operation.
在显示程序代码包浏览页面之后,基于用户对该程序代码包浏览页面中的程序代码包的选择操作生成对应的程序代码包的程序代码下载指令。其中,该程序代码下载指令携带有待下载的程序代码包的标识符,该标识符用于唯一标识程序代码包,通过该标识符,可以下载得到对应的程序代码包。After the program code package browsing page is displayed, the program code download instruction of the corresponding program code package is generated based on the user's selection operation of the program code package in the program code package browsing page. Wherein, the program code download instruction carries an identifier of the program code package to be downloaded, the identifier is used to uniquely identify the program code package, and the corresponding program code package can be downloaded through the identifier.
在一实施例中,根据用户对程序代码包浏览页面中的程序代码包的选择操作确定目标程序代码包,并确定当前登录账号是否具备该目标程序代码包的下载权限;若当前登录账号具备目标程序代码包的下载权限,则生成目标程序代码包的程序代码下载指令。其中,通过用户对程序代码包浏览页面中的程序代码包的选择操作,可以确定选中的程序代码包的标识信息,从而将标识信息对应的程序代码包作为目标程序代码包。In one embodiment, the target program code package is determined according to the user's selection operation of the program code package in the program code package browsing page, and it is determined whether the current login account has the download permission of the target program code package; if the current login account has the target The download authority of the program code package generates the program code download instruction of the target program code package. Wherein, through the user's selection operation on the program code package in the program code package browsing page, the identification information of the selected program code package can be determined, so that the program code package corresponding to the identification information is taken as the target program code package.
在一实施例中,在确定目标程序代码包后,确定用户是否已登录,如果用户未登录,则跳转至账号登录页面,使得用户可以登录账号;获取用户在账号登录页面输入的账号信息和密码信息,并对账号信息和密码信息进行验证;当账号信息和密码信息通过验证时,根据账号信息和密码信息执行账号登录操作。In one embodiment, after determining the target program code package, determine whether the user is logged in, if the user is not logged in, jump to the account login page so that the user can log in to the account; obtain the account information and information entered by the user on the account login page Password information, and verify the account information and password information; when the account information and password information are verified, the account login operation is performed according to the account information and password information.
具体地,获取目标程序代码包的动作标签,并获取当前登录账号的动作标签列表;若动作标签位于动作标签列表,则确定当前登录账号具备目标程序代码包的下载权限;若动作标签不位于动作标签列表,则确定当前登录账号不具备目标程序代码包的下载权限。其中,动作标签用于标识运行程序代码包中程序代码后,可移动平台可以执行的动作。Specifically, the action tag of the target program code package is obtained, and the action tag list of the currently logged-in account is obtained; if the action tag is located in the action tag list, it is determined that the currently logged-in account has the download permission of the target program code package; if the action tag is not located in the action Tag list, it is determined that the currently logged-in account does not have the download permission of the target program code package. Among them, the action tag is used to identify the actions that can be performed by the mobile platform after running the program code in the program code package.
在一实施例中,获取用户对程序代码包浏览页面中的缩放控件的触发操作,并根据该触发操作和程序代码包浏览页面的当前尺寸,生成页面缩放指令,且根据该页面缩放指令,对该程序代码包浏览页面进行缩放,并在自定义编程页 面中显示缩放后的程序代码包浏览页面。其中,该缩放控件可以被拖拽移动,使得缩放控件可以位于自定义编程页面的任意位置。In one embodiment, the user's trigger operation on the zoom control in the program code package browsing page is acquired, and the page zoom instruction is generated according to the trigger operation and the current size of the program code package browsing page, and according to the page zoom instruction, The program code package browsing page is zoomed, and the zoomed program code package browsing page is displayed in the custom programming page. Wherein, the zoom control can be dragged and moved, so that the zoom control can be located anywhere on the custom programming page.
具体地,在获取到用户对程序代码包浏览页面中的缩放控件的触发操作时,如果程序代码包浏览页面的当前尺寸小于第一预设尺寸,则生成页面放大指令,并根据该页面放大指令,放大显示程序代码包浏览页面,使得程序代码包浏览页面铺满整个显示区域;如果程序代码包浏览页面的当前尺寸等于第一预设尺寸,则生成页面缩小指令,并根据该页面缩小指令,将程序代码包浏览页面的尺寸缩小为第二预设尺寸。其中,第一预设尺寸大于第二预设尺寸,且第一预设尺寸根据控制设备的显示区域的尺寸确定。如图4所示,程序代码包浏览页面铺满整个显示区域,如图5所示,自定义编程页面中显示有程序代码包浏览页面和缩放控件
Specifically, when the user's triggering operation of the zoom control in the program code package browsing page is obtained, if the current size of the program code package browsing page is less than the first preset size, a page zoom instruction is generated, and the page zoom instruction is generated according to the page zoom instruction , The program code package browsing page is enlarged and displayed so that the program code package browsing page covers the entire display area; if the current size of the program code package browsing page is equal to the first preset size, a page reduction instruction is generated, and the page reduction instruction is generated, The size of the program code package browsing page is reduced to the second preset size. Wherein, the first preset size is greater than the second preset size, and the first preset size is determined according to the size of the display area of the control device. As shown in Figure 4, the program code package browsing page covers the entire display area. As shown in Figure 5, the program code package browsing page and zoom controls are displayed in the custom programming page.
在一实施例中,获取用户对搜索框的点击操作,并根据点击操作在程序代码包浏览页面显示动作标签选择窗口;获取用户对动作标签选择窗口中的动作标签的选择操作,并根据选择操作对程序代码包浏览页面中的程序代码包进行筛选,且显示经过筛选后的程序代码包浏览页面。其中,动作标签选择窗口显示有多个动作标签。示例性的,如图6所示,自定义编程页面中显示有动作标签选择窗口,动作标签选择窗口,动作标签选择窗口中显示有4个动作标签,且分别为动作标签1、动作标签2、动作标签3和动作标签4。In one embodiment, the user's click operation on the search box is acquired, and the action tag selection window is displayed on the program code package browsing page according to the click operation; the user's selection operation on the action tag in the action tag selection window is acquired, and the selection operation is performed according to the selection operation The program code package in the program code package browsing page is filtered, and the filtered program code package browsing page is displayed. Among them, the action label selection window displays multiple action labels. Exemplarily, as shown in Figure 6, the custom programming page displays the action tag selection window, the action tag selection window, and the action tag selection window displays 4 action tags, which are respectively action label 1, action label 2, Action label 3 and action label 4.
具体地,根据选择操作确定目标动作标签;根据目标动作标签对程序代码包浏览页面中的程序代码包进行筛选,即获取该目标动作标签对应的标识信息集,并将标识信息位于标识信息集中的程序代码包过滤掉。其中,通过用户对动作标签选择窗口中的动作标签的选择操作,可以确定程序代码包的标识信息,并将该标识信息对应的动作标签作为目标动作标签,目标动作标签包括至少一个动作标签。示例性的,如图7和图8所示,用户选择的动作标签为动作标签3,且动作标签3对应的标识信息集为[A,B,I],则经过筛选后的程序代码包浏览页面中的程序代码包分别为C、D、E、F、G和H。Specifically, the target action tag is determined according to the selection operation; the program code package in the program code package browsing page is filtered according to the target action tag, that is, the identification information set corresponding to the target action tag is obtained, and the identification information is located in the identification information set. The program code package is filtered out. The user can determine the identification information of the program code package through the user's selection operation on the action label in the action label selection window, and use the action label corresponding to the identification information as the target action label, and the target action label includes at least one action label. Exemplarily, as shown in Figures 7 and 8, the action label selected by the user is action label 3, and the identification information set corresponding to action label 3 is [A, B, I], then the filtered program code package is browsed The program code packages on the page are C, D, E, F, G, and H.
S102、将所述目标程序代码包发送至可移动平台,以供所述可移动平台加载所述目标程序代码包。S102. Send the target program code package to a mobile platform for the mobile platform to load the target program code package.
在下载完成目标程序代码包后,将目标程序代码包发送至可移动平台,以使可移动平台加载该目标程序代码包。After the target program code package is downloaded, the target program code package is sent to the mobile platform, so that the mobile platform loads the target program code package.
在一实施例中,在该自定义编程页面显示该目标程序代码包中的程序代码,即对该目标程序代码包进行解析,得到程序代码,并在自定义编程页面显示解 析得到的程序代码;获取用户对该程序代码的编辑操作,并根据该编辑操作更新该程序代码;获取用户基于该自定义编程页面触发的程序代码发送指令,并根据该程序代码发送指令,将更新后的程序代码发送至可移动平台,以供可移动平台加载更新后的程序代码。其中,所述编辑操作包括如下至少一种:程序代码修改操作、程序代码删除操作、程序代码增加操作和编程语言转换操作,所述编程语言转换操作用于转换所述程序代码的编程语言。In one embodiment, the program code in the target program code package is displayed on the custom programming page, that is, the target program code package is parsed to obtain the program code, and the parsed program code is displayed on the custom programming page; Obtain the user's editing operation of the program code, and update the program code according to the editing operation; Obtain the program code sending instruction triggered by the user based on the custom programming page, and send the instruction according to the program code, and send the updated program code To the mobile platform, so that the mobile platform can load the updated program code. The editing operation includes at least one of the following: a program code modification operation, a program code deletion operation, a program code addition operation, and a programming language conversion operation. The programming language conversion operation is used to convert the programming language of the program code.
其中,该自定义编程页面包括传输控件,当检测到用户对该传输控件的触发操作时,生成程序代码发送指令。示例性的,如图9所示,自定义编程页面显示有程序代码和传输控件。Wherein, the self-defined programming page includes a transmission control, and when a user triggering operation on the transmission control is detected, a program code is generated to send an instruction. Exemplarily, as shown in Figure 9, the custom programming page displays program codes and transmission controls.
在一实施例中,在该自定义编程页面中的程序代码编程窗口中显示该目标程序代码包中的程序代码;获取用户对程序代码的编辑操作,并根据编辑操作更新程序代码;获取用户基于程序代码编程窗口触发的程序代码发送指令,根据该程序代码发送指令将更新后的程序代码发送至可移动平台,以供可移动平台加载更新后的程序代码。其中,该程序代码编程窗口包括传输控件和运行控件,当检测到用户对该传输控件的触发操作时,生成程序代码发送指令。In one embodiment, the program code in the target program code package is displayed in the program code programming window in the custom programming page; the user's editing operation on the program code is obtained, and the program code is updated according to the editing operation; The program code sending instruction triggered by the program code programming window sends the updated program code to the movable platform according to the program code sending instruction, so that the movable platform can load the updated program code. Wherein, the program code programming window includes a transmission control and an operation control, and when a user triggering operation on the transmission control is detected, a program code is generated to send an instruction.
示例性的,如图10所示,自定义编程页面显示有程序代码编程窗口和缩小后的程序代码包浏览页面,程序代码编程窗口显示有程序代码、传输控件和运行控件,程序代码包浏览页面显示有搜索框和程序代码包A、B、C、D、E、F、G、H和I。Exemplarily, as shown in Figure 10, the custom programming page displays the program code programming window and the reduced program code package browsing page, the program code programming window displays the program code, transmission control and running control, and the program code package browsing page A search box and program code packages A, B, C, D, E, F, G, H, and I are displayed.
在一实施例中,获取用户对程序代码包浏览页面中的程序代码包的选择操作,并根据该选择操作下载程序代码包,并在程序代码编程窗口中显示下载完成的程序代码包中的程序代码。使得用户可以在下载完成程序代码包后,能够快速显示下载完成的程序代码包中的程序代码,方便用户下载与编辑程序代码。In one embodiment, the user's selection operation on the program code package in the program code package browsing page is acquired, the program code package is downloaded according to the selection operation, and the program in the downloaded program code package is displayed in the program code programming window Code. This allows the user to quickly display the program code in the downloaded program code package after the program code package is downloaded, which is convenient for the user to download and edit the program code.
S103、获取用户触发的程序运行指令,并根据所述程序运行指令控制所述可移动平台运行所述目标程序代码包,以使所述可移动平台执行对应的动作。S103. Obtain a program running instruction triggered by a user, and control the movable platform to run the target program code package according to the program running instruction, so that the movable platform executes a corresponding action.
具体地,获取用户对运行控件的触发操作,并根据触发操作,生成对应的程序运行指令;根据该程序运行指令控制可移动平台运行目标程序代码包,以使可移动平台执行对应的动作。其中,所述可移动平台包括发射装置,所述发射装置用于发射弹丸,所述动作包括如下至少一种:控制所述可移动平台变速移动、控制所述发射装置变速发射弹丸、控制发射装置按照预设轨迹旋转的同时发射弹丸和控制所述可移动平台按照预设移动路径移动的同时控制发射装置发射弹丸,所述动作还可以为其余动作,本申请对此不作具体限定。Specifically, the user's triggering operation on the running control is acquired, and the corresponding program running instruction is generated according to the triggering operation; the movable platform is controlled to run the target program code package according to the program running instruction, so that the movable platform executes the corresponding action. Wherein, the movable platform includes a launching device, the launching device is used to launch projectiles, and the actions include at least one of the following: controlling the movable platform to move at a variable speed, controlling the launching device to launch projectiles at a variable speed, and controlling the launching device Launching projectiles while rotating according to a preset trajectory and controlling the movable platform to move along a preset moving path while controlling the launching device to launch projectiles, the action may also be other actions, which are not specifically limited in this application.
在一实施例中,所述目标程序代码包包括动力装置控制参数组和变速间隔时间,其中,所述动力装置控制参数组包括多个动力装置控制参数,且每个动力装置控制参数不同,所述动力装置控制参数用于控制所述可移动平台的动力装置给所述可移动平台提供移动动力,使得所述可移动平台移动;每次以所述变速间隔时间随机地从所述动力装置控制参数组中选择一个动力装置控制参数,并根据选择的动力装置控制参数,驱动所述可移动平台的动力装置,从而控制所述可移动平台变速移动。可以理解的是,上述变速间隔时间可基于实际情况进行设置,本申请对此不作具体限定。可选地的,变速时间间隔为5秒In an embodiment, the target program code package includes a power plant control parameter group and a shift interval time, wherein the power plant control parameter group includes a plurality of power plant control parameters, and each power plant control parameter is different, so The power plant control parameters are used to control the power plant of the movable platform to provide the movable platform with moving power, so that the movable platform moves; each time at the speed change interval, the power plant is randomly controlled One power device control parameter is selected from the parameter group, and the power device of the movable platform is driven according to the selected power device control parameter, so as to control the variable speed movement of the movable platform. It can be understood that the aforementioned shifting interval time can be set based on actual conditions, which is not specifically limited in this application. Optionally, the shift time interval is 5 seconds
在一实施例中,所述目标程序代码包包括发射装置控制参数组和变速间隔时间,其中,所述发射装置控制参数组包括多个发射装置控制参数,且每个发射装置控制参数不同,发射装置控制参数不同,则弹丸的发射速度不同,所述发射装置控制参数用于控制所述发射装置发射弹丸;每次以所述变速间隔时间随机地从所述发射装置控制参数组中选择一个发射装置控制参数,并根据选择的发射装置控制参数,控制所述发射装置发射弹丸,从而控制所述发射装置变速发射弹丸。可以理解的是,上述变速间隔时间可基于实际情况进行设置,本申请对此不作具体限定。可选地的,变速时间间隔为3秒。In an embodiment, the target program code package includes a transmission device control parameter group and a shift interval time, wherein the transmission device control parameter group includes a plurality of transmission device control parameters, and each transmission device has a different control parameter. The launching speed of the projectile is different if the device control parameter is different. The launching device control parameter is used to control the launching device to launch the projectile; each time at the variable interval time, one is randomly selected from the launching device control parameter group to launch Device control parameters, and control the launching device to launch projectiles according to the selected launching device control parameters, thereby controlling the launching device to launch projectiles at variable speeds. It can be understood that the aforementioned shifting interval time can be set based on actual conditions, which is not specifically limited in this application. Optionally, the shift time interval is 3 seconds.
在一实施例中,所述目标程序代码包包括所述可移动平台的麦克纳姆轮的控制参数组以及每个控制参数的输出顺序,还包括发射装置控制参数,其中,麦克纳姆轮的控制参数用于控制麦克纳姆轮,所述控制参数包括麦克纳姆轮的X轴速度、Y轴速度和自转角速度,所述发射装置控制参数用于控制发射装置发射弹丸;按照每个控制参数的输出顺序,依次输出每个控制参数,从而控制可移动平台的麦克纳姆轮转动,并根据发射装置控制参数,控制所述发射装置发射弹丸,使得所述可移动平台按照预设移动路径移动的同时,控制发射装置发射弹丸。其中,预设移动路径包括但不限于Z字形移动路径、O字形移动路径、X字形移动路径、横向8字移动路径和弓形移动路径,还可以包括Z字形移动路径、O字形移动路径、X字形移动路径、横向8字移动路径和弓形移动路径中的至少两种移动路径的组合,本申请对此不作具体限定。In an embodiment, the target program code package includes the control parameter group of the mecanum wheel of the movable platform and the output sequence of each control parameter, and also includes the control parameters of the launching device. Among them, the mecanum wheel The control parameters are used to control the mecanum wheel, the control parameters include the X-axis speed, the Y-axis speed and the rotation angular velocity of the mecanum wheel, and the launching device control parameters are used to control the launching device to launch projectiles; according to each control parameter The output sequence of each control parameter is output in turn, so as to control the rotation of the mecanum wheel of the movable platform, and control the launching device to launch projectiles according to the control parameters of the launching device, so that the movable platform moves according to the preset movement path At the same time, control the launcher to launch projectiles. Among them, the preset movement path includes but is not limited to a zigzag movement path, an O-shape movement path, an X-shape movement path, a horizontal figure-eight movement path, and an arcuate movement path, and may also include a zigzag movement path, an O-shape movement path, and an X-shape movement path. The combination of at least two moving paths among the moving path, the horizontal figure-eight moving path and the arcuate moving path is not specifically limited in this application.
在一实施例中,可移动平台在加载目标程序代码包的过程中,获取该目标程序代码包的加载进度信息,并将该加载进度信息发送至该控制终端,以供控制终端基于该加载进度信息显示对应的加载进度条,并存储该加载进度信息。In one embodiment, during the process of loading the target program code package, the mobile platform obtains the loading progress information of the target program code package, and sends the loading progress information to the control terminal for the control terminal to use based on the loading progress. The information displays the corresponding loading progress bar and stores the loading progress information.
在一实施例中,控制终端将程序运行指令发送至可移动平台,可移动平台通过通信装置接收程序运行指令,并获取该目标程序代码包的当前加载进度信 息;根据当前加载进度信息,确定可移动平台是否加载完成目标程序代码包,即确定当前加载进度信息中的进度百分比是否为100%,如果当前加载进度信息中的进度百分比为100%,则确定可移动平台加载完成目标程序代码包,反之,如果当前加载进度信息中的进度百分比不为100%,则确定可移动平台未加载完成目标程序代码包;如果可移动平台加载完成目标程序代码包,则根据该程序运行指令控制该可移动平台运行该目标程序代码包,以使该可移动平台执行对应的动作;如果可移动平台未加载完成目标程序代码包,则不作处理。In one embodiment, the control terminal sends the program running instruction to the movable platform, and the movable platform receives the program running instruction through the communication device, and obtains the current loading progress information of the target program code package; according to the current loading progress information, it is determined that the program can be loaded. Whether the mobile platform has loaded the target program code package, that is, determine whether the progress percentage in the current loading progress information is 100%. If the progress percentage in the current loading progress information is 100%, it is determined that the target program code package has been loaded by the mobile platform. Conversely, if the progress percentage in the current loading progress information is not 100%, it is determined that the target program code package has not been loaded by the mobile platform; if the target program code package has been loaded by the mobile platform, the mobile platform is controlled according to the program running instruction The platform runs the target program code package so that the movable platform executes the corresponding action; if the movable platform has not completed the loading of the target program code package, no processing is performed.
在一实施例中,根据用户对运行控件的触发操作,获取该目标程序代码包的加载进度信息,其中,所述加载进度信息用于描述可移动平台加载目标程序代码包的进度;根据加载进度信息,确定可移动平台是否加载完成目标程序代码包;若可移动平台加载完成目标程序代码包,则生成目标程序代码包的程序运行指令,若可移动平台未加载完成目标程序代码包,则显示未加载完成的提醒信息,以提醒用户可移动平台未加载完成目标程序代码包。In an embodiment, the loading progress information of the target program code package is obtained according to the user's triggering operation on the running control, wherein the loading progress information is used to describe the progress of the mobile platform loading the target program code package; according to the loading progress Information to determine whether the target program code package has been loaded on the mobile platform; if the target program code package is loaded on the mobile platform, a program running instruction for the target program code package is generated, and if the target program code package has not been loaded on the mobile platform, it will be displayed The reminding message that the loading is not completed is to remind the user that the target program code package has not been loaded on the mobile platform.
在一实施例中,所述自定义编程页面包括所述目标程序代码包的加载进度条,所述加载进度条用于描述所述可移动平台加载所述目标程序代码包的进度;所述加载进度条包括加载进度百分比,所述加载进度条可以按照预设透明百分比透明显示,当可移动平台加载完成目标程序代码包,隐藏加载进度条。可以理解的是,预设透明百分比可基于实际情况进行设置,本申请对此不作具体限定。可选地,预设透明百分比为50%。In an embodiment, the custom programming page includes a loading progress bar of the target program code package, and the loading progress bar is used to describe the progress of the mobile platform loading the target program code package; the loading The progress bar includes a loading progress percentage. The loading progress bar can be displayed transparently according to a preset transparent percentage. When the target program code package is loaded by the mobile platform, the loading progress bar is hidden. It is understandable that the preset transparency percentage can be set based on actual conditions, which is not specifically limited in this application. Optionally, the preset transparency percentage is 50%.
上述实施例提供的可移动平台控制方法,通过显示可移动平台的自定义编程页面,使得用户可以自定义编程页面下载程序代码包,由控制终端将下载完成的程序代码包发送至可移动平台,使得可移动平台加载该程序代码包,能够在检测到用户触发的程序运行指令时,基于该程序运行指令控制可移动平台运行加载完成的程序代码包,使得可移动平台可以执行对应的动作,可以减少用户的编程时间,有效的提高了可移动平台的编程便利性,极大的提高用户体验。The mobile platform control method provided by the above embodiments allows the user to customize the programming page to download the program code package by displaying the custom programming page of the mobile platform, and the control terminal sends the downloaded program code package to the mobile platform, The program code package can be loaded by the mobile platform, and when the program running instruction triggered by the user is detected, the program code package can be controlled based on the program running instruction to run the loaded program code package, so that the movable platform can execute the corresponding action. Reduce the user's programming time, effectively improve the programming convenience of the mobile platform, and greatly improve the user experience.
请参阅图11,图11是本申请一实施例提供的控制终端的示意性框图。在一种实施方式中,该控制终端包括但不限于遥控器、地面控制平台、手机、平板电脑、笔记本电脑和PC电脑等。进一步地,该控制终端200包括处理器201、存储器202和显示装置203,处理器201、存储器202和显示装置203通过总线204连接,该总线204比如为I2C(Inter-integrated Circuit)总线。Please refer to FIG. 11, which is a schematic block diagram of a control terminal according to an embodiment of the present application. In an embodiment, the control terminal includes, but is not limited to, a remote control, a ground control platform, a mobile phone, a tablet computer, a notebook computer, a PC computer, and the like. Further, the control terminal 200 includes a processor 201, a memory 202, and a display device 203. The processor 201, the memory 202 and the display device 203 are connected by a bus 204, such as an I2C (Inter-integrated Circuit) bus.
具体地,处理器201可以是微控制单元(Micro-controllerUnit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。Specifically, the processor 201 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
具体地,存储器202可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。Specifically, the memory 202 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk, or a mobile hard disk.
具体地,显示装置203可以是液晶显示屏,也可以是触控显示屏,还可以是外接显示设备。Specifically, the display device 203 may be a liquid crystal display screen, a touch-control display screen, or an external display device.
其中,所述显示装置203,用于显示自定义编程页面。Wherein, the display device 203 is used to display a custom programming page.
所述处理器201用于运行存储在存储器202中的计算机程序,并在执行所述计算机程序时实现如下步骤:The processor 201 is configured to run a computer program stored in the memory 202, and implement the following steps when the computer program is executed:
获取用户基于显示的自定义编程页面触发的程序代码下载指令,并根据所述程序代码下载指令,下载目标程序代码包;Obtain the program code download instruction triggered by the user based on the displayed custom programming page, and download the target program code package according to the program code download instruction;
将所述目标程序代码包发送至可移动平台,以供所述可移动平台加载所述目标程序代码包;Sending the target program code package to a mobile platform for the mobile platform to load the target program code package;
获取用户触发的程序运行指令,并根据所述程序运行指令控制所述可移动平台运行所述目标程序代码包,以使所述可移动平台执行对应的动作。Acquire a program running instruction triggered by a user, and control the movable platform to run the target program code package according to the program running instruction, so that the movable platform executes a corresponding action.
可选地,所述处理器实现所述获取用户基于显示的自定义编程页面触发的程序代码下载指令时,用于实现:Optionally, when the processor implements the obtaining of the program code download instruction triggered by the user based on the displayed custom programming page, it is used to implement:
获取用户对所述自定义编程页面中的代码下载控件的触发操作,并根据所述触发操作显示程序代码包浏览页面;Acquiring the user's trigger operation on the code download control in the custom programming page, and displaying the program code package browsing page according to the trigger operation;
获取用户对所述程序代码包浏览页面中的程序代码包的选择操作,并根据所述选择操作生成对应的程序代码包的程序代码下载指令。Acquire the user's selection operation on the program code package in the program code package browsing page, and generate the program code download instruction of the corresponding program code package according to the selection operation.
可选地,所述处理器实现所述根据所述选择操作生成对应的程序代码包的程序代码下载指令时,用于实现:Optionally, when the processor implements the program code download instruction that generates the corresponding program code package according to the selection operation, it is used to implement:
根据所述选择操作确定目标程序代码包,并确定当前登录账号是否具备所述目标程序代码包的下载权限;Determine the target program code package according to the selection operation, and determine whether the current login account has the download authority of the target program code package;
若所述当前登录账号具备所述目标程序代码包的下载权限,则生成所述目标程序代码包的程序代码下载指令。If the currently logged-in account has the download permission of the target program code package, a program code download instruction of the target program code package is generated.
可选地,所述处理器实现所述确定当前登录账号是否具备所述目标程序代码包的下载权限时,用于实现:Optionally, when the processor implements the determining whether the currently logged-in account has the download permission of the target program code package, it is used to implement:
获取所述目标程序代码包的动作标签,并获取所述当前登录账号的动作标签列表;Acquiring the action label of the target program code package, and acquiring the action label list of the currently logged-in account;
若所述动作标签位于所述动作标签列表,则确定所述当前登录账号具备所述目标程序代码包的下载权限;If the action tag is located in the action tag list, determining that the currently logged-in account has the download permission of the target program code package;
若所述动作标签不位于所述动作标签列表,则确定所述当前登录账号不具备所述目标程序代码包的下载权限。If the action tag is not in the action tag list, it is determined that the currently logged-in account does not have the download authority of the target program code package.
可选地,所述处理器实现所述确定当前登录账号是否具备所述目标程序代码包的下载权限之后,还用于实现:Optionally, after the processor implements the determining whether the currently logged-in account has the download authority of the target program code package, it is further used to implement:
若所述当前登录账号不具备所述目标程序代码包的下载权限,则显示所述目标程序代码包的支付页面;If the currently logged-in account does not have the download permission of the target program code package, displaying the payment page of the target program code package;
获取用户在所述支付页面内输入的支付密码信息,并当所述支付密码信息通过验证时,生成所述目标程序代码包的程序代码下载指令。Obtain the payment password information entered by the user in the payment page, and when the payment password information is verified, generate the program code download instruction of the target program code package.
可选地,所述处理器实现所述程序代码包浏览页面显示有搜索框;所述根据所述触发操作显示程序代码包浏览页面之后,还用于实现:Optionally, the processor realizes that the program code package browsing page is displayed with a search box; after the program code package browsing page is displayed according to the trigger operation, it is further used to realize:
获取用户对所述搜索框的点击操作,并根据所述点击操作在所述程序代码包浏览页面显示动作标签选择窗口;Acquiring a user's click operation on the search box, and displaying an action tag selection window on the program code package browsing page according to the click operation;
获取用户对所述动作标签选择窗口中的动作标签的选择操作,并根据所述选择操作对所述程序代码包浏览页面中的程序代码包进行筛选。Acquire the user's selection operation on the action tag in the action tag selection window, and filter the program code packages in the program code package browsing page according to the selection operation.
可选地,所述处理器实现所述根据所述选择操作对所述程序代码包浏览页面中的程序代码包进行筛选时,用于实现:Optionally, when the processor implements the screening of the program code packages in the program code package browsing page according to the selection operation, the processor is used to implement:
根据所述选择操作确定目标动作标签;Determine the target action label according to the selection operation;
根据所述目标动作标签对所述程序代码包浏览页面中的程序代码包进行筛选。The program code packages in the program code package browsing page are filtered according to the target action tag.
可选地,所述自定义编程页面包括程序代码编程窗口;所述处理器实现所述将所述目标程序代码包发送至可移动平台之前,还用于实现:Optionally, the custom programming page includes a program code programming window; before the processor realizes the sending of the target program code package to the mobile platform, it is also used to realize:
在所述程序代码编程窗口中显示所述目标程序代码包中的程序代码;Displaying the program code in the target program code package in the program code programming window;
获取用户对所述程序代码的编辑操作,并根据所述编辑操作更新所述程序代码;Acquiring the user's editing operation on the program code, and updating the program code according to the editing operation;
获取用户基于所述程序代码编程窗口触发的程序代码发送指令;Acquiring a program code sending instruction triggered by a user based on the program code programming window;
所述将所述目标程序代码包发送至可移动平台,包括:The sending the target program code package to a mobile platform includes:
根据所述程序代码发送指令将更新后的程序代码发送至可移动平台,以供所述可移动平台加载更新后的程序代码。The updated program code is sent to the movable platform according to the program code sending instruction, so that the movable platform can load the updated program code.
可选地,所述编辑操作包括如下至少一种:程序代码修改操作、程序代码删除操作、程序代码增加操作和编程语言转换操作,所述编程语言转换操作用于转换所述程序代码的编程语言。Optionally, the editing operation includes at least one of the following: a program code modification operation, a program code deletion operation, a program code addition operation, and a programming language conversion operation, and the programming language conversion operation is used to convert the programming language of the program code .
可选地,所述自定义编程页面包括运行控件;所述处理器实现所述获取用 户触发的程序运行指令时,用于实现:Optionally, the custom programming page includes a run control; when the processor implements the program run instruction triggered by the user, it is used to implement:
获取用户对所述运行控件的触发操作,并根据所述触发操作,生成对应的程序运行指令。Acquire a user's trigger operation on the running control, and generate a corresponding program running instruction according to the trigger operation.
可选地,所述处理器实现所述根据所述触发操作,生成对应的程序运行指令时,用于实现:Optionally, when the processor realizes that the corresponding program running instruction is generated according to the trigger operation, it is used to realize:
根据所述触发操作,获取所述目标程序代码包的加载进度信息,其中,所述加载进度信息用于描述所述可移动平台加载所述目标程序代码包的进度;Acquiring the loading progress information of the target program code package according to the triggering operation, where the loading progress information is used to describe the progress of the mobile platform loading the target program code package;
根据所述加载进度信息,确定所述可移动平台是否加载完成所述目标程序代码包;According to the loading progress information, determine whether the target program code package has been loaded by the mobile platform;
若所述可移动平台加载完成所述目标程序代码包,则生成所述目标程序代码包的程序运行指令。If the target program code package is loaded by the mobile platform, a program running instruction of the target program code package is generated.
可选地,所述自定义编程页面包括所述目标程序代码包的加载进度条,所述加载进度条用于描述所述可移动平台加载所述目标程序代码包的进度。Optionally, the custom programming page includes a loading progress bar of the target program code package, and the loading progress bar is used to describe the progress of the mobile platform loading the target program code package.
可选地,所述可移动平台包括发射装置,所述发射装置用于发射弹丸,所述动作包括如下至少一种:控制所述可移动平台变速移动、控制所述发射装置变速发射弹丸、控制发射装置按照预设轨迹旋转的同时发射弹丸和控制所述可移动平台按照预设移动路径移动的同时控制发射装置发射弹丸。Optionally, the movable platform includes a launching device for launching projectiles, and the actions include at least one of the following: controlling the movable platform to move at a variable speed, controlling the launching device to launch projectiles at a variable speed, and controlling The launching device launches projectiles while rotating according to a preset trajectory and controls the movable platform to move along a preset movement path while controlling the launching device to launch projectiles.
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的控制终端的具体工作过程,可以参考前述可移动平台控制方法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the control terminal described above can refer to the corresponding process in the aforementioned mobile platform control method embodiment, here No longer.
请参阅图12,图12是本申请一实施例提供的可移动平台的结构示意图。该可移动平台300包括:Please refer to FIG. 12, which is a schematic structural diagram of a movable platform provided by an embodiment of the present application. The movable platform 300 includes:
平台本体310,包括底盘主体311和设于所述底盘主体311上的云台主体312,所述云台主体312用于搭载摄像装314;The platform body 310 includes a chassis main body 311 and a pan/tilt main body 312 provided on the chassis main body 311, and the pan/tilt main body 312 is used to carry a camera 314;
动力装置320,120,设于所述底盘主体311上,用于对所述平台本体310提供移动动力; Power devices 320, 120 are provided on the chassis body 311, and are used to provide moving power to the platform body 310;
通信装置,设于所述平台本体310上,用于与控制终端进行通信。The communication device is arranged on the platform body 310 and is used to communicate with the control terminal.
在一实施例中,所述可移动平台300的平台本体310还包括设于所述底盘主体311上发射装置313,所述发射装置313用于发射弹丸。In an embodiment, the platform body 310 of the movable platform 300 further includes a launching device 313 provided on the chassis main body 311, and the launching device 313 is used to launch projectiles.
可移动平台300包括无人机、可移动机器人和云台车等,无人机包括旋翼型无人机,例如四旋翼无人机、六旋翼无人机、八旋翼无人机,也可以是固定翼无人机,还可以是旋翼型与固定翼无人机的组合,在此不作限定。The mobile platform 300 includes drones, mobile robots, and pan-tilt vehicles. The drones include rotary wing drones, such as quadrotor drones, hexarotor drones, and octorotor drones. The fixed-wing UAV can also be a combination of a rotary-wing type and a fixed-wing UAV, which is not limited here.
在一实施例中,所述可移动平台还包括控制器,所述通信装置与所述控制器连接,其中:In an embodiment, the movable platform further includes a controller, and the communication device is connected to the controller, wherein:
所述通信装置,用于接收所述控制终端发送的目标程序代码包;The communication device is configured to receive the target program code package sent by the control terminal;
所述控制器用于实现:The controller is used to implement:
获取所述通信装置接收到的所述目标程序代码包,并加载所述目标程序代码包。Obtain the target program code package received by the communication device, and load the target program code package.
在一实施例中,所述控制器还用于实现:In an embodiment, the controller is also used to implement:
获取所述目标程序代码包的加载进度信息;Acquiring loading progress information of the target program code package;
将所述加载进度信息发送至所述控制终端,以供所述控制终端基于所述加载进度信息显示对应的加载进度条。The loading progress information is sent to the control terminal, so that the control terminal displays a corresponding loading progress bar based on the loading progress information.
在一实施例中,所述通信装置,还用于接收所述控制终端发送的程序运行指令;In an embodiment, the communication device is further configured to receive a program running instruction sent by the control terminal;
所述控制器还用于实现:The controller is also used to implement:
获取所述通信装置接收到的程序运行指令;Acquiring the program running instruction received by the communication device;
根据所述程序运行指令控制所述可移动平台运行所述目标程序代码包,以使所述可移动平台执行对应的动作。Control the mobile platform to run the target program code package according to the program running instruction, so that the mobile platform executes a corresponding action.
在一实施例中,所述控制器实现获取所述通信装置接收到的程序运行指令之后,还用于实现:In an embodiment, after the controller obtains the program running instruction received by the communication device, it is further used to implement:
获取所述目标程序代码包的当前加载进度信息,并根据所述当前加载进度信息,确定所述可移动平台是否加载完成所述目标程序代码包;Acquiring current loading progress information of the target program code package, and determining whether the mobile platform has completed loading the target program code package according to the current loading progress information;
若所述可移动平台加载完成所述目标程序代码包,则根据所述程序运行指令控制所述可移动平台运行所述目标程序代码包,以使所述可移动平台执行对应的动作。If the target program code package is loaded by the movable platform, the movable platform is controlled to run the target program code package according to the program running instruction, so that the movable platform executes a corresponding action.
在一实施例中,所述动作包括如下至少一种:控制所述可移动平台变速移动、控制所述发射装置变速发射弹丸、控制发射装置按照预设轨迹旋转的同时发射弹丸和控制所述可移动平台按照预设移动路径移动的同时控制发射装置发射弹丸。In an embodiment, the action includes at least one of the following: controlling the movable platform to move at a variable speed, controlling the launching device to launch projectiles at a variable speed, controlling the launching device to rotate according to a preset trajectory while launching projectiles, and controlling the movable platform. The mobile platform controls the launching device to launch projectiles while moving according to the preset moving path.
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的可移动平台的具体工作过程,可以参考前述可移动平台控制方法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the movable platform described above can refer to the corresponding process in the foregoing embodiment of the movable platform control method. This will not be repeated here.
本申请的实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序中包括程序指令,所述处理器执行所 述程序指令,实现上述实施例提供的可移动平台控制方法的步骤。The embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement the foregoing implementation Example provides the steps of the movable platform control method.
其中,所述计算机可读存储介质可以是前述任一实施例所述的控制终端内部存储单元,例如所述控制终端的硬盘或内存。所述计算机可读存储介质也可以是所述控制终端的外部存储设备,例如所述控制终端上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。The computer-readable storage medium may be the internal storage unit of the control terminal described in any of the foregoing embodiments, such as the hard disk or memory of the control terminal. The computer-readable storage medium may also be an external storage device of the control terminal, such as a plug-in hard disk equipped on the control terminal, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) ) Card, Flash Card, etc.
应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should be understood that the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in the specification of this application and the appended claims, unless the context clearly indicates other circumstances, the singular forms "a", "an" and "the" are intended to include plural forms.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the specification and appended claims of this application refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed in this application. Modifications or replacements, these modifications or replacements shall be covered within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
Claims (33)
- 一种可移动平台控制方法,其特征在于,包括:A method for controlling a movable platform, which is characterized in that it comprises:获取用户基于显示的自定义编程页面触发的程序代码下载指令,并根据所述程序代码下载指令,下载目标程序代码包;Obtain the program code download instruction triggered by the user based on the displayed custom programming page, and download the target program code package according to the program code download instruction;将所述目标程序代码包发送至可移动平台,以供所述可移动平台加载所述目标程序代码包;Sending the target program code package to a mobile platform for the mobile platform to load the target program code package;获取用户触发的程序运行指令,并根据所述程序运行指令控制所述可移动平台运行所述目标程序代码包,以使所述可移动平台执行对应的动作。Acquire a program running instruction triggered by a user, and control the movable platform to run the target program code package according to the program running instruction, so that the movable platform executes a corresponding action.
- 根据权利要求1所述的可移动平台控制方法,其特征在于,所述获取用户基于显示的自定义编程页面触发的程序代码下载指令,包括:The mobile platform control method according to claim 1, wherein said acquiring a program code download instruction triggered by a user based on a displayed custom programming page comprises:获取用户对所述自定义编程页面中的代码下载控件的触发操作,并根据所述触发操作显示程序代码包浏览页面;Acquiring the user's trigger operation on the code download control in the custom programming page, and displaying the program code package browsing page according to the trigger operation;获取用户对所述程序代码包浏览页面中的程序代码包的选择操作,并根据所述选择操作生成对应的程序代码包的程序代码下载指令。Acquire the user's selection operation on the program code package in the program code package browsing page, and generate the program code download instruction of the corresponding program code package according to the selection operation.
- 根据权利要求2所述的可移动平台控制方法,其特征在于,所述根据所述选择操作生成对应的程序代码包的程序代码下载指令,包括:The mobile platform control method according to claim 2, wherein the program code download instruction that generates the corresponding program code package according to the selection operation comprises:根据所述选择操作确定目标程序代码包,并确定当前登录账号是否具备所述目标程序代码包的下载权限;Determine the target program code package according to the selection operation, and determine whether the current login account has the download authority of the target program code package;若所述当前登录账号具备所述目标程序代码包的下载权限,则生成所述目标程序代码包的程序代码下载指令。If the currently logged-in account has the download permission of the target program code package, a program code download instruction of the target program code package is generated.
- 根据权利要求3所述的可移动平台控制方法,其特征在于,所述确定当前登录账号是否具备所述目标程序代码包的下载权限,包括:The mobile platform control method according to claim 3, wherein the determining whether the currently logged-in account has the download permission of the target program code package comprises:获取所述目标程序代码包的动作标签,并获取所述当前登录账号的动作标签列表;Acquiring the action label of the target program code package, and acquiring the action label list of the currently logged-in account;若所述动作标签位于所述动作标签列表,则确定所述当前登录账号具备所述目标程序代码包的下载权限;If the action tag is located in the action tag list, determining that the currently logged-in account has the download permission of the target program code package;若所述动作标签不位于所述动作标签列表,则确定所述当前登录账号不具备所述目标程序代码包的下载权限。If the action tag is not in the action tag list, it is determined that the currently logged-in account does not have the download authority of the target program code package.
- 根据权利要求3所述的可移动平台控制方法,其特征在于,所述确定当前登录账号是否具备所述目标程序代码包的下载权限之后,还包括:The mobile platform control method according to claim 3, wherein after the determining whether the currently logged-in account has the download permission of the target program code package, the method further comprises:若所述当前登录账号不具备所述目标程序代码包的下载权限,则显示所述目标程序代码包的支付页面;If the currently logged-in account does not have the download permission of the target program code package, displaying the payment page of the target program code package;获取用户在所述支付页面内输入的支付密码信息,并当所述支付密码信息通过验证时,生成所述目标程序代码包的程序代码下载指令。Obtain the payment password information entered by the user in the payment page, and when the payment password information is verified, generate the program code download instruction of the target program code package.
- 根据权利要求2所述的可移动平台控制方法,其特征在于,所述程序代码包浏览页面显示有搜索框;所述根据所述触发操作显示程序代码包浏览页面之后,还包括:The mobile platform control method according to claim 2, wherein the program code package browsing page displays a search box; after the program code package browsing page is displayed according to the trigger operation, the method further comprises:获取用户对所述搜索框的点击操作,并根据所述点击操作在所述程序代码包浏览页面显示动作标签选择窗口;Acquiring a user's click operation on the search box, and displaying an action tag selection window on the program code package browsing page according to the click operation;获取用户对所述动作标签选择窗口中的动作标签的选择操作,并根据所述选择操作对所述程序代码包浏览页面中的程序代码包进行筛选。Acquire the user's selection operation on the action tag in the action tag selection window, and filter the program code packages in the program code package browsing page according to the selection operation.
- 根据权利要求6所述的可移动平台控制方法,其特征在于,所述根据所述选择操作对所述程序代码包浏览页面中的程序代码包进行筛选,包括:The mobile platform control method according to claim 6, wherein the screening of the program code packages in the program code package browsing page according to the selection operation comprises:根据所述选择操作确定目标动作标签;Determine the target action label according to the selection operation;根据所述目标动作标签对所述程序代码包浏览页面中的程序代码包进行筛选。The program code packages in the program code package browsing page are filtered according to the target action tag.
- 根据权利要求1至7任一项所述的可移动平台控制方法,其特征在于,所述自定义编程页面包括程序代码编程窗口;所述将所述目标程序代码包发送至可移动平台之前,还包括:The movable platform control method according to any one of claims 1 to 7, wherein the custom programming page includes a program code programming window; before the target program code package is sent to the movable platform, Also includes:在所述程序代码编程窗口中显示所述目标程序代码包中的程序代码;Displaying the program code in the target program code package in the program code programming window;获取用户对所述程序代码的编辑操作,并根据所述编辑操作更新所述程序代码;Acquiring the user's editing operation on the program code, and updating the program code according to the editing operation;获取用户基于所述程序代码编程窗口触发的程序代码发送指令;Acquiring a program code sending instruction triggered by a user based on the program code programming window;所述将所述目标程序代码包发送至可移动平台,包括:The sending the target program code package to a mobile platform includes:根据所述程序代码发送指令将更新后的程序代码发送至可移动平台,以供所述可移动平台加载更新后的程序代码。The updated program code is sent to the movable platform according to the program code sending instruction, so that the movable platform can load the updated program code.
- 根据权利要求8所述的可移动平台控制方法,其特征在于,所述编辑操作包括如下至少一种:程序代码修改操作、程序代码删除操作、程序代码增加操作和编程语言转换操作,所述编程语言转换操作用于转换所述程序代码的编程语言。The mobile platform control method according to claim 8, wherein the editing operation includes at least one of the following: program code modification operation, program code deletion operation, program code addition operation, and programming language conversion operation. The language conversion operation is used to convert the programming language of the program code.
- 根据权利要求1至7任一项所述的可移动平台控制方法,其特征在于,所述自定义编程页面包括运行控件;所述获取用户触发的程序运行指令,包括:The mobile platform control method according to any one of claims 1 to 7, wherein the custom programming page includes a running control; and the obtaining a program running instruction triggered by a user includes:获取用户对所述运行控件的触发操作,并根据所述触发操作,生成对应的程序运行指令。Acquire a user's trigger operation on the running control, and generate a corresponding program running instruction according to the trigger operation.
- 根据权利要求10所述的可移动平台控制方法,其特征在于,所述根据所述触发操作,生成对应的程序运行指令,包括:The mobile platform control method according to claim 10, wherein said generating a corresponding program running instruction according to said triggering operation comprises:根据所述触发操作,获取所述目标程序代码包的加载进度信息,其中,所述加载进度信息用于描述所述可移动平台加载所述目标程序代码包的进度;Acquiring the loading progress information of the target program code package according to the triggering operation, where the loading progress information is used to describe the progress of the mobile platform loading the target program code package;根据所述加载进度信息,确定所述可移动平台是否加载完成所述目标程序代码包;According to the loading progress information, determine whether the target program code package has been loaded by the mobile platform;若所述可移动平台加载完成所述目标程序代码包,则生成所述目标程序代码包的程序运行指令。If the target program code package is loaded by the mobile platform, a program running instruction of the target program code package is generated.
- 根据权利要求10所述的可移动平台控制方法,其特征在于,所述自定义编程页面包括所述目标程序代码包的加载进度条,所述加载进度条用于描述所述可移动平台加载所述目标程序代码包的进度。The mobile platform control method according to claim 10, wherein the custom programming page includes a loading progress bar of the target program code package, and the loading progress bar is used to describe the loading of the mobile platform. Describe the progress of the target program code package.
- 根据权利要求1至7任一项所述的可移动平台控制方法,其特征在于,所述可移动平台包括发射装置,所述发射装置用于发射弹丸,所述动作包括如下至少一种:控制所述可移动平台变速移动、控制所述发射装置变速发射弹丸、控制发射装置按照预设轨迹旋转的同时发射弹丸和控制所述可移动平台按照预设移动路径移动的同时控制发射装置发射弹丸。The movable platform control method according to any one of claims 1 to 7, wherein the movable platform comprises a launching device, the launching device is used to launch projectiles, and the action includes at least one of the following: control The movable platform moves at a variable speed, controls the launching device to launch projectiles at a variable speed, controls the launching device to launch projectiles while rotating according to a preset trajectory, and controls the movable platform to move along a preset movement path while controlling the launching device to launch projectiles.
- 一种控制终端,其特征在于,所述控制终端包括显示装置、存储器和处理器;A control terminal, characterized in that, the control terminal includes a display device, a memory, and a processor;所述显示装置,用于显示自定义编程页面;The display device is used to display a custom programming page;所述存储器用于存储计算机程序;The memory is used to store a computer program;所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and, when executing the computer program, implement the following steps:获取用户基于显示的自定义编程页面触发的程序代码下载指令,并根据所述程序代码下载指令,下载目标程序代码包;Obtain the program code download instruction triggered by the user based on the displayed custom programming page, and download the target program code package according to the program code download instruction;将所述目标程序代码包发送至可移动平台,以供所述可移动平台加载所述目标程序代码包;Sending the target program code package to a mobile platform for the mobile platform to load the target program code package;获取用户触发的程序运行指令,并根据所述程序运行指令控制所述可移动平台运行所述目标程序代码包,以使所述可移动平台执行对应的动作。Acquire a program running instruction triggered by a user, and control the movable platform to run the target program code package according to the program running instruction, so that the movable platform executes a corresponding action.
- 根据权利要求14所述的控制终端,其特征在于,所述处理器实现所述获取用户基于显示的自定义编程页面触发的程序代码下载指令时,用于实现:The control terminal according to claim 14, wherein when the processor implements the acquisition of the program code download instruction triggered by the user based on the displayed custom programming page, the processor is used to implement:获取用户对所述自定义编程页面中的代码下载控件的触发操作,并根据所述触发操作显示程序代码包浏览页面;Acquiring the user's trigger operation on the code download control in the custom programming page, and displaying the program code package browsing page according to the trigger operation;获取用户对所述程序代码包浏览页面中的程序代码包的选择操作,并根据所述选择操作生成对应的程序代码包的程序代码下载指令。Acquire the user's selection operation on the program code package in the program code package browsing page, and generate the program code download instruction of the corresponding program code package according to the selection operation.
- 根据权利要求15所述的控制终端,其特征在于,所述处理器实现所述根据所述选择操作生成对应的程序代码包的程序代码下载指令时,用于实现:The control terminal according to claim 15, wherein when the processor implements the program code download instruction for generating the corresponding program code package according to the selection operation, the processor is used to implement:根据所述选择操作确定目标程序代码包,并确定当前登录账号是否具备所述目标程序代码包的下载权限;Determine the target program code package according to the selection operation, and determine whether the current login account has the download authority of the target program code package;若所述当前登录账号具备所述目标程序代码包的下载权限,则生成所述目标程序代码包的程序代码下载指令。If the currently logged-in account has the download permission of the target program code package, a program code download instruction of the target program code package is generated.
- 根据权利要求16所述的控制终端,其特征在于,所述处理器实现所述确定当前登录账号是否具备所述目标程序代码包的下载权限时,用于实现:The control terminal according to claim 16, characterized in that, when the processor implements the determining whether the currently logged-in account has the download authority of the target program code package, it is used to implement:获取所述目标程序代码包的动作标签,并获取所述当前登录账号的动作标签列表;Acquiring the action label of the target program code package, and acquiring the action label list of the currently logged-in account;若所述动作标签位于所述动作标签列表,则确定所述当前登录账号具备所述目标程序代码包的下载权限;If the action tag is located in the action tag list, determining that the currently logged-in account has the download permission of the target program code package;若所述动作标签不位于所述动作标签列表,则确定所述当前登录账号不具备所述目标程序代码包的下载权限。If the action tag is not in the action tag list, it is determined that the currently logged-in account does not have the download authority of the target program code package.
- 根据权利要求16所述的控制终端,其特征在于,所述处理器实现所述确定当前登录账号是否具备所述目标程序代码包的下载权限之后,还用于实现:The control terminal according to claim 16, wherein after the processor implements the determining whether the currently logged-in account has the download authority of the target program code package, it is further configured to implement:若所述当前登录账号不具备所述目标程序代码包的下载权限,则显示所述目标程序代码包的支付页面;If the currently logged-in account does not have the download permission of the target program code package, displaying the payment page of the target program code package;获取用户在所述支付页面内输入的支付密码信息,并当所述支付密码信息通过验证时,生成所述目标程序代码包的程序代码下载指令。Obtain the payment password information entered by the user in the payment page, and when the payment password information is verified, generate the program code download instruction of the target program code package.
- 根据权利要求15所述的控制终端,其特征在于,所述处理器实现所述程序代码包浏览页面显示有搜索框;所述根据所述触发操作显示程序代码包浏览页面之后,还用于实现:The control terminal according to claim 15, wherein the processor realizes that the program code package browsing page displays a search box; after the program code package browsing page is displayed according to the trigger operation, it is also used to realize :获取用户对所述搜索框的点击操作,并根据所述点击操作在所述程序代码包浏览页面显示动作标签选择窗口;Acquiring a user's click operation on the search box, and displaying an action tag selection window on the program code package browsing page according to the click operation;获取用户对所述动作标签选择窗口中的动作标签的选择操作,并根据所述选择操作对所述程序代码包浏览页面中的程序代码包进行筛选。Acquire the user's selection operation on the action tag in the action tag selection window, and filter the program code packages in the program code package browsing page according to the selection operation.
- 根据权利要求19所述的控制终端,其特征在于,所述处理器实现所述 根据所述选择操作对所述程序代码包浏览页面中的程序代码包进行筛选时,用于实现:The control terminal according to claim 19, wherein when the processor implements the screening of the program code packages in the program code package browsing page according to the selection operation, the processor is used to implement:根据所述选择操作确定目标动作标签;Determine the target action label according to the selection operation;根据所述目标动作标签对所述程序代码包浏览页面中的程序代码包进行筛选。The program code packages in the program code package browsing page are filtered according to the target action tag.
- 根据权利要求14至20任一项所述的控制终端,其特征在于,所述自定义编程页面包括程序代码编程窗口;所述处理器实现所述将所述目标程序代码包发送至可移动平台之前,还用于实现:The control terminal according to any one of claims 14 to 20, wherein the custom programming page includes a program code programming window; the processor implements the sending of the target program code package to a mobile platform Previously, it was also used to achieve:在所述程序代码编程窗口中显示所述目标程序代码包中的程序代码;Displaying the program code in the target program code package in the program code programming window;获取用户对所述程序代码的编辑操作,并根据所述编辑操作更新所述程序代码;Acquiring the user's editing operation on the program code, and updating the program code according to the editing operation;获取用户基于所述程序代码编程窗口触发的程序代码发送指令;Acquiring a program code sending instruction triggered by a user based on the program code programming window;所述将所述目标程序代码包发送至可移动平台,包括:The sending the target program code package to a mobile platform includes:根据所述程序代码发送指令将更新后的程序代码发送至可移动平台,以供所述可移动平台加载更新后的程序代码。The updated program code is sent to the movable platform according to the program code sending instruction, so that the movable platform can load the updated program code.
- 根据权利要求21所述的控制终端,其特征在于,所述编辑操作包括如下至少一种:程序代码修改操作、程序代码删除操作、程序代码增加操作和编程语言转换操作,所述编程语言转换操作用于转换所述程序代码的编程语言。The control terminal according to claim 21, wherein the editing operation includes at least one of the following: a program code modification operation, a program code deletion operation, a program code addition operation, and a programming language conversion operation, the programming language conversion operation The programming language used to convert the program code.
- 根据权利要求14至20任一项所述的控制终端,其特征在于,所述自定义编程页面包括运行控件;所述处理器实现所述获取用户触发的程序运行指令时,用于实现:The control terminal according to any one of claims 14 to 20, wherein the custom programming page includes a run control; when the processor implements the acquisition of a user-triggered program run instruction, it is used to implement:获取用户对所述运行控件的触发操作,并根据所述触发操作,生成对应的程序运行指令。Acquire a user's trigger operation on the running control, and generate a corresponding program running instruction according to the trigger operation.
- 根据权利要求23所述的控制终端,其特征在于,所述处理器实现所述根据所述触发操作,生成对应的程序运行指令时,用于实现:The control terminal according to claim 23, wherein, when the processor realizes that the corresponding program running instruction is generated according to the trigger operation, the processor is used to realize:根据所述触发操作,获取所述目标程序代码包的加载进度信息,其中,所述加载进度信息用于描述所述可移动平台加载所述目标程序代码包的进度;Acquiring the loading progress information of the target program code package according to the triggering operation, where the loading progress information is used to describe the progress of the mobile platform loading the target program code package;根据所述加载进度信息,确定所述可移动平台是否加载完成所述目标程序代码包;According to the loading progress information, determine whether the target program code package has been loaded by the mobile platform;若所述可移动平台加载完成所述目标程序代码包,则生成所述目标程序代码包的程序运行指令。If the target program code package is loaded by the mobile platform, a program running instruction of the target program code package is generated.
- 根据权利要求23所述的控制终端,其特征在于,所述自定义编程页面 包括所述目标程序代码包的加载进度条,所述加载进度条用于描述所述可移动平台加载所述目标程序代码包的进度。The control terminal according to claim 23, wherein the custom programming page includes a loading progress bar of the target program code package, and the loading progress bar is used to describe that the mobile platform loads the target program The progress of the code package.
- 根据权利要求14至20任一项所述的控制终端,其特征在于,所述可移动平台包括发射装置,所述发射装置用于发射弹丸,所述动作包括如下至少一种:控制所述可移动平台变速移动、控制所述发射装置变速发射弹丸、控制发射装置按照预设轨迹旋转的同时发射弹丸和控制所述可移动平台按照预设移动路径移动的同时控制发射装置发射弹丸。The control terminal according to any one of claims 14 to 20, wherein the movable platform comprises a launching device, the launching device is used to launch projectiles, and the action includes at least one of the following: The mobile platform moves at variable speeds, controls the launching device to launch projectiles at variable speeds, controls the launching device to launch projectiles while rotating according to a preset trajectory, and controls the movable platform to move along a preset movement path while controlling the launching device to launch projectiles.
- 一种可移动平台,其特征在于,所述可移动平台包括:A movable platform, characterized in that, the movable platform includes:平台本体,包括底盘主体和设于所述底盘主体上的云台主体,所述云台主体用于搭载摄像装置;The platform body includes a chassis main body and a pan/tilt main body provided on the chassis main body, and the pan/tilt main body is used to carry a camera device;动力装置,设于所述底盘主体上,用于对所述平台本体提供移动动力;A power device, which is provided on the chassis body, and is used to provide moving power to the platform body;通信装置,设于所述平台本体上,用于与控制终端进行通信。The communication device is arranged on the platform body and is used to communicate with the control terminal.
- 根据权利要求27所述的可移动平台,其特征在于,所述可移动平台包括控制器,所述通信装置与所述控制器连接,其中:The movable platform according to claim 27, wherein the movable platform comprises a controller, and the communication device is connected to the controller, wherein:所述通信装置,用于接收所述控制终端发送的目标程序代码包;The communication device is configured to receive the target program code package sent by the control terminal;所述控制器用于实现:The controller is used to implement:获取所述通信装置接收到的所述目标程序代码包,并加载所述目标程序代码包。Obtain the target program code package received by the communication device, and load the target program code package.
- 根据权利要求28所述的可移动平台,其特征在于,所述控制器还用于实现:The movable platform according to claim 28, wherein the controller is further used to implement:获取所述目标程序代码包的加载进度信息;Acquiring loading progress information of the target program code package;将所述加载进度信息发送至所述控制终端,以供所述控制终端基于所述加载进度信息显示对应的加载进度条。The loading progress information is sent to the control terminal, so that the control terminal displays a corresponding loading progress bar based on the loading progress information.
- 根据权利要求28所述的可移动平台,其特征在于,所述通信装置,还用于接收所述控制终端发送的程序运行指令;The mobile platform according to claim 28, wherein the communication device is further configured to receive a program running instruction sent by the control terminal;所述控制器还用于实现:The controller is also used to implement:获取所述通信装置接收到的程序运行指令;Acquiring the program running instruction received by the communication device;根据所述程序运行指令控制所述可移动平台运行所述目标程序代码包,以使所述可移动平台执行对应的动作。Control the mobile platform to run the target program code package according to the program running instruction, so that the mobile platform executes a corresponding action.
- 根据权利要求30所述的可移动平台,其特征在于,所述控制器实现获取所述通信装置接收到的程序运行指令之后,还用于实现:The mobile platform according to claim 30, wherein after the controller obtains the program running instruction received by the communication device, it is further used for:获取所述目标程序代码包的当前加载进度信息,并根据所述当前加载进度 信息,确定所述可移动平台是否加载完成所述目标程序代码包;Acquiring current loading progress information of the target program code package, and determining whether the mobile platform has completed loading the target program code package according to the current loading progress information;若所述可移动平台加载完成所述目标程序代码包,则根据所述程序运行指令控制所述可移动平台运行所述目标程序代码包,以使所述可移动平台执行对应的动作。If the target program code package is loaded by the movable platform, the movable platform is controlled to run the target program code package according to the program running instruction, so that the movable platform executes a corresponding action.
- 根据权利要求30所述的可移动平台,其特征在于,所述可移动平台还包括发射装置,所述发射装置用于发射弹丸,所述动作包括如下至少一种:控制所述可移动平台变速移动、控制所述发射装置变速发射弹丸、控制发射装置按照预设轨迹旋转的同时发射弹丸和控制所述可移动平台按照预设移动路径移动的同时控制发射装置发射弹丸。The movable platform according to claim 30, wherein the movable platform further comprises a launching device, the launching device is used to launch projectiles, and the action includes at least one of the following: controlling the speed of the movable platform Moving and controlling the launching device to launch projectiles at variable speeds, controlling the launching device to launch projectiles while rotating according to a preset trajectory, and controlling the movable platform to move along a preset movement path while controlling the launching device to launch projectiles.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1-13中任一项所述的可移动平台控制方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes the method described in any one of claims 1-13. The movable platform control method described.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201980060095.7A CN112753013A (en) | 2019-12-23 | 2019-12-23 | Movable platform control method, control terminal, movable platform and storage medium |
PCT/CN2019/127659 WO2021127942A1 (en) | 2019-12-23 | 2019-12-23 | Mobile platform control method, control terminal, mobile platform, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/127659 WO2021127942A1 (en) | 2019-12-23 | 2019-12-23 | Mobile platform control method, control terminal, mobile platform, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021127942A1 true WO2021127942A1 (en) | 2021-07-01 |
Family
ID=75645790
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/127659 WO2021127942A1 (en) | 2019-12-23 | 2019-12-23 | Mobile platform control method, control terminal, mobile platform, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112753013A (en) |
WO (1) | WO2021127942A1 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019668A (en) * | 2011-09-24 | 2013-04-03 | 民间创新基金会有限公司 | Cloud computing system configured for a consumer to program a smart phone and touch pad |
CN106797396A (en) * | 2014-09-29 | 2017-05-31 | 莱恩斯特里姆技术有限公司 | For the application shop of state machine |
CN107053143A (en) * | 2017-05-31 | 2017-08-18 | 佛山华数机器人有限公司 | A kind of industrial robot teaching device and application method based on WEB controls |
CN107848109A (en) * | 2015-07-08 | 2018-03-27 | 优傲机器人公司 | For the method for the end user programming that bag extension industrial robot is contributed using third party |
CN108268255A (en) * | 2018-02-11 | 2018-07-10 | 遨博(北京)智能科技有限公司 | For programming the method and apparatus of robot |
CN109048928A (en) * | 2018-10-25 | 2018-12-21 | 遨博(北京)智能科技有限公司 | A kind of generation method and device of robot control program |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3490369B2 (en) * | 2000-02-15 | 2004-01-26 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Content information acquisition method, collaboration system and collaboration server |
CN109144609B (en) * | 2018-08-31 | 2020-06-02 | 腾讯科技(深圳)有限公司 | Application downloading method and device, storage medium and terminal |
CN109491723A (en) * | 2018-11-07 | 2019-03-19 | 广东小天才科技有限公司 | Application program running method, application program running device and mobile terminal |
CN110457028B (en) * | 2019-08-06 | 2023-09-01 | 软通智慧信息技术有限公司 | Page visual programming method, device, server and storage medium |
-
2019
- 2019-12-23 WO PCT/CN2019/127659 patent/WO2021127942A1/en active Application Filing
- 2019-12-23 CN CN201980060095.7A patent/CN112753013A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019668A (en) * | 2011-09-24 | 2013-04-03 | 民间创新基金会有限公司 | Cloud computing system configured for a consumer to program a smart phone and touch pad |
CN106797396A (en) * | 2014-09-29 | 2017-05-31 | 莱恩斯特里姆技术有限公司 | For the application shop of state machine |
CN107848109A (en) * | 2015-07-08 | 2018-03-27 | 优傲机器人公司 | For the method for the end user programming that bag extension industrial robot is contributed using third party |
CN107053143A (en) * | 2017-05-31 | 2017-08-18 | 佛山华数机器人有限公司 | A kind of industrial robot teaching device and application method based on WEB controls |
CN108268255A (en) * | 2018-02-11 | 2018-07-10 | 遨博(北京)智能科技有限公司 | For programming the method and apparatus of robot |
CN109048928A (en) * | 2018-10-25 | 2018-12-21 | 遨博(北京)智能科技有限公司 | A kind of generation method and device of robot control program |
Also Published As
Publication number | Publication date |
---|---|
CN112753013A (en) | 2021-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7555336B2 (en) | Funnel visualization with data point animation and paths | |
KR102221488B1 (en) | Application control using gesture-based triggers | |
US10929005B2 (en) | Electronic device, wearable device, and method of controlling displayed object in electronic device | |
Seneviratne | Hands-On Internet of Things with Blynk: Build on the power of Blynk to configure smart devices and build exciting IOT projects | |
EP4235412B1 (en) | Desktop sharing method and mobile terminal | |
CN114117263A (en) | Page display method, device, equipment and storage medium | |
US20150052459A1 (en) | Shortcut command button for a hierarchy tree | |
CN112433693A (en) | Split screen display method and device and electronic equipment | |
CN112783408A (en) | Gesture navigation method and device of electronic equipment, equipment and readable storage medium | |
CN112698762B (en) | Icon display method and device and electronic equipment | |
WO2022088796A1 (en) | Control method and apparatus for handheld intelligent terminal, and electronic device and storage medium | |
CN105589627B (en) | Shortcut menu display method, shortcut menu display device and terminal | |
WO2021127942A1 (en) | Mobile platform control method, control terminal, mobile platform, and storage medium | |
CN112416195A (en) | Method and device for generating device control function | |
WO2023143460A1 (en) | Method and device for controlling flight assembly, terminal, and readable storage medium | |
US11915177B1 (en) | Automatically recommending community sourcing events based on observations | |
US20220147148A1 (en) | Virtual reality user input system and method | |
CN112578961B (en) | Application identifier display method and device | |
CN113010059B (en) | Application icon management method and device and electronic equipment | |
CN112328138B (en) | Data display method, device and storage medium | |
CN113986427A (en) | Object display method and device, electronic equipment and storage medium | |
US20220261453A1 (en) | Real Estate Search TV Channel | |
WO2021056259A1 (en) | File download control method, terminal, system, movable platform, and storage medium | |
US9515879B2 (en) | Establishing an action list for reconfiguration of a remote hardware system | |
KR20120038326A (en) | Digital contents service system, device and method for creating digital contents |
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: 19957808 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: 19957808 Country of ref document: EP Kind code of ref document: A1 |