WO2021016972A1 - Programming system and method, and program execution device - Google Patents

Programming system and method, and program execution device Download PDF

Info

Publication number
WO2021016972A1
WO2021016972A1 PCT/CN2019/098754 CN2019098754W WO2021016972A1 WO 2021016972 A1 WO2021016972 A1 WO 2021016972A1 CN 2019098754 W CN2019098754 W CN 2019098754W WO 2021016972 A1 WO2021016972 A1 WO 2021016972A1
Authority
WO
WIPO (PCT)
Prior art keywords
program information
program
information carrier
execution device
executable
Prior art date
Application number
PCT/CN2019/098754
Other languages
French (fr)
Chinese (zh)
Inventor
万阳
任冠男
李卓泉
肖旭
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN201980032885.4A priority Critical patent/CN112189185A/en
Priority to PCT/CN2019/098754 priority patent/WO2021016972A1/en
Publication of WO2021016972A1 publication Critical patent/WO2021016972A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63HTOYS, e.g. TOPS, DOLLS, HOOPS OR BUILDING BLOCKS
    • A63H33/00Other toys
    • A63H33/04Building blocks, strips, or similar building parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Definitions

  • This application relates to the technical field of programming, and specifically to a programming system, method and program execution device.
  • the mainstream programming tool is scrath graphical programming tool, which has the following characteristics: in the software interface, the commands and parameters that constitute the program are realized by blocks in the shape of building blocks, and users can drag different shapes The modules of different shapes can be combined to get a complete program, and then the programming operation can be realized.
  • this method still has the following shortcomings: it needs to rely on the use of program execution equipment such as mobile phones or computers, which will affect the eyesight of teenagers and children, etc.; it requires users to have a certain basic program execution equipment operation; the programming method is not intuitive enough Wait.
  • one of the objectives of the present invention is to provide a materialized programming method and device to at least achieve the purpose of simplicity, intuitiveness, etc.
  • an embodiment of the present invention provides a programming system, including:
  • the execution device is used for collecting at least one image of the program information carrier, and identifying at least one program information identified by the program information carrier from the collected image; compiling the executable program according to the recognized program information, and The executable program is executed when the execution conditions are met.
  • an embodiment of the present invention provides a programming method, which is applied to a program execution device, and includes:
  • the executable program is compiled according to the recognized program information, so as to execute the executable program when the execution condition is met.
  • an embodiment of the present invention provides a program execution device, including: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and when the processor executes the computer program:
  • the executable program is compiled according to the recognized program information, so as to execute the executable program when the execution condition is met.
  • the programming system, method, and program execution device provided by the embodiments of the present invention identify program information by setting a program information carrier, enabling users to manually operate the program information carrier to construct corresponding program information, and the execution device collects the program
  • the information carrier is identified to obtain the program information, and the executable program is compiled according to the program information, and the executable program information is executed by the execution device under the condition that the execution conditions are met; compared with the prior art, the software interface of the computer device Compared with the way of operation, the embodiment of the present invention has a simpler and more intuitive positive effect.
  • FIG. 1 is a schematic diagram of a programming system provided by an embodiment of the present invention
  • Figure 2 is a schematic structural diagram of a program information carrier provided by an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an assembly provided by an embodiment of the present invention.
  • Figure 4 is a schematic structural diagram of an execution device provided by an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a programming method provided by an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of another programming method provided by an embodiment of the present invention.
  • Fig. 7 is a schematic structural diagram of a program execution device provided by an embodiment of the present invention.
  • the program execution device in the embodiment of the present invention may be any electronic device with an image acquisition function.
  • the program execution device may be a mobile platform.
  • the mobile platform may be a remote control device with mobile functions such as drones, unmanned vehicles, unmanned ships, and mobile robots.
  • the embodiment of the present invention takes an unmanned vehicle as the program execution device as an example.
  • Fig. 1 is a schematic diagram of a programming system provided by an embodiment of the present invention.
  • a programming system provided in an embodiment of the present invention includes:
  • program information carriers 10 are used to identify program information.
  • the program information includes, but is not limited to: information instructing the execution of the device action (such as information instructing the execution of the device to move), instructing the execution of the device to produce photoelectric effects, instructing the execution of the device to emit sound signals, instructing the execution of the device to enter certain functional modes Information etc.
  • the information instructing the execution device to move includes but is not limited to: instructing the execution device to move a specified distance in a direction, the specified distance may be a user-defined distance or a preset distance; information instructing the execution device to turn left or right Wait.
  • the identification method of the program information may include, but is not limited to, text, numbers, letters, symbols, images, and the shape of the program information carrier 10, etc.
  • the image includes, but is not limited to, two-dimensional codes, barcodes, and the like.
  • the execution device 200 is used for collecting images of at least one program information carrier, and identifying program information identified by the at least one program information carrier from the collected images; compiling the executable program according to the recognized program information, so as to execute Execute the executable program under conditions.
  • the user can select one or more corresponding program information carriers according to his own programming logic and the operation expected to be executed by the device to construct a set of executable programs corresponding to the execution operation.
  • one program information The carrier may correspond to one or more operations that the execution device can perform.
  • the above-mentioned method for the execution device to collect images of program information carriers can be to collect images of each program information carrier in sequence; it can also directly collect all program information Then, the program information identified by each program information carrier is identified. At this time, the multiple program information carriers can be concentrated in one area, so that the execution device can collect the images including the multiple program information carriers at one time. In this way, after obtaining the program information identified by each program information carrier, the program information can be compiled according to the arrangement order of the program information to obtain an executable program, and the executable program can be executed when the execution conditions are met.
  • the execution device may report an error or prompt, or ignore the unrecognized program information carrier or at least one program information carrier that causes the compilation logic to conflict.
  • the user can construct multiple sets of executable programs corresponding to the operations to be executed by the execution device through various combinations of the program information carriers of the physical nature, and the execution device executes the executable program.
  • the user can intuitively determine the operation content corresponding to the executable program based on one or more operations corresponding to the program information carrier, so that the user can program without computers, mobile phones and other electronic devices, and does not need to know English Words, not to mention the need to learn programming languages, can realize the exercise of programming logical thinking in the process of training hands-on ability, which has the positive effect of simple, easy to learn and intuitive.
  • the foregoing fulfillment of the execution condition includes: receiving a trigger signal to start execution sent by a user terminal, the user terminal is in communication with the execution device, and may be used to control the execution device, which may be a mobile phone used by the user , Tablet PCs and other terminal devices, or remote control devices.
  • the foregoing fulfillment of the execution condition includes: receiving a user's input operation on the execution device, the input operation is used to instruct the execution device to execute the foregoing executable program, for example, it may be detected that the user opens a certain function button on the execution device Then, such as the start key, and then confirm that the execution conditions are met. It should be noted that the above are only examples, and the present invention does not limit this.
  • the user selects the corresponding program information carrier 10 according to the program content to be executed by the execution device 200, and uses the selected program information carrier 10 to construct a combination corresponding to the executable program , And after the assembly is completed, the execution device 200 is triggered to collect images of each program information carrier 10 in the assembly, and the program information identified by the program information carrier 10 is identified from the collected images; compiling according to the identified program information Obtain an executable program, and execute the executable program when the execution conditions are met.
  • the program information is marked on the surface of the program information carrier.
  • the method of identifying program information on the surface of the program information carrier may include: printing the program information on the surface of the program information carrier, and the identification form of the program information may be text information, designated symbol information, or digital Information, or letter information, or image information, etc.
  • the user can intuitively see the program information represented by each program information carrier, so that the user can select different program information carriers to construct a corresponding program information carrier combination according to the program content to be executed by the execution device.
  • the above-mentioned program information includes: user-defined information.
  • Fig. 2 is a schematic structural diagram of a program information carrier provided by an embodiment of the present invention.
  • the surface of the program information carrier 10 is provided with a user-defined information area 101.
  • the user can write user-defined information in the user-defined information area 101.
  • the execution device includes a pan-tilt
  • the user-defined information may be the speed of the pan-tilt.
  • the speed of the pan/tilt may refer to the speed of each rotation axis in the pan/tilt, or the speed of a certain rotation axis, which can be specifically designed as required.
  • the size of the rotation angle of the pan-tilt can also be customized.
  • a custom information area 101 can be written instructions for multiple dimensions of a functional component of the execution device.
  • the custom information area 101 can be written to indicate the pan/tilt. Speed information of acceleration movement first and deceleration movement second.
  • the execution device may include multiple functional components, and for different functional components, there may be a program information carrier that instructs different functional components to perform corresponding operations and a corresponding custom information area 101.
  • the program information carrier may include a program information carrier that instructs the driver to execute forward, and the custom area 101 of the program information carrier can write, for example, the advance distance.
  • some information parameters are preset for users to choose.
  • the information parameters can be angles, such as 5 degrees, 10 degrees, 15 degrees, and 30 degrees, or distance parameters, such as 2 meters, 3 meters, 1 meter, 50 cm, 20 cm, etc., after the user selects an information parameter, the parameter is written into the custom information area 101.
  • the custom information area 101 may be a smearable filling area, a glueable area, or a fillable groove area to realize the flexible application of the program information carrier.
  • a first identification is provided on the program information carrier 10; the first identification may be: a two-dimensional code, a barcode, or the like.
  • the above-mentioned first identifier is used to be detected by the execution device to identify the program information carrier, and to further identify the program information identified by the program information carrier after identifying the program information carrier.
  • the first identifier is set on the program information carrier, in order to allow the execution device to identify the program information carrier, and then after identifying the program information carrier, identify the program information identified by the program information carrier; so, It can prevent the execution device from being interfered by objects other than the program information carrier during the process of identifying the program information identified by the program information carrier.
  • a second identifier is set on the program information carrier, and the second identifier is used to record the program information identified by the program information carrier; for example, the second identifier may be: a graphic code Labels, such as QR codes, barcodes, etc.
  • the execution device is also used to read the graphic code label in the image to obtain the program information recorded by the graphic code label.
  • the user can distinguish different program information carriers according to the shape of the program information carrier or the identification on the surface of the program information carrier, and then select different program information carriers to construct a combination that corresponds to the program content to be executed by the execution device
  • the program information carrier that the user needs to select includes: start program information carrier, action execution program information carrier, and end program information carrier; where the action The execution program information carrier represents the action information of "go straight for 5 meters”.
  • Fig. 3 is a schematic structural diagram of an assembly provided by an embodiment of the present invention.
  • the combination is constructed by the program information carriers selected by the user in a certain order, and the program information carriers are detachably connected.
  • the program information carriers included in each combination include: a start program information carrier and an end program information carrier.
  • the start program information carrier is used to identify the program information at the beginning of the executable program;
  • the end program information carrier is used to identify the program information at the end of the executable program.
  • the execution device in this embodiment is an unmanned vehicle, and the unmanned vehicle includes a chassis and a pan/tilt provided on the chassis.
  • the program information carriers included in the combination are: start program information carrier 301, chassis mode program information carrier 302, chassis angle program information carrier 303, chassis steering program information carrier 304, straight program information carrier 305, pan-tilt mode program information 306.
  • the blank grid area (indicated by the dashed frame) on some information carriers is a user-defined information area.
  • the program information identified by the aforementioned chassis mode program information carrier 302 is used to indicate that the operation to be performed by the unmanned vehicle is the operation of the pan/tilt following the chassis
  • the program information identified by the chassis angle program information carrier 303 is used to indicate the chassis
  • the steering angle (such as 30 degrees)
  • the program information identified by the chassis steering program information carrier 304 is used to indicate the steering of the chassis (such as turning left or right)
  • the program information identified by the aforementioned straight program information carrier 305 is used to indicate no People and vehicles go straight
  • the program information identified by the above-mentioned pan/tilt mode program information carrier 306 is used to indicate that the operation to be performed by the execution device is the operation of the chassis following the pan/tilt
  • the program information identified by the above-mentioned pan/tilt rotation angle program information carrier 307 It is used to indicate the steering angle of the pan/tilt head around the yaw axis, and the above-mentioned pan/tilt steering program
  • the program information identified by the chassis angle program information carrier 303 is used to indicate that the steering angle of the chassis is 30 degrees
  • the program information identified by the chassis steering program information carrier 304 is used to indicate that the steering of the chassis is left turn, and the program goes straight.
  • the program information identified by the information carrier 305 is used to instruct the unmanned vehicle to go straight for 5 meters
  • the program information identified by the program information carrier 307 of the pan/tilt rotation angle is used to indicate that the steering angle of the pan/tilt around the yaw axis is 180 degrees/
  • the platform turning program information carrier 308 is used to instruct the platform to turn to the right.
  • the executable program can perform the following operations when the execution conditions are met: In the process of turning 30 degrees to the left, the gimbal rotates 30 degrees to the left following the chassis; then, when the chassis has turned 30 degrees, go straight forward 10; then, the gimbal starts to rotate 180 to the right, and at the same time, In the process of rotating to the right, the chassis also rotates to the right with the pan/tilt; finally, after the pan/tilt rotates 180 degrees to the right, the execution of the executable program is completed.
  • the user can be allowed to use the program information carrier to construct the assembly, and at the same time, the execution device can recognize the program information identified by each program information carrier in the constructed assembly, and compile the executable according to the recognized program information. Program, execute the executable program, and then in the case that the execution conditions are met, the programming results can be displayed quickly.
  • the above-mentioned program information carriers can be detachably connected, and the program information carriers can be arbitrarily combined, so that the execution device can obtain executable programs with different contents.
  • the program information carriers selected by the user can be detachably connected together to be constructed to obtain a specified shape; for example, it can be a linear type, as shown in FIG. 3; or Back shape or square shape.
  • the execution device as a movable platform as an example, such as an unmanned vehicle
  • the user can control the unmanned vehicle to move along a specified shape by remote control, etc., during the movement, image collection and identification of each program information carrier
  • the program information identified by the information carrier is compiled to obtain an executable program, and then the executable program information is executed when the execution conditions are met.
  • a combination of different shapes is constructed by using the selected program information carrier, and the execution device is manipulated to move along the shape for image collection, which can make the entire programming operation more interesting and further exercise the user’s understanding of the mobile platform Control ability.
  • the program information carrier 10 may be provided with a structural member for connecting with other program information carriers, and the program information carriers can be detachably connected through the structural member; for example, the structure
  • the components include a groove 102 and an insert 103, and the shape of the groove 102 is compatible with the shape of the insert 103.
  • the above-mentioned program information carrier is provided with an adhesive part or a magnet component, and the detachable connection with other program information carriers is realized through the adhesive part and the magnet component.
  • a user can select different program information carriers to connect to each other to construct a combination that characterizes different program contents.
  • the sequence of the operations indicated in the executable program compiled by the execution device is related to the connection sequence between the program information carriers. Furthermore, in the embodiment of the present invention, the user can sequentially combine or splice corresponding different program information carriers according to the order of the various operations to be performed by the execution device.
  • the sequence of operations indicated in the executable program may be the sequence of connection between program information carriers. It can be understood that the execution sequence between several adjacently connected program information carriers may be parallel, as shown in FIG. 3 for the execution sequence of operations indicated by the chassis angle program information carrier 303 and the chassis steering program information carrier 304.
  • the above-mentioned program information carrier includes: a three-dimensional block having a predetermined shape.
  • the three-dimensional block can be a building block, and the user can stack or splice the three-dimensional blocks of different shapes to characterize the content of the operation to be performed by the execution device, so that the execution device can recognize by collecting images of the stacked or spliced stereo blocks
  • the program information represented by different three-dimensional blocks is then compiled according to the program information represented by each three-dimensional block to obtain the program to be executed.
  • the above-mentioned program information carrier includes: a simulated three-dimensional block of a functional component included in the execution device.
  • the execution device is an unmanned vehicle
  • the functional components included in the unmanned vehicle are: wheels and body.
  • the user can select the wheel simulation solid block and the body simulation solid block, and then use the wheel to simulate the solid block and the body
  • the simulation three-dimensional block is used to construct a combined body.
  • the execution equipment collects the images of the wheel simulation three-dimensional block and the car body simulation three-dimensional block, and recognizes the program information represented by the wheel simulation three-dimensional block and the car body simulation three-dimensional block.
  • the program information represented by the block is compiled to obtain executable program information, and then the executable program information is executed after the execution conditions are met.
  • the shape of the simulated three-dimensional block, the graphic information printed on the surface, etc. are used to identify the moving objects (function components) in the unmanned vehicle, and use the preset The information controls the action object to perform the corresponding operation.
  • the program information carrier as the simulated three-dimensional block of the functional component of the execution device, on the one hand, the user can more intuitively and vividly construct the selected simulated three-dimensional block according to the functional components included in the execution device.
  • Fig. 4 is a schematic structural diagram of an execution device provided by an embodiment of the present invention.
  • the above-mentioned execution device 200 includes: an execution body 201 and an image acquisition device 202, and the image acquisition device 202 is detachably installed at a designated position on the execution body 201.
  • the above-mentioned execution device 200 is used to collect at least one image of the program information carrier through the image acquisition device 202.
  • the above-mentioned execution device is provided with a corresponding control terminal, and the user can control the execution device to perform corresponding operations through the control terminal;
  • the control terminal may be a terminal device such as a mobile phone, a computer, and a remote control.
  • the above-mentioned image acquisition device may send the image to the above-mentioned control terminal, and the control terminal may also identify each program information carrier in the image. , Obtain the program information identified by the program information carrier and the operation content of the corresponding execution device, and then the user can control the execution device to execute the corresponding operation through the control terminal. In this way, the user's ability to manipulate the terminal and execution equipment can be effectively exercised, making the whole process more interesting.
  • the image collected by the aforementioned image acquisition device can be transmitted back to the control terminal, and the user can control the execution device according to the picture returned by the image acquisition device, such as controlling the execution device to move in a certain direction.
  • the user can use the image acquisition device to understand the situation around the execution device through the field of view of the execution device, so as to better identify the program information identified by the program information carrier.
  • the above-mentioned image acquisition device 200 may be installed below, on one side, or directly in front of the execution body; for example, the above-mentioned image acquisition device is installed below the execution body, if the above-mentioned program information carrier is Flat structure, by connecting the selected program information carriers in the order of execution of the program, they are tiled on a flat surface, such as the ground, and the image acquisition device sequentially collects the images of each program information carrier in the process of executing the movement of the main body. Then identify the program information represented by each program information carrier from the image, compile the program information represented by each program information carrier to obtain an executable program, and execute the executable program information when the execution conditions are met.
  • the above-mentioned image acquisition device is installed below the execution body, if the above-mentioned program information carrier is Flat structure, by connecting the selected program information carriers in the order of execution of the program, they are tiled on a flat surface, such as the ground, and the image acquisition device sequentially collects the images of each program information
  • the execution device may include a pan-tilt. If the above-mentioned image acquisition device is installed on the pan-tilt, the execution device drives the image acquisition device to rotate and sequentially collects images of each program information carrier by controlling the uniform rotation of the pan-tilt.
  • the program information represented by each program information carrier is identified in the image, the program information represented by each program information carrier is compiled to obtain an executable program, and the executable program information is executed when the execution conditions are met.
  • the above-mentioned execution device is also used to obtain location information of the program information carrier to be identified, and adjust the shooting direction of the image acquisition device toward the program information carrier according to the location information to collect images of the program information carrier.
  • the execution device can automatically obtain the location information of the program information carrier to be identified, and then adjust the shooting direction of the image capture device to be consistent with the location of the program information carrier according to the location information, and then it can be realized that the image capture device When the shooting direction is inconsistent with the position of the program information carrier to be identified, the user does not need to manually adjust the image collection direction of the image collection device, which improves the efficiency of program execution.
  • At least one of the program information carriers in the combination corresponding to the executable program is provided with a positioning component, and the positioning component is used to send a positioning signal;
  • the execution device is provided with a positioning detection corresponding to the positioning component Component, the execution device is also used to detect the positioning signal through the positioning detection component, and locate at least one program information carrier corresponding to the executable program according to the positioning signal, so as to collect at least one corresponding to the executable program according to the positioning result An image of the program information carrier.
  • the above-mentioned execution device detects the positioning signal through the positioning detection component, and locates the program information carrier or the combination constructed by the program information carrier according to the positioning signal.
  • the goal to be achieved is to enable the execution device to obtain the program information carrier or use the program information carrier.
  • the shooting direction is adjusted according to the position information, and the images of each program information carrier are collected for recognition, so as to improve the efficiency of recognition.
  • the above-mentioned positioning component may be a laser transmitter
  • the above-mentioned positioning detection component may be a laser receiver.
  • the laser transmitter is used for continuous laser emission after meeting preset conditions, and the execution device detects the laser during movement. Signal, after receiving the laser signal, determine the position information of the laser transmitter, and then obtain the position information of the program information carrier to be identified.
  • the above positioning component may be set on the start program information carrier and/or the end program information carrier.
  • the execution device controls the positioning component to start Work and send out positioning signals. And control the execution device to detect the positioning signal to realize the positioning of the information carrier to be identified.
  • the above-mentioned execution device further includes: a pan/tilt provided on the execution body, the pan/tilt is used to support the image acquisition device; the pan/tilt drives the image acquisition device to rotate to adjust the image acquisition device Shooting direction.
  • the execution device is used to adjust the posture of the pan/tilt according to the position information to adjust the shooting direction of the image acquisition device toward the program information carrier.
  • the gimbal includes a pitch motor, a roll motor, and a yaw motor.
  • the execution device controls the pitch, roll, and yaw angles of the gimbal by controlling the output angles of the pitch, roll, and yaw motors of the gimbal.
  • the yaw angle is used to adjust the attitude of the pan/tilt, and then adjust the shooting direction of the image acquisition device.
  • the distance between the image acquisition device and the execution subject is greater than the preset distance
  • the above-mentioned image acquisition device may be independent of the execution subject when performing image acquisition.
  • the user may be allowed to hold the image acquisition device for image acquisition; it has higher flexibility.
  • the image acquisition device and the execution subject may be connected through a wired connection or a wireless connection.
  • the above-mentioned execution device is also used to record multiple executable programs, and recompile multiple executable programs to obtain new executable programs.
  • the foregoing execution device is also used to receive an editing instruction, and after receiving the editing instruction, recompile multiple stored executable programs according to the editing instruction to obtain a new executable program.
  • the user may select different program information carriers multiple times to construct a combination, so that the execution device compiles multiple executable programs, and the execution device obtains multiple executable programs.
  • the program is stored, and after the execution device receives the editing instruction, the multiple executable programs are recompiled.
  • the recompilation includes: the multiple executable programs are generated according to the time sequence of their respective generation or other specified The logic is spliced to obtain a new complete executable program, and then continue to temporarily store the executable program or execute the executable program directly.
  • the unmanned vehicle includes functional components: PTZ and launching mechanism; when the user selects the program information carrier, it can be based on the operations to be performed by different functional components.
  • the execution device compiles the executable programs corresponding to different functional components according to the program information carrier selected by the user, and stores them separately.
  • the execution device obtains the executable programs corresponding to all the functional components, If an editing instruction is received at this time, all executable programs are recompiled to obtain a new complete executable program, and then the new program information is executed when the execution conditions are met.
  • the executable program corresponding to the gimbal is that the gimbal rotates 20 degrees around the yaw axis, and the executable program corresponding to the launching mechanism shoots continuously for 3 seconds at a speed of 3 rounds/sec.
  • the two executable programs can be such
  • the launching mechanism shoots continuously at a speed of 3 rounds per second for 3 seconds, and then the pan/tilt rotates 20 degrees around the yaw axis.
  • the above-mentioned editing instructions may be sent by user terminal devices, such as mobile phones, computers, remote controls and other devices.
  • the user is allowed to divide a complex operation of the execution device, which is conducive to training the user's logical ability; and can meet the requirements of implementing complex executable programs under the condition that the number of program information carriers is limited. Compile.
  • the above-mentioned execution device is further configured to output result information of whether the executable program is successfully executed.
  • the output mode may include: voice output, light signal flashing, etc.
  • the execution device directly outputs the result information of whether the executable program is executed successfully, so that the user can intuitively judge the result of the program execution. And further judge whether the program information carrier selected by the user is correct and whether the build sequence of each program information carrier is correct.
  • the foregoing execution device includes one or more detachably connected functional components
  • the functional component is used to execute the executable program when the execution condition is met.
  • the unmanned vehicle includes functional components: a chassis, a pan-tilt, an image acquisition device, and a launch mechanism.
  • the chassis functional component when the execution device recognizes from the collected images that the program information identified by the program information carrier indicates the steering of the chassis, the chassis functional component will perform the corresponding steering operation when the execution conditions are met; when the execution When the device recognizes from the collected image that the program information identified by the program information carrier indicates the direction of the pan/tilt, the functional component of the pan/tilt will perform the corresponding turning operation when the execution conditions are met.
  • the user can also select functional components according to the object of the execution program and the content of the execution program, and use the functional components to construct the execution device, so as to exercise the user's hands-on ability.
  • the foregoing execution device includes: a movable platform.
  • Fig. 5 is a schematic flowchart of a programming method provided by an embodiment of the present invention. Referring to FIG. 5, the method is applied to the execution device described in the foregoing embodiment, and the method includes the following steps S51-S52:
  • S51 Collect an image of at least one program information carrier, and identify at least one program information identified by the program information carrier from the collected image.
  • the program information includes, but is not limited to: information instructing the execution of the device action (such as information instructing the execution of the device to move), instructing the execution of the device to produce photoelectric effects, instructing the execution of the device to emit sound signals, and instructing the execution of the device to enter certain functional modes Information etc.
  • the information instructing the execution device to move includes but is not limited to: instructing the execution device to move in one direction and go straight for a specified distance, the specified distance may be a user-defined distance or a preset distance; the person instructing the execution device to turn left or right Information etc.
  • the identification method of the program information may include, but is not limited to, text, numbers, letters, symbols, images, and the shape of the program information carrier 10, etc.
  • the image includes, but is not limited to, QR codes, barcodes, and the like.
  • the executable program is obtained by compiling according to the recognized program information, so as to execute the executable program when the execution condition is met.
  • the user can select one or more corresponding program information carriers according to his own programming logic and the operation expected to be executed by the device to construct a set of executable programs corresponding to the execution operation.
  • one program information The carrier may correspond to one or more operations that the execution device can perform.
  • the above-mentioned method for the execution device to collect images of program information carriers can be to collect images of each program information carrier in sequence; it can also directly collect all program information Then, the program information identified by each program information carrier is identified. At this time, the multiple program information carriers can be concentrated in one area, so that the execution device can collect the images including the multiple program information carriers at one time. In this way, after obtaining the program information identified by each program information carrier, the program information can be compiled according to the arrangement order of the program information to obtain an executable program, and the executable program can be executed when the execution conditions are met.
  • the user can construct multiple sets of executable programs corresponding to the operations to be executed by the execution device through various combinations of the program information carriers of the physical nature, and the execution device executes the executable program.
  • the user can intuitively determine the operation content corresponding to the executable program based on one or more operations corresponding to the program information carrier, so that the user can program without computers, mobile phones and other electronic devices, and does not need to know English Words, not to mention the need to learn programming languages, can realize the exercise of programming logical thinking in the process of training hands-on ability, which has the positive effect of simple, easy to learn and intuitive.
  • the foregoing fulfillment of the execution condition includes: receiving a trigger signal to start execution sent by a user terminal, the user terminal is in communication with the execution device, and may be used to control the execution device, which may be a mobile phone used by the user , Tablet PCs and other terminal devices, or remote control devices.
  • the foregoing fulfillment of the execution condition includes: receiving a user's input operation on the execution device, the input operation is used to instruct the execution device to execute the foregoing executable program, for example, it may be detected that the user opens a certain function button on the execution device Then, such as the start key, and then confirm that the execution conditions are met. It should be noted that the above are only examples, and the present invention does not limit this. .
  • the program information is marked on the surface of the program information carrier.
  • the method of identifying program information on the surface of the program information carrier may include: printing the program information on the surface of the program information carrier, and the identification form of the program information may be text information or designated symbol information, or It is digital information, or letter information, or image information.
  • the user can intuitively see the program information represented by each program information carrier, so that the user can select different program information carriers to construct a corresponding program information carrier combination according to the program content to be executed by the execution device.
  • the foregoing program information includes: user-defined information.
  • the customized information may include the speed of the pan-tilt, the distance of forwarding, the angle of deflection, and the distance of retreating according to different execution devices.
  • the user can set the user-defined information in the user-defined information area by filling in, bonding, etc.
  • a first identifier is set on the program information carrier
  • the first identifier is used to be detected by the execution device to identify the program information carrier, and after identifying the program information carrier, identify the program information identified by the program information carrier.
  • the first identification may be: a two-dimensional code, a barcode, and so on.
  • the first identifier is set on the program information carrier, in order to allow the execution device to identify the program information carrier, and then after identifying the program information carrier, identify the program information identified by the program information carrier; so, It can prevent the execution device from being interfered by objects other than the program information carrier during the process of identifying the program information identified by the program information carrier.
  • a second identifier is provided on the program information carrier, and the second identifier is used to record program information identified by the program information carrier;
  • the execution device reads the second identifier in the image to obtain the program information recorded by the second identifier.
  • the second identification may be: a graphic code label, such as a two-dimensional code, a barcode, and the like.
  • the above-mentioned program information carriers can be detachably connected to obtain executable programs with different contents.
  • sequence of the operations indicated in the executable program is related to the sequence of connection between the program information carriers.
  • the user can sequentially combine or splice corresponding different program information carriers according to the order of the various operations to be performed by the execution device.
  • the above program information carrier includes: a three-dimensional block with a specific shape.
  • the three-dimensional block can be a building block, and the user can stack or splice the three-dimensional blocks of different shapes to characterize the content of the operation to be performed by the execution device, so that the execution device can recognize by collecting images of the stacked or spliced stereo blocks
  • the program information represented by different three-dimensional blocks is then compiled according to the program information represented by each three-dimensional block to obtain the program to be executed.
  • the three-dimensional block may be a simulated three-dimensional block that executes functional components included in the device. Furthermore, the user can construct each selected simulation three-dimensional block according to the functional components contained in the execution device more intuitively and vividly to obtain a combination corresponding to the execution device
  • the above-mentioned execution device includes: an execution body and an image acquisition device.
  • the image acquisition device is detachably installed at a designated position on the execution device body; in this embodiment, the execution device collects at least one program information carrier through the image acquisition device Image.
  • Fig. 6 is a schematic flowchart of another programming method provided by an embodiment of the present invention. Referring to FIG. 6, before the image of at least one program information carrier is collected, the method further includes the following step S50:
  • the execution device can automatically obtain the location information of the program information carrier to be identified, and then adjust the shooting direction of the image capture device to be consistent with the location of the program information carrier according to the location information, and then it can be realized that the image capture device When the shooting direction is inconsistent with the position of the program information carrier to be identified, the user does not need to manually adjust the image collection direction of the image collection device, which improves the efficiency of program execution.
  • At least one of the program information carriers in the combination corresponding to the executable program is provided with a positioning component, and the positioning component is used to send a positioning signal;
  • the execution device is provided with a positioning detection corresponding to the positioning component Component, the execution device is also used to detect the positioning signal through the positioning detection component, and locate at least one program information carrier corresponding to the executable program according to the positioning signal, so as to collect at least one corresponding to the executable program according to the positioning result An image of the program information carrier.
  • the above-mentioned execution device detects the positioning signal through the positioning detection component, and locates the program information carrier or the combination constructed by the program information carrier according to the positioning signal.
  • the goal to be achieved is to enable the execution device to obtain the program information carrier or use the program information carrier.
  • the shooting direction is adjusted according to the position information, and the image of each program information carrier is collected to improve the efficiency of recognition.
  • the above-mentioned positioning component may be a laser transmitter
  • the above-mentioned positioning detection component may be a laser receiver.
  • the laser transmitter is used for continuous laser emission after meeting preset conditions, and the execution device detects the laser during movement. Signal, after receiving the laser signal, determine the position information of the laser transmitter, and then obtain the position information of the program information carrier to be identified.
  • the above positioning component may be set on the start program information carrier and/or the end program information carrier.
  • the execution device controls the positioning component to start Work and send out positioning signals. And control the execution device to detect the positioning signal to realize the positioning of the information carrier to be identified.
  • the aforementioned image acquisition device further includes: a pan/tilt provided on the execution subject, the pan/tilt is used to support the image acquisition device; in this method, the execution device adjusts the pan/tilt according to the position information Posture to adjust the shooting direction of the image acquisition device toward the program information carrier.
  • the distance between the image capture device and the main body of the execution device is greater than a preset distance.
  • the method further includes the following step A10:
  • Step A10 Record a plurality of the executable programs, and recompile the recorded plurality of executable programs to obtain a new executable program.
  • the foregoing execution device is also used to receive an editing instruction, and after receiving the editing instruction, recompile multiple stored executable programs according to the editing instruction to obtain a new executable program.
  • the user may select different program information carriers multiple times to construct a combination, so that the execution device compiles multiple executable programs, and the execution device obtains multiple executable programs.
  • the program is stored, and after the execution device receives the editing instruction, the multiple executable programs are recompiled.
  • the recompilation includes: the multiple executable programs are generated according to the time sequence of their respective generation or other specified The logic is spliced to obtain a new complete executable program, and then continue to temporarily store the executable program or execute the executable program directly.
  • the unmanned vehicle includes functional components: PTZ and launching mechanism; when the user selects the program information carrier, it can be based on the different functional components to be executed The operation of selecting the corresponding program information carrier respectively, the execution device compiles the executable programs corresponding to different functional components according to the program information carrier selected by the user, and stores them separately, and obtains the executable programs corresponding to all the functional components in the execution device After the program is executed, if an editing instruction is received at this time, all the executable programs are recompiled to obtain a new complete executable program, and then the new program information is executed after the execution conditions are met.
  • PTZ and launching mechanism
  • the executable program corresponding to the gimbal is that the gimbal rotates 20 degrees around the yaw axis, and the executable program corresponding to the launching mechanism shoots continuously for 3 seconds at a speed of 3 rounds/sec.
  • the two executable programs can be such
  • the launching mechanism shoots continuously at a speed of 3 rounds per second for 3 seconds, and then the pan/tilt rotates 20 degrees around the yaw axis.
  • the above-mentioned editing instructions may be sent by user terminal devices, such as mobile phones, computers, remote controls and other devices.
  • the user is allowed to divide a complex operation of the execution device, which is conducive to training the user's logical ability; and can meet the requirements of implementing complex executable programs under the condition that the number of program information carriers is limited. Compile.
  • the above method further includes: outputting result information about whether the executable program is successfully executed.
  • the output mode may include: voice output, light signal flashing, etc.
  • the execution device directly outputs the result information of whether the executable program is successfully executed, so that the user can intuitively judge the result of the program execution. And further judge whether the program information carrier selected by the user is correct and whether the build sequence of each program information carrier is correct.
  • the foregoing execution device includes one or more detachably connected functional components
  • the functional component is used to execute the executable program when the execution condition is satisfied.
  • the unmanned vehicle includes functional components: a chassis, a pan-tilt, an image acquisition device, and a launch mechanism.
  • the chassis functional component when the execution device recognizes from the collected images that the program information identified by the program information carrier indicates the steering of the chassis, the chassis functional component will perform the corresponding steering operation when the execution conditions are met; when the execution When the device recognizes from the collected image that the program information identified by the program information carrier indicates the direction of the pan/tilt, the functional component of the pan/tilt will perform the corresponding turning operation when the execution conditions are met.
  • the above step: collecting an image of at least one program information carrier specifically includes:
  • the execution device is controlled to move, and an image of at least one program information carrier is collected during the movement.
  • the execution device can be controlled to move to collect the image of the program information carrier during the movement, which not only exercises the user's movement control of the execution device, but also does not require the user to use a handheld image acquisition device to collect images. Has the advantage of higher efficiency.
  • Fig. 7 is a schematic structural diagram of a program execution device provided by an embodiment of the present invention.
  • the program execution device includes at least a memory 702 and a processor 701; the memory 702 is connected to the processor 701 through a communication bus 703, and is used to store computer instructions executable by the processor 701;
  • the processor 701 is configured to read computer instructions from the memory 702 to implement:
  • the executable program is compiled according to the recognized program information, so as to execute the executable program when the execution condition is met.
  • the program information is marked on the surface of the program information carrier.
  • the foregoing program information includes: user-defined information.
  • a first identifier is set on the program information carrier
  • the first identifier is used to be detected by the execution device to identify the program information carrier, and after identifying the program information carrier, identify the program information identified by the program information carrier.
  • a second identifier is provided on the program information carrier, and the second identifier is used to record the program information identified by the program information carrier;
  • the processor 701 is further configured to read computer instructions from the memory 702 to implement:
  • the second mark in the image is read to obtain the program information recorded by the second mark.
  • the above-mentioned program information carriers can be detachably connected to obtain executable programs with different contents.
  • sequence of the operations indicated in the executable program is related to the sequence of connection between the program information carriers.
  • the above program information carrier includes: a three-dimensional block with a specific shape.
  • the above-mentioned program information carrier includes: a simulated three-dimensional block of a functional component included in the execution device.
  • the program execution device described above includes: an execution body and an image acquisition device, the image acquisition device being detachably installed at a designated position on the program execution device body;
  • the processor 701 is further configured to read computer instructions from the memory 702 to implement:
  • the image of at least one program information carrier is acquired by the image acquisition device.
  • processor 701 is further configured to read computer instructions from the memory 702 to implement:
  • the position information of the program information carrier is acquired, and the shooting direction of the image acquisition device is adjusted to the program information carrier according to the position information.
  • the image capture device further includes: a pan/tilt provided on the execution subject, the pan/tilt used to support the image capture device;
  • the processor 701 is further configured to read computer instructions from the memory 702 to implement:
  • the distance between the image capture device and the main body of the program execution device is greater than a preset distance.
  • the program information carrier includes: a start program information carrier and an end program information carrier;
  • the start program information carrier is used to identify program information for the start of the executable program
  • the end program information carrier is used to identify the end of the executable program program information. .
  • At least one of the program information carriers corresponding to the executable program is provided with a positioning component, and the positioning component is used to send a positioning signal;
  • the program execution device is provided with a positioning detection component corresponding to the positioning component, and the processor 701 is further configured to read computer instructions from the memory 702 to realize:
  • processor 701 is further configured to read computer instructions from the memory 702 to implement:
  • processor 701 is further configured to read computer instructions from the memory 702 to implement:
  • the recompiling of the plurality of recorded executable programs to obtain a new executable program includes:
  • the multiple executable programs are recompiled according to the editing instructions to obtain new executable programs.
  • processor 701 is further configured to read computer instructions from the memory 702 to implement:
  • the execution device includes one or more detachably connected functional components
  • the functional component is used to execute the executable program when the execution condition is satisfied.
  • the program execution device includes: a movable platform.
  • processor 701 is further configured to read computer instructions from the memory 702 to implement:
  • the execution device is controlled to move, and an image of at least one program information carrier is collected during the movement.
  • the relevant part can refer to the part of the description of the method embodiment.
  • the device embodiments described above are merely illustrative.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units.
  • Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement it without creative work.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

A programming system and method and a device. The system comprises: a plurality of program information carriers (10) for marking program information; and an execution device (200) configured to: acquire an image of at least one of the plurality of program information carriers (10), and identify, from the acquired image, program information marked in the at least one of the plurality of program information carriers (10) (S51); and compile to obtain an executable program according to the identified program information, and execute the executable program when an execution condition is met (S52). The invention enables simple and intuitive programming operations.

Description

一种编程系统、方法及程序执行设备Programming system, method and program execution equipment 技术领域Technical field
本申请涉及程序设计技术领域,具体而言,涉及一种编程系统、方法及程序执行设备。This application relates to the technical field of programming, and specifically to a programming system, method and program execution device.
背景技术Background technique
目前,针对少儿、青少年编程,主流的编程工具为scrath图形编程工具,其具有以下特点:在软件界面中将构成程序的命令和参数通过积木形状的模块来实现,使用者可以通过拖动不同形状的模块,将不同形状的模块进行组合就可以得到一个完整的程序,进而实现编程操作。但是,该方式仍然存在有以下缺陷:需要依赖手机或者电脑等程序执行设备使用,会给青少年、儿童的视力等带来一定影响;需要使用者具备一定的程序执行设备操作基础;编程方式不够直观等。At present, for children and teenagers programming, the mainstream programming tool is scrath graphical programming tool, which has the following characteristics: in the software interface, the commands and parameters that constitute the program are realized by blocks in the shape of building blocks, and users can drag different shapes The modules of different shapes can be combined to get a complete program, and then the programming operation can be realized. However, this method still has the following shortcomings: it needs to rely on the use of program execution equipment such as mobile phones or computers, which will affect the eyesight of teenagers and children, etc.; it requires users to have a certain basic program execution equipment operation; the programming method is not intuitive enough Wait.
发明内容Summary of the invention
有鉴于此,本发明的目的之一是提供一种实体化编程方法及装置,以至少达到简单、直观等的目的。In view of this, one of the objectives of the present invention is to provide a materialized programming method and device to at least achieve the purpose of simplicity, intuitiveness, etc.
第一方面,本发明实施例提供了一种编程系统,包括:In the first aspect, an embodiment of the present invention provides a programming system, including:
若干程序信息载体,用于标识程序信息;Several program information carriers, used to identify program information;
执行设备,用于采集至少一个所述程序信息载体的图像,并从采集的图像中识别出至少一个所述程序信息载体所标识的程序信息;根据识别到的程序信息编译得到可执行程序,以在满足执行条件的情况下执行所述可执行程序。The execution device is used for collecting at least one image of the program information carrier, and identifying at least one program information identified by the program information carrier from the collected image; compiling the executable program according to the recognized program information, and The executable program is executed when the execution conditions are met.
第二方面,本发明实施例提供了一种编程方法,所述方法应用于程序的执行设备,包括:In the second aspect, an embodiment of the present invention provides a programming method, which is applied to a program execution device, and includes:
采集至少一个程序信息载体的图像,并从采集的图像中识别出至少一个所述程序信息载体所标识的程序信息;Collecting images of at least one program information carrier, and identifying at least one program information identified by the program information carrier from the collected images;
根据识别到的程序信息编译得到可执行程序,以在满足执行条件的情况下执行所述可执行程序。The executable program is compiled according to the recognized program information, so as to execute the executable program when the execution condition is met.
第三方面,本发明实施例提供了一种程序执行设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现:In a third aspect, an embodiment of the present invention provides a program execution device, including: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and when the processor executes the computer program:
采集至少一个程序信息载体的图像,并从采集的图像中识别出至少一个所述程序信息载体所标识的程序信息;Collecting images of at least one program information carrier, and identifying at least one program information identified by the program information carrier from the collected images;
根据识别到的程序信息编译得到可执行程序,以在满足执行条件的情况下执行所述可执行程序。The executable program is compiled according to the recognized program information, so as to execute the executable program when the execution condition is met.
本发明实施例所提供的一种编程系统、方法及程序执行设备,通过设置程序信息载体来标识程序信息,能够使用户通过手动操作程序信息载体构建对应的程序信息,并且由执行设备采集该程序信息的载体识别得到程序信息,根据该程序信息编译得到可执行程序,由该执行设备在满足执行条件的情况下执行该可执行程序信息;相对于现有技术,与在计算机设备的软件界面中进行操作的方式相比,本发明实施例具有更简单和更直观地积极效果。The programming system, method, and program execution device provided by the embodiments of the present invention identify program information by setting a program information carrier, enabling users to manually operate the program information carrier to construct corresponding program information, and the execution device collects the program The information carrier is identified to obtain the program information, and the executable program is compiled according to the program information, and the executable program information is executed by the execution device under the condition that the execution conditions are met; compared with the prior art, the software interface of the computer device Compared with the way of operation, the embodiment of the present invention has a simpler and more intuitive positive effect.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1是本发明一个实施例提供的一种编程系统的示意图;FIG. 1 is a schematic diagram of a programming system provided by an embodiment of the present invention;
图2是本一个发明实施例提供的一种程序信息载体的结构示意图;Figure 2 is a schematic structural diagram of a program information carrier provided by an embodiment of the present invention;
图3是本发明一个实施例提供的一种组合体的结构示意图;FIG. 3 is a schematic structural diagram of an assembly provided by an embodiment of the present invention;
图4是本发明一个实施例提供的一种执行设备的结构示意图;Figure 4 is a schematic structural diagram of an execution device provided by an embodiment of the present invention;
图5是本发明一个实施例提供的一种编程方法的流程示意图;FIG. 5 is a schematic flowchart of a programming method provided by an embodiment of the present invention;
图6是本发明一个实施例提供的另一种编程方法的流程示意图;FIG. 6 is a schematic flowchart of another programming method provided by an embodiment of the present invention;
图7是本发明一个实施例提供的一种程序执行设备的结构示意图。Fig. 7 is a schematic structural diagram of a program execution device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. 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.
考虑到现有技术中,使用者在使用图形编程工具进行编程时,存在着需要依赖手机或者电脑等程序执行设备使用,会给使用者的视力等带来一定不良影响;需要使用者具备一定的程序执行设备操作基础;编程方式不够直观等问题;基于此本发明提供了一种编程系统、方法及程序执行设备。Considering that in the prior art, when a user uses a graphical programming tool for programming, there is a need to rely on program execution equipment such as a mobile phone or computer to use it, which will bring a certain adverse effect to the user’s vision, etc.; the user is required to have certain The operating basis of the program execution device; the programming mode is not intuitive enough; based on this, the present invention provides a programming system, method and program execution device.
本发明实施例中的程序执行设备可以是具有图像采集功能的任何电子设备。具体的,程序执行设备可以为移动平台,为了增加编程过程中的乐趣性,移动平台可以为无人机、无人车、无人船、移动机器人等可被遥控且具有移动功能的设备。为了便于说明,本发明实施例以程序执行设备为无人车为例。The program execution device in the embodiment of the present invention may be any electronic device with an image acquisition function. Specifically, the program execution device may be a mobile platform. In order to increase the fun in the programming process, the mobile platform may be a remote control device with mobile functions such as drones, unmanned vehicles, unmanned ships, and mobile robots. For ease of description, the embodiment of the present invention takes an unmanned vehicle as the program execution device as an example.
图1是本发明一个实施例提供的一种编程系统的示意图。参照图1所示,本发明实施例中提供的一种编程系统,包括:Fig. 1 is a schematic diagram of a programming system provided by an embodiment of the present invention. Referring to FIG. 1, a programming system provided in an embodiment of the present invention includes:
若干程序信息载体10,用于标识程序信息。Several program information carriers 10 are used to identify program information.
该程序信息包括但不限于:指示执行设备动作的信息(比如指示执行 设备移动的信息)、指示执行设备产生光电效果的信息、指示执行设备发出声音信号的信息、指示执行设备进入某些功能模式的信息等。示例性的,该指示执行设备移动的信息包括但不限于:指示执行设备沿一方向移动指定距离,该指定距离可以为用户自定义距离或预设距离;指示执行设备左转或右转的信息等。The program information includes, but is not limited to: information instructing the execution of the device action (such as information instructing the execution of the device to move), instructing the execution of the device to produce photoelectric effects, instructing the execution of the device to emit sound signals, instructing the execution of the device to enter certain functional modes Information etc. Exemplarily, the information instructing the execution device to move includes but is not limited to: instructing the execution device to move a specified distance in a direction, the specified distance may be a user-defined distance or a preset distance; information instructing the execution device to turn left or right Wait.
其中,程序信息的标识方式可以包括但不限于文字、数字、字母、符号、图像以及程序信息载体10的形状等等,图像包括但不限于诸如二维码、条形码等。Wherein, the identification method of the program information may include, but is not limited to, text, numbers, letters, symbols, images, and the shape of the program information carrier 10, etc. The image includes, but is not limited to, two-dimensional codes, barcodes, and the like.
执行设备200,用于采集至少一个程序信息载体的图像,并从采集的图像中识别出至少一个程序信息载体所标识的程序信息;根据识别到的程序信息编译得到可执行程序,以在满足执行条件的情况下执行所述可执行程序。The execution device 200 is used for collecting images of at least one program information carrier, and identifying program information identified by the at least one program information carrier from the collected images; compiling the executable program according to the recognized program information, so as to execute Execute the executable program under conditions.
本实施例中,用户可以根据自己的编程逻辑,以及期望执行设备将要执行的操作,选择一个或多个对应的程序信息载体,以构建一套执行操作对应的可执行程序,其中,一个程序信息载体可以对应执行设备能够执行的一个或多个操作。当选择程序信息载体的数量为多个时,可选的,上述的执行设备采集程序信息载体的图像的方式可以是按照顺序依次进行采集各个程序信息载体的图像;也可以是直接采集所有程序信息载体的图像,然后识别各程序信息载体标识的程序信息,此时,这多个程序信息载体可以集中在一个区域内,以使得执行设备可以一次性采集包括这多个程序信息载体的图像。如此,在得到各个程序信息载体标识的程序信息后,可以根据各程序信息的排布顺序,将各程序信息进行编译得到可执行程序,并在满足执行条件的情况下,执行该可执行程序。In this embodiment, the user can select one or more corresponding program information carriers according to his own programming logic and the operation expected to be executed by the device to construct a set of executable programs corresponding to the execution operation. Among them, one program information The carrier may correspond to one or more operations that the execution device can perform. When the number of selected program information carriers is more than one, optionally, the above-mentioned method for the execution device to collect images of program information carriers can be to collect images of each program information carrier in sequence; it can also directly collect all program information Then, the program information identified by each program information carrier is identified. At this time, the multiple program information carriers can be concentrated in one area, so that the execution device can collect the images including the multiple program information carriers at one time. In this way, after obtaining the program information identified by each program information carrier, the program information can be compiled according to the arrangement order of the program information to obtain an executable program, and the executable program can be executed when the execution conditions are met.
在某些实施例中,若执行设备在识别可执行程序对应的程序信息载体所标识的程序信息的过程中,若遇到无法识别的情况,或多个程序信息载体所标识的程序信息在逻辑上无法编译成一可执行程序时,执行设备可以进行报错或提示,也可以忽略无法识别的程序信息载体或导致编译逻辑相 冲突的至少一个程序信息载体。In some embodiments, if the execution device is in the process of identifying the program information identified by the program information carrier corresponding to the executable program, if it encounters an unrecognized situation, or the program information identified by multiple program information carriers is in the logic When the program cannot be compiled into an executable program, the execution device may report an error or prompt, or ignore the unrecognized program information carrier or at least one program information carrier that causes the compilation logic to conflict.
如此,本发明实施例中,用户通过实体性质的程序信息载体的各个组合,可以构建多套套执行设备的待执行操作所对应的可执行程序,并且由执行设备执行该可执行程序。在构建的过程中,用户根据程序信息载体所对应的一个或多个操作,可以直观地确定可执行程序对应的操作内容,使得用户可以脱离电脑、手机等电子设备进行编程,也不需要认识英文单词,更不需要学习编程语言,即可在锻炼动手能力的过程中实现编程逻辑思维的锻炼,具有简单易学、直观的积极效果。In this way, in the embodiment of the present invention, the user can construct multiple sets of executable programs corresponding to the operations to be executed by the execution device through various combinations of the program information carriers of the physical nature, and the execution device executes the executable program. During the construction process, the user can intuitively determine the operation content corresponding to the executable program based on one or more operations corresponding to the program information carrier, so that the user can program without computers, mobile phones and other electronic devices, and does not need to know English Words, not to mention the need to learn programming languages, can realize the exercise of programming logical thinking in the process of training hands-on ability, which has the positive effect of simple, easy to learn and intuitive.
本发明一实施例中,上述满足执行条件,包括:接收到用户终端发送的开始执行的触发信号,该用户终端与执行设备通信连接,可以用于控制执行设备,其可以是用户所使用的手机、平板电脑等终端设备,也可以是遥控器等设备。或者,上述满足执行条件,包括:接收到用户针对执行设备的输入操作,该输入操作用于指示执行设备执行上述可执行程序,例如,可以是在检测到用户打开执行设备上的某一功能按钮后,比如开始键,然后确定满足执行条件。需要说明的是,上述仅为举例说明,本发明对此不作限定。In an embodiment of the present invention, the foregoing fulfillment of the execution condition includes: receiving a trigger signal to start execution sent by a user terminal, the user terminal is in communication with the execution device, and may be used to control the execution device, which may be a mobile phone used by the user , Tablet PCs and other terminal devices, or remote control devices. Alternatively, the foregoing fulfillment of the execution condition includes: receiving a user's input operation on the execution device, the input operation is used to instruct the execution device to execute the foregoing executable program, for example, it may be detected that the user opens a certain function button on the execution device Then, such as the start key, and then confirm that the execution conditions are met. It should be noted that the above are only examples, and the present invention does not limit this.
参照图1所示的实施例,本实施例中,用户根据执行设备200将要执行的程序内容,选择对应的程序信息载体10,并使用选择的程序信息载体10构建与可执行程序对应的组合体,并且在组合体构建完成以后,触发执行设备200采集组合体中的各程序信息载体10的图像,从采集的图像中识别出程序信息载体10所标识的程序信息;根据识别到的程序信息编译得到可执行程序,在满足执行条件的情况下执行该可执行程序。Referring to the embodiment shown in FIG. 1, in this embodiment, the user selects the corresponding program information carrier 10 according to the program content to be executed by the execution device 200, and uses the selected program information carrier 10 to construct a combination corresponding to the executable program , And after the assembly is completed, the execution device 200 is triggered to collect images of each program information carrier 10 in the assembly, and the program information identified by the program information carrier 10 is identified from the collected images; compiling according to the identified program information Obtain an executable program, and execute the executable program when the execution conditions are met.
本发明一实施例中,上述程序信息载体的表面标识有所述程序信息。具体的,在程序信息载体的表面标识程序信息的方式,可以是包括:将程序信息印刷在程序信息载体的表面,该程序信息的标识形式可以是文字信息或者是指定的符号信息、或者是数字信息、或者是字母信息,或者是图像信息等。In an embodiment of the present invention, the program information is marked on the surface of the program information carrier. Specifically, the method of identifying program information on the surface of the program information carrier may include: printing the program information on the surface of the program information carrier, and the identification form of the program information may be text information, designated symbol information, or digital Information, or letter information, or image information, etc.
进而本实施例中,用户可以直观地看到每个程序信息载体所表征的程序信息,便于用户根据执行设备将要执行的程序内容,选择不同的程序信息载体构建对应的程序信息载体的组合体。Furthermore, in this embodiment, the user can intuitively see the program information represented by each program information carrier, so that the user can select different program information carriers to construct a corresponding program information carrier combination according to the program content to be executed by the execution device.
本发明一实施例中,上述的程序信息包括:用户自定义信息。In an embodiment of the present invention, the above-mentioned program information includes: user-defined information.
图2是本一个发明实施例提供的一种程序信息载体的结构示意图。参照图2所示,本实施例中,当程序信息是通过印刷的方式设置于程序信息载体10的表面时,该程序信息载体10的表面设置有用户自定义信息区域101。Fig. 2 is a schematic structural diagram of a program information carrier provided by an embodiment of the present invention. Referring to FIG. 2, in this embodiment, when the program information is set on the surface of the program information carrier 10 by printing, the surface of the program information carrier 10 is provided with a user-defined information area 101.
具体的,本实施例中用户可以在该用户自定义信息区域101进行写入用户的自定义信息。示例性的,如图2所示,执行设备包括云台,该用户自定义信息可以是云台速度的大小。其中,该云台速度可以是指云台中每一个旋转轴的速度,也可以是指某一个旋转轴的速度,具体可以根据需要设计。进一步的,还可以对云台的转动角度的大小进行自定义。当然,在一个自定义信息区域101内可以写入针对执行设备的一功能部件的多个维度的指示信息,例如,如图2所示,自定义信息区域101内可以写入用于指示云台先加速运动、后减速运动的速度信息。Specifically, in this embodiment, the user can write user-defined information in the user-defined information area 101. Exemplarily, as shown in FIG. 2, the execution device includes a pan-tilt, and the user-defined information may be the speed of the pan-tilt. Wherein, the speed of the pan/tilt may refer to the speed of each rotation axis in the pan/tilt, or the speed of a certain rotation axis, which can be specifically designed as required. Further, the size of the rotation angle of the pan-tilt can also be customized. Of course, in a custom information area 101 can be written instructions for multiple dimensions of a functional component of the execution device. For example, as shown in Figure 2, the custom information area 101 can be written to indicate the pan/tilt. Speed information of acceleration movement first and deceleration movement second.
可以理解,执行设备可以包括多个功能部件,针对不同功能部件,可以有指示不同功能部件执行相应操作的程序信息载体以及对应的自定义信息区域101。例如,假设执行设备包括用于驱动执行设备移动的驱动件,程序信息载体可以包括指示驱动件执行前进的程序信息载体,在该程序信息载体的自定义区域101内可以写入诸如前进距离。It can be understood that the execution device may include multiple functional components, and for different functional components, there may be a program information carrier that instructs different functional components to perform corresponding operations and a corresponding custom information area 101. For example, assuming that the execution device includes a driver for driving the execution device to move, the program information carrier may include a program information carrier that instructs the driver to execute forward, and the custom area 101 of the program information carrier can write, for example, the advance distance.
可选的,对于自定义信息,通过预先设置一些信息参数供用户选择,该信息参数比如可以是角度,比如5度、10度、15度、30度,也可以是距离参数,比如2米、3米、1米、50厘米、20厘米等,用户选择信息参数以后将该参数写入自定义信息区域101。Optionally, for custom information, some information parameters are preset for users to choose. The information parameters can be angles, such as 5 degrees, 10 degrees, 15 degrees, and 30 degrees, or distance parameters, such as 2 meters, 3 meters, 1 meter, 50 cm, 20 cm, etc., after the user selects an information parameter, the parameter is written into the custom information area 101.
可选的,自定义信息区域101可以是可涂抹的填写区域,也可以是可粘接的区域,还可以是可填充的凹槽区域,以实现程序信息载体的灵活应 用。Optionally, the custom information area 101 may be a smearable filling area, a glueable area, or a fillable groove area to realize the flexible application of the program information carrier.
本发明另一实施例中,上述程序信息载体10上设置有第一标识;该第一标识可以是:二维码、条形码等。In another embodiment of the present invention, a first identification is provided on the program information carrier 10; the first identification may be: a two-dimensional code, a barcode, or the like.
上述的第一标识用于被执行设备检测以识别程序信息载体,并在识别所述程序信息载体后进一步识别程序信息载体所标识的程序信息。The above-mentioned first identifier is used to be detected by the execution device to identify the program information carrier, and to further identify the program information identified by the program information carrier after identifying the program information carrier.
本发明实施例中,在程序信息载体上设置第一标识,目的是让执行设备识别该程序信息载体,然后在识别该程序信息载体以后再进行识别该程序信息载体所标识的程序信息;如此,可以防止执行设备在识别程序信息载体所标识的程序信息的过程中,受到除程序信息载体以外的其他物体的干扰。In the embodiment of the present invention, the first identifier is set on the program information carrier, in order to allow the execution device to identify the program information carrier, and then after identifying the program information carrier, identify the program information identified by the program information carrier; so, It can prevent the execution device from being interfered by objects other than the program information carrier during the process of identifying the program information identified by the program information carrier.
本发明又一实施例中,上述程序信息载体上设置有第二标识,该第二标识用于记录所述程序信息载体所标识的程序信息;示例性的,该第二标识可以是:图形码标签,比如二维码、条形码等。In another embodiment of the present invention, a second identifier is set on the program information carrier, and the second identifier is used to record the program information identified by the program information carrier; for example, the second identifier may be: a graphic code Labels, such as QR codes, barcodes, etc.
当上述的第二标识为图形码标签时,执行设备还用于读取图像中的图形码标签,得到所述图形码标签记录的程序信息。When the above-mentioned second identifier is a graphic code label, the execution device is also used to read the graphic code label in the image to obtain the program information recorded by the graphic code label.
本实施例中,用户可以根据程序信息载体的形状或者程序信息载体表面的标识区分不同的程序信息载体,然后选择不同的程序信息载体构建组合体,该组合体与执行设备将要执行的程序内容对应;例如,当用户想要执行设备执行的程序内容为“直行5米”时,用户所要选择的程序信息载体包括:开始程序信息载体、动作执行程序信息载体和结束程序信息载体;其中,该动作执行程序信息载体表征了“直行5米”这一动作信息。In this embodiment, the user can distinguish different program information carriers according to the shape of the program information carrier or the identification on the surface of the program information carrier, and then select different program information carriers to construct a combination that corresponds to the program content to be executed by the execution device For example, when the content of the program that the user wants to execute on the device is "5 meters straight", the program information carrier that the user needs to select includes: start program information carrier, action execution program information carrier, and end program information carrier; where the action The execution program information carrier represents the action information of "go straight for 5 meters".
图3是本发明一个实施例提供的一种组合体的结构示意图。参照图3所示,该组合体是由用户选择的程序信息载体按照一定的顺序构建而成的,各程序信息载体之间可拆卸地连接。Fig. 3 is a schematic structural diagram of an assembly provided by an embodiment of the present invention. Referring to FIG. 3, the combination is constructed by the program information carriers selected by the user in a certain order, and the program information carriers are detachably connected.
具体的,各个组合体中包含的程序信息载体包括:开始程序信息载体和结束程序信息载体。其中,开始程序信息载体用于标识可执行程序开始的程序信息;结束程序信息载体用于标识所述可执行程序结束的程序信息。Specifically, the program information carriers included in each combination include: a start program information carrier and an end program information carrier. Wherein, the start program information carrier is used to identify the program information at the beginning of the executable program; the end program information carrier is used to identify the program information at the end of the executable program.
以图3所示的实施例为例,该实施例中的执行设备为无人车,无人车包括底盘以及设于底盘上的云台。该组合体所包含的程序信息载体依次为:开始程序信息载体301、底盘模式程序信息载体302、底盘角度程序信息载体303、底盘转向程序信息载体304、直行程序信息载体305、云台模式程序信息306、云台速度程序信息载体307、云台转向程序信息载体308和结束程序信息载体309。其中,部分信息载体上的空白格区域(虚线框示意)为用户自定义信息区域。Taking the embodiment shown in FIG. 3 as an example, the execution device in this embodiment is an unmanned vehicle, and the unmanned vehicle includes a chassis and a pan/tilt provided on the chassis. The program information carriers included in the combination are: start program information carrier 301, chassis mode program information carrier 302, chassis angle program information carrier 303, chassis steering program information carrier 304, straight program information carrier 305, pan-tilt mode program information 306. PTZ speed program information carrier 307, PTZ steering program information carrier 308, and end program information carrier 309. Among them, the blank grid area (indicated by the dashed frame) on some information carriers is a user-defined information area.
具体的,上述底盘模式程序信息载体302所标识的程序信息用于指示该无人车将要执行的操作为云台跟随底盘的操作,底盘角度程序信息载体303所标识的程序信息用于指示底盘的转向角度(比如30度),底盘转向程序信息载体304所标识的程序信息用于指示底盘的转向(比如左转或者右转),上述的直行程序信息载体305所标识的程序信息用于指示无人车直行;上述的云台模式程序信息载体306所标识的程序信息用于指示执行设备将要执行的操作为底盘跟随云台的操作;上述的云台转动角度程序信息载体307所标识的程序信息用于指示云台绕偏航yaw轴的转向角度,上述云台转向程序信息载体308用于指示云台的转向(比如水平向左转或者右转)。本实施例中,无人车会依次执行上述程序信息载体标识的程序信息所指示的操作内容。Specifically, the program information identified by the aforementioned chassis mode program information carrier 302 is used to indicate that the operation to be performed by the unmanned vehicle is the operation of the pan/tilt following the chassis, and the program information identified by the chassis angle program information carrier 303 is used to indicate the chassis The steering angle (such as 30 degrees), the program information identified by the chassis steering program information carrier 304 is used to indicate the steering of the chassis (such as turning left or right), and the program information identified by the aforementioned straight program information carrier 305 is used to indicate no People and vehicles go straight; the program information identified by the above-mentioned pan/tilt mode program information carrier 306 is used to indicate that the operation to be performed by the execution device is the operation of the chassis following the pan/tilt; the program information identified by the above-mentioned pan/tilt rotation angle program information carrier 307 It is used to indicate the steering angle of the pan/tilt head around the yaw axis, and the above-mentioned pan/tilt steering program information carrier 308 is used to indicate the turn of the pan/tilt head (for example, horizontally turning left or right). In this embodiment, the unmanned vehicle will sequentially execute the operation content indicated by the program information identified by the program information carrier.
示例性的,假设底盘角度程序信息载体303所标识的程序信息用于指示底盘的转向角度为30度,底盘转向程序信息载体304所标识的程序信息用于指示底盘的转向为左转,直行程序信息载体305所标识的程序信息用于指示无人车直行5米,云台转动角度程序信息载体307所标识的程序信息用于指示云台绕偏航yaw轴的转向角度为180度/,云台转向程序信息载体308用于指示云台的转向为向右。那么,在执行设备采集各个程序信息载体的图像,并通过图像识别、程序信息识别、程序信息编译得到可执行程序后,在满足执行条件的情况下,可执行程序可以执行如下操作:在底盘向左转动30度的过程中,云台跟随底盘向左转动30度;而后,当底盘 转完30度后,向前直行10;而后,云台开始向右旋转180,同时,在云台向右旋转的过程中,底盘也跟随云台向右旋转;最后,在云台向右旋转180度后,该可执行程序对应的执行操作完成。Exemplarily, suppose that the program information identified by the chassis angle program information carrier 303 is used to indicate that the steering angle of the chassis is 30 degrees, and the program information identified by the chassis steering program information carrier 304 is used to indicate that the steering of the chassis is left turn, and the program goes straight. The program information identified by the information carrier 305 is used to instruct the unmanned vehicle to go straight for 5 meters, and the program information identified by the program information carrier 307 of the pan/tilt rotation angle is used to indicate that the steering angle of the pan/tilt around the yaw axis is 180 degrees/, cloud The platform turning program information carrier 308 is used to instruct the platform to turn to the right. Then, after the execution device collects the image of each program information carrier, and obtains the executable program through image recognition, program information recognition, and program information compilation, the executable program can perform the following operations when the execution conditions are met: In the process of turning 30 degrees to the left, the gimbal rotates 30 degrees to the left following the chassis; then, when the chassis has turned 30 degrees, go straight forward 10; then, the gimbal starts to rotate 180 to the right, and at the same time, In the process of rotating to the right, the chassis also rotates to the right with the pan/tilt; finally, after the pan/tilt rotates 180 degrees to the right, the execution of the executable program is completed.
本实施例中,可以允许用户一边使用程序信息载体构建组合体,同时使执行设备识别搭建好的组合体中的各程序信息载体所标识的程序信息,并根据识别到的程序信息编译得到可执行程序,执行该可执行程序,进而在满足执行条件的情况下,可以快速实现编程成果的展示。In this embodiment, the user can be allowed to use the program information carrier to construct the assembly, and at the same time, the execution device can recognize the program information identified by each program information carrier in the constructed assembly, and compile the executable according to the recognized program information. Program, execute the executable program, and then in the case that the execution conditions are met, the programming results can be displayed quickly.
本发明一实施例中,上述的程序信息载体之间能够可拆卸地连接,进而各程序信息载体可以任意组合,以使执行设备得到不同内容的可执行程序。In an embodiment of the present invention, the above-mentioned program information carriers can be detachably connected, and the program information carriers can be arbitrarily combined, so that the execution device can obtain executable programs with different contents.
本发明一可选的实施例中,用户所选择的各程序信息载体可拆卸连接在一起后可以是构建得到指定的形状;示例性的,可以是直线型,如图3所示;也可以是回字形或者正方形等形状。In an optional embodiment of the present invention, the program information carriers selected by the user can be detachably connected together to be constructed to obtain a specified shape; for example, it can be a linear type, as shown in FIG. 3; or Back shape or square shape.
以执行设备为可移动平台为例,比如无人车,用户可以是通过遥控等方式操控该无人车沿指定的形状移动,在移动的过程中对各程序信息载体进行图像采集和识别各程序信息载体所标识的程序信息,并编译得到可执行程序,然后在满足执行条件的情况下,执行该可执行程序信息。Taking the execution device as a movable platform as an example, such as an unmanned vehicle, the user can control the unmanned vehicle to move along a specified shape by remote control, etc., during the movement, image collection and identification of each program information carrier The program information identified by the information carrier is compiled to obtain an executable program, and then the executable program information is executed when the execution conditions are met.
本实施例中,通过使用选择的程序信息载体构建不同的形状的组合体,并操控执行设备沿该形状移动进行图像采集,进而可以使整个编程操作更加富有趣味性,并且进一步锻炼用户对移动平台的操控能力。In this embodiment, a combination of different shapes is constructed by using the selected program information carrier, and the execution device is manipulated to move along the shape for image collection, which can make the entire programming operation more interesting and further exercise the user’s understanding of the mobile platform Control ability.
示例性的,再次参照图2所示,该程序信息载体10上可以设置有用于与其他程序信息载体相连接的结构件,程序信息载体之间通过该结构件实现可拆卸连接;例如,该结构件包括:凹槽102和插件103,该凹槽的形状102和插件103的形状相适应。Exemplarily, referring to FIG. 2 again, the program information carrier 10 may be provided with a structural member for connecting with other program information carriers, and the program information carriers can be detachably connected through the structural member; for example, the structure The components include a groove 102 and an insert 103, and the shape of the groove 102 is compatible with the shape of the insert 103.
示例性的,上述的程序信息载体上设置有粘接部或者磁铁部件,通过该粘接部和磁铁部件实现与其他程序信息载体的可拆卸连接。Exemplarily, the above-mentioned program information carrier is provided with an adhesive part or a magnet component, and the detachable connection with other program information carriers is realized through the adhesive part and the magnet component.
本发明一实施例中,用户可以选择不同的程序信息载体进行彼此连接, 构建表征不同程序内容的组合体。In an embodiment of the present invention, a user can select different program information carriers to connect to each other to construct a combination that characterizes different program contents.
本发明一实施例中,执行设备编译得到的可执行程序中指示的各个操作的顺序与程序信息载体之间的连接顺序相关。进而,本发明实施例中用户可以按照执行设备将要执行的各个操作的顺序,将对应的不同程序信息载体进行依次组合或者拼接。In an embodiment of the present invention, the sequence of the operations indicated in the executable program compiled by the execution device is related to the connection sequence between the program information carriers. Furthermore, in the embodiment of the present invention, the user can sequentially combine or splice corresponding different program information carriers according to the order of the various operations to be performed by the execution device.
可选的,可执行程序中指示的各个操作的顺序可以为程序信息载体之间的连接顺序。可以理解,相邻连接的几个程序信息载体之间的执行顺序可以是并行的,如图3所示的底盘角度程序信息载体303、底盘转向程序信息载体304所指示的操作的执行顺序。Optionally, the sequence of operations indicated in the executable program may be the sequence of connection between program information carriers. It can be understood that the execution sequence between several adjacently connected program information carriers may be parallel, as shown in FIG. 3 for the execution sequence of operations indicated by the chassis angle program information carrier 303 and the chassis steering program information carrier 304.
本发明一实施例中,上述程序信息载体包括:具有预定形状的立体块。该立体块可以是积木,进而用户可以是通过将不同形状的立体块进行堆叠或拼接,以表征执行设备待执行的操作的内容,使执行设备通过采集堆叠或拼接的各立体块的图像,识别不同立体块所表征的程序信息,然后根据各立体块所表征的程序信息编译得到待执行程序。In an embodiment of the present invention, the above-mentioned program information carrier includes: a three-dimensional block having a predetermined shape. The three-dimensional block can be a building block, and the user can stack or splice the three-dimensional blocks of different shapes to characterize the content of the operation to be performed by the execution device, so that the execution device can recognize by collecting images of the stacked or spliced stereo blocks The program information represented by different three-dimensional blocks is then compiled according to the program information represented by each three-dimensional block to obtain the program to be executed.
本发明一实施例中,上述程序信息载体包括:所述执行设备所包含的功能部件的仿真立体块。In an embodiment of the present invention, the above-mentioned program information carrier includes: a simulated three-dimensional block of a functional component included in the execution device.
示例性的,若执行设备为无人车,该无人车包含的功能部件有:车轮和车身,此时用户可以选择车轮仿真立体块和车身仿真立体块,然后利用该车轮仿真立体块和车身仿真立体块进行构建组合体,执行设备采集该车轮仿真立体块和车身仿真立体块的图像,并识别车轮仿真立体块和车身仿真立体块所表征的程序信息,根据车轮仿真立体块和车身仿真立体块所表征的程序信息编译得到可执行程序信息,然后在满足执行条件后执行该可执行程序信息。Exemplarily, if the execution device is an unmanned vehicle, the functional components included in the unmanned vehicle are: wheels and body. At this time, the user can select the wheel simulation solid block and the body simulation solid block, and then use the wheel to simulate the solid block and the body The simulation three-dimensional block is used to construct a combined body. The execution equipment collects the images of the wheel simulation three-dimensional block and the car body simulation three-dimensional block, and recognizes the program information represented by the wheel simulation three-dimensional block and the car body simulation three-dimensional block. The program information represented by the block is compiled to obtain executable program information, and then the executable program information is executed after the execution conditions are met.
示例性的,上述在采集仿真立体块的图像以后,通过识别该仿真立体块的外形、表面印刷的图文信息等,来识别无人车中的动作对象(以功能部件),并利用预设的信息控制该动作对象执行相应的操作。Exemplarily, after the image of the simulated three-dimensional block is collected, the shape of the simulated three-dimensional block, the graphic information printed on the surface, etc., are used to identify the moving objects (function components) in the unmanned vehicle, and use the preset The information controls the action object to perform the corresponding operation.
进而,本实施例中,通过设置程序信息载体为执行设备的功能部件的 仿真立体块,一方面用户可以更直观、形象地根据执行设备所包含的各功能部件将选择的各仿真立体块搭建得到与执行设备对应的组合体;另一方面,可以让用户了解执行设备的构造,锻炼动手操作能力。Furthermore, in this embodiment, by setting the program information carrier as the simulated three-dimensional block of the functional component of the execution device, on the one hand, the user can more intuitively and vividly construct the selected simulated three-dimensional block according to the functional components included in the execution device. A combination corresponding to the execution device; on the other hand, it can let users understand the structure of the execution device and exercise their hands-on operation ability.
图4为本发明一个实施例提供的一种执行设备的结构示意图。参照图4所示,本发明实施例中,上述的执行设备200包括:执行主体201以及图像采集设备202,该图像采集设备202可拆卸地安装于所述执行主体201上的指定位置处。Fig. 4 is a schematic structural diagram of an execution device provided by an embodiment of the present invention. Referring to FIG. 4, in the embodiment of the present invention, the above-mentioned execution device 200 includes: an execution body 201 and an image acquisition device 202, and the image acquisition device 202 is detachably installed at a designated position on the execution body 201.
上述执行设备200用于通过图像采集设备202采集至少一个所述程序信息载体的图像。The above-mentioned execution device 200 is used to collect at least one image of the program information carrier through the image acquisition device 202.
本发明一实施例中,上述的执行设备设有对应的控制终端,用户可以通过该控制终端控制执行设备进行相应的操作;该控制终端可以是手机、电脑、遥控器等终端设备。In an embodiment of the present invention, the above-mentioned execution device is provided with a corresponding control terminal, and the user can control the execution device to perform corresponding operations through the control terminal; the control terminal may be a terminal device such as a mobile phone, a computer, and a remote control.
可选的,上述的图像采集设备在采集了至少一个所述程序信息载体的图像后,可以是将该图像发送至上述的控制终端,控制终端也可以对该图像中的各程序信息载体进行识别,得到该程序信息载体所标识的程序信息以及对应的执行设备的操作内容,进而用户可以通过该控制终端控制执行设备执行相应的操作。如此,可以有效地锻炼用户对终端和执行设备的操控能力,使整个过程更有趣味性。Optionally, after the above-mentioned image acquisition device has collected at least one image of the program information carrier, it may send the image to the above-mentioned control terminal, and the control terminal may also identify each program information carrier in the image. , Obtain the program information identified by the program information carrier and the operation content of the corresponding execution device, and then the user can control the execution device to execute the corresponding operation through the control terminal. In this way, the user's ability to manipulate the terminal and execution equipment can be effectively exercised, making the whole process more interesting.
可选的,上述的图像采集设备的采集图像可以回传至控制终端,用户可以根据图像采集设备回传的画面对执行设备进行控制,如控制执行设备往某一方向运动。如此,用户在远距离控制执行设备时,可以通过图像采集设备以执行设备的视场范围来了解执行设备周围的情况,以更好地识别程序信息载体所标识的程序信息,。Optionally, the image collected by the aforementioned image acquisition device can be transmitted back to the control terminal, and the user can control the execution device according to the picture returned by the image acquisition device, such as controlling the execution device to move in a certain direction. In this way, when the user remotely controls the execution device, the user can use the image acquisition device to understand the situation around the execution device through the field of view of the execution device, so as to better identify the program information identified by the program information carrier.
本发明实施例中,上述图像采集设备200可以是安装于执行主体的下方、一侧或者是正前方等;示例性的,上述的图像采集设备安装于执行主体的下方,如果上述的程序信息载体是平板结构,通过将选择的程序信息载体按照程序的执行顺序进行连接以后,平铺在一平面上,比如地面,然 后图像采集设备在执行主体移动的过程中按顺序采集各程序信息载体的图像,然后从图像中识别各程序信息载体所表征的程序信息,对各程序信息载体所表征的程序信息进行编译得到可执行程序,并在满足执行条件的情况下执行该可执行程序信息。In the embodiment of the present invention, the above-mentioned image acquisition device 200 may be installed below, on one side, or directly in front of the execution body; for example, the above-mentioned image acquisition device is installed below the execution body, if the above-mentioned program information carrier is Flat structure, by connecting the selected program information carriers in the order of execution of the program, they are tiled on a flat surface, such as the ground, and the image acquisition device sequentially collects the images of each program information carrier in the process of executing the movement of the main body. Then identify the program information represented by each program information carrier from the image, compile the program information represented by each program information carrier to obtain an executable program, and execute the executable program information when the execution conditions are met.
或者,执行设备可以包括云台,若上述的图像采集设备是安装于云台上的,执行设备通过控制云台的匀速转动,带动图像采集设备转动并依次采集各程序信息载体的图像,然后从图像中识别各程序信息载体所表征的程序信息,对各程序信息载体所表征的程序信息进行编译得到可执行程序,并在满足执行条件的情况下执行该可执行程序信息。Alternatively, the execution device may include a pan-tilt. If the above-mentioned image acquisition device is installed on the pan-tilt, the execution device drives the image acquisition device to rotate and sequentially collects images of each program information carrier by controlling the uniform rotation of the pan-tilt. The program information represented by each program information carrier is identified in the image, the program information represented by each program information carrier is compiled to obtain an executable program, and the executable program information is executed when the execution conditions are met.
本发明一实施例中,上述执行设备还用于获取待识别程序信息载体的位置信息,并根据该位置信息调节图像采集设备的拍摄方向朝向所述程序信息载体,以采集程序信息载体的图像。In an embodiment of the present invention, the above-mentioned execution device is also used to obtain location information of the program information carrier to be identified, and adjust the shooting direction of the image acquisition device toward the program information carrier according to the location information to collect images of the program information carrier.
本发明实施例中,执行设备可以自动获取待识别程序信息载体的位置信息,然后根据该位置信息调节图像采集设备的拍摄方向与程序信息载体所在的位置一致,进而可以实现,当图像采集设备的拍摄方向与待识别程序信息载体的位置不一致时,无需用户手动调节图像采集设备的图像采集的方向,提高了程序执行的效率。In the embodiment of the present invention, the execution device can automatically obtain the location information of the program information carrier to be identified, and then adjust the shooting direction of the image capture device to be consistent with the location of the program information carrier according to the location information, and then it can be realized that the image capture device When the shooting direction is inconsistent with the position of the program information carrier to be identified, the user does not need to manually adjust the image collection direction of the image collection device, which improves the efficiency of program execution.
本实施例中,上述可执行程序对应的组合体中的至少一个所述程序信息载体上设置有定位部件,该定位部件用于发出定位信号;执行设备上设置有与该定位部件对应的定位检测部件,执行设备还用于通过该定位检测部件检测该定位信号,并根据该定位信号对可执行程序对应的至少一个所述程序信息载体定位,以根据定位结果采集所述可执行程序对应的至少一个所述程序信息载体的图像。In this embodiment, at least one of the program information carriers in the combination corresponding to the executable program is provided with a positioning component, and the positioning component is used to send a positioning signal; the execution device is provided with a positioning detection corresponding to the positioning component Component, the execution device is also used to detect the positioning signal through the positioning detection component, and locate at least one program information carrier corresponding to the executable program according to the positioning signal, so as to collect at least one corresponding to the executable program according to the positioning result An image of the program information carrier.
上述执行设备通过定位检测部件检测该定位信号,根据该定位信号对程序信息载体或者由该程序信息载体构建的组合体进行定位,所要达到的目的是使该执行设备得到程序信息载体或者由该程序信息载体构建的组合体的位置信息,根据该位置信息调节拍摄方向,采集各程序信息载体的图 像进行识别,以提高识别的效率。The above-mentioned execution device detects the positioning signal through the positioning detection component, and locates the program information carrier or the combination constructed by the program information carrier according to the positioning signal. The goal to be achieved is to enable the execution device to obtain the program information carrier or use the program information carrier. According to the position information of the combination constructed by the information carrier, the shooting direction is adjusted according to the position information, and the images of each program information carrier are collected for recognition, so as to improve the efficiency of recognition.
本实施例中,上述的定位部件可以是激光发射器,上述的定位检测部件可以是激光接收器,激光发射器用于在满足预设条件后持续进行激光发射,执行设备在移动过程中检测该激光信号,当接收到该激光信号以后,确定该激光发射器的位置信息,进而得到待识别程序信息载体的位置信息。In this embodiment, the above-mentioned positioning component may be a laser transmitter, and the above-mentioned positioning detection component may be a laser receiver. The laser transmitter is used for continuous laser emission after meeting preset conditions, and the execution device detects the laser during movement. Signal, after receiving the laser signal, determine the position information of the laser transmitter, and then obtain the position information of the program information carrier to be identified.
可选的,上述定位部件可以是设置于开始程序信息载体上和/或结束程序信息载体上,当用户构建组合体完毕以后,若需要执行设备识别该程序信息载体,则用户控制该定位部件开始工作,发出定位信号。并控制执行设备检测该定位信号,实现对待识别信息载体的定位。Optionally, the above positioning component may be set on the start program information carrier and/or the end program information carrier. After the user builds the assembly, if the execution device needs to recognize the program information carrier, the user controls the positioning component to start Work and send out positioning signals. And control the execution device to detect the positioning signal to realize the positioning of the information carrier to be identified.
本发明一实施例中,上述执行设备还包括:设于所述执行主体上的云台,该云台用于支撑所述图像采集设备;该云台带动图像采集设备转动,以调节图像采集设备的拍摄方向。In an embodiment of the present invention, the above-mentioned execution device further includes: a pan/tilt provided on the execution body, the pan/tilt is used to support the image acquisition device; the pan/tilt drives the image acquisition device to rotate to adjust the image acquisition device Shooting direction.
本实施例中,执行设备用于根据所述位置信息调节所述云台的姿态,以调节所述图像采集设备的拍摄方向朝向所述程序信息载体。In this embodiment, the execution device is used to adjust the posture of the pan/tilt according to the position information to adjust the shooting direction of the image acquisition device toward the program information carrier.
可选的,该云台包括俯仰电机、横滚电机和偏转电机,执行设备通过控制云台的俯仰电机、横滚电机和偏航电机的输出角度,控制云台的俯仰角、横滚角和偏航角,以调节云台的姿态,进而实现调节图像采集设备的拍摄方向。Optionally, the gimbal includes a pitch motor, a roll motor, and a yaw motor. The execution device controls the pitch, roll, and yaw angles of the gimbal by controlling the output angles of the pitch, roll, and yaw motors of the gimbal. The yaw angle is used to adjust the attitude of the pan/tilt, and then adjust the shooting direction of the image acquisition device.
本发明一可选的实施例中,在图像采集设备用于采集至少一个程序信息载体的图像时,该图像采集设备与执行主体之间的距离大于预设距离。In an optional embodiment of the present invention, when the image acquisition device is used to acquire an image of at least one program information carrier, the distance between the image acquisition device and the execution subject is greater than the preset distance.
进而本实施例中,上述的图像采集设备在进行图像采集时可以是独立于执行主体之外的,此时可以允许用户手持该图像采集设备进行图像采集;具有更高的灵活性。Furthermore, in this embodiment, the above-mentioned image acquisition device may be independent of the execution subject when performing image acquisition. In this case, the user may be allowed to hold the image acquisition device for image acquisition; it has higher flexibility.
本实施例中,图像采集设备与执行主体之间可以是通过有线连接的方式或者是无线连接的方式进行连接。In this embodiment, the image acquisition device and the execution subject may be connected through a wired connection or a wireless connection.
本发明一实施例中,上述执行设备还用于记录多个可执行程序,并对多个可执行程序进行重新编译,得到新的可执行程序。In an embodiment of the present invention, the above-mentioned execution device is also used to record multiple executable programs, and recompile multiple executable programs to obtain new executable programs.
可选的,上述执行设备还用于接收编辑指令,在接收到该编辑指令以后,根据所述编辑指令对存储的多个可执行程序进行重新编译,得到新的可执行程序。Optionally, the foregoing execution device is also used to receive an editing instruction, and after receiving the editing instruction, recompile multiple stored executable programs according to the editing instruction to obtain a new executable program.
进而本实施例中,在进行编程的过程中用户可以是通过多次进行选择不同的程序信息载体进行构建组合体,使执行设备编译得到多个可执行程序,执行设备将得到的多个可执行程序进行存储,并在执行设备接收到编辑指令以后,将该多个可执行程序进行重新编译,示例性的,该重新编译包括:将多个可执行程序按照各自生成的时间顺序或者其他指定的逻辑进行拼接,得到一个新的完整的可执行程序,然后继续对该可执行程序进行暂存或者是直接执行该可执行程序。Furthermore, in this embodiment, in the process of programming, the user may select different program information carriers multiple times to construct a combination, so that the execution device compiles multiple executable programs, and the execution device obtains multiple executable programs. The program is stored, and after the execution device receives the editing instruction, the multiple executable programs are recompiled. Exemplarily, the recompilation includes: the multiple executable programs are generated according to the time sequence of their respective generation or other specified The logic is spliced to obtain a new complete executable program, and then continue to temporarily store the executable program or execute the executable program directly.
示例性的,以执行设备为无人车为例,该无人车包括的功能部件有:云台、发射机构;用户在选择程序信息载体时,可以是根据不同的功能部件将要执行的操作分别进行选择对应的程序信息载体,执行设备根据用户选择的程序信息载体编译得到不同功能部件分别对应的可执行程序,并分别进行存储,在执行设备得到所有的功能部件分别对应的可执行程序以后,此时若接收到编辑指令,则将该所有的可执行程序进行重新编译得到一个新的完整的可执行程序,然后在满足执行条件的情况后执行该新的程序信息。Exemplarily, taking the execution device as an unmanned vehicle as an example, the unmanned vehicle includes functional components: PTZ and launching mechanism; when the user selects the program information carrier, it can be based on the operations to be performed by different functional components. After selecting the corresponding program information carrier, the execution device compiles the executable programs corresponding to different functional components according to the program information carrier selected by the user, and stores them separately. After the execution device obtains the executable programs corresponding to all the functional components, If an editing instruction is received at this time, all executable programs are recompiled to obtain a new complete executable program, and then the new program information is executed when the execution conditions are met.
比如,云台对应的可执行程序为云台绕yaw轴旋转20度,发射机构对应的可执行程序以3发/秒的速度连续射击3秒,则两个可执行程序拼接后,可以是诸如满足执行条件的情况下,发射机构以3发/秒的速度连续射击3秒后,再云台绕yaw轴旋转20度。For example, the executable program corresponding to the gimbal is that the gimbal rotates 20 degrees around the yaw axis, and the executable program corresponding to the launching mechanism shoots continuously for 3 seconds at a speed of 3 rounds/sec. After the two executable programs are spliced, it can be such When the execution conditions are met, the launching mechanism shoots continuously at a speed of 3 rounds per second for 3 seconds, and then the pan/tilt rotates 20 degrees around the yaw axis.
上述的编辑指令可以是由用户终端设备发送的,比如手机、电脑、遥控器等设备。The above-mentioned editing instructions may be sent by user terminal devices, such as mobile phones, computers, remote controls and other devices.
进而本发明实施例中,允许用户将执行设备的一个复杂的操作进行分割,有利于对用户的逻辑能力进行训练;并且能够满足在程序信息载体数量有限的情况下,实现复杂的可执行程序的编译。Furthermore, in the embodiment of the present invention, the user is allowed to divide a complex operation of the execution device, which is conducive to training the user's logical ability; and can meet the requirements of implementing complex executable programs under the condition that the number of program information carriers is limited. Compile.
本发明一实施例中,上述执行设备还用于输出所述可执行程序是否执行成功的结果信息。In an embodiment of the present invention, the above-mentioned execution device is further configured to output result information of whether the executable program is successfully executed.
该输出的方式可以是包括:语音输出、光信号闪烁等方式。The output mode may include: voice output, light signal flashing, etc.
本实施例中,通过执行设备直接输出可执行程序是否执行成功的结果信息,使得用户能够直观地判断程序执行的结果。并进一步的判断出用户所选择的程序信息载体是否正确以及各程序信息载体的搭建顺序是否正确等。In this embodiment, the execution device directly outputs the result information of whether the executable program is executed successfully, so that the user can intuitively judge the result of the program execution. And further judge whether the program information carrier selected by the user is correct and whether the build sequence of each program information carrier is correct.
本发明另一实施例中,上述的执行设备包括一个或多个可拆卸连接的功能部件;In another embodiment of the present invention, the foregoing execution device includes one or more detachably connected functional components;
该功能部件用于在满足所述执行条件的情况下执行所述可执行程序。The functional component is used to execute the executable program when the execution condition is met.
示例性的,以执行设备为“无人车”为例,该无人车包括的功能部件有:底盘、云台、图像采集设备和发射机构。例如,当该执行设备在从采集的图像中识别出有程序信息载体所标识的程序信息为指示底盘转向时,该底盘功能部件会在满足执行条件的情况下执行对应的转向操作;当该执行设备在从采集的图像中识别出有程序信息载体所标识的程序信息为指示云台转向时,该云台功能部件会在满足执行条件的情况下执行对应的转向操作。Exemplarily, taking the execution device as an “unmanned vehicle” as an example, the unmanned vehicle includes functional components: a chassis, a pan-tilt, an image acquisition device, and a launch mechanism. For example, when the execution device recognizes from the collected images that the program information identified by the program information carrier indicates the steering of the chassis, the chassis functional component will perform the corresponding steering operation when the execution conditions are met; when the execution When the device recognizes from the collected image that the program information identified by the program information carrier indicates the direction of the pan/tilt, the functional component of the pan/tilt will perform the corresponding turning operation when the execution conditions are met.
进而,本发明实施例中,用户还可以根据执行程序的对象和执行程序的内容进行选择功能部件,并使用该功能部件构建执行设备,以此可以锻炼用户的动手能力。Furthermore, in the embodiment of the present invention, the user can also select functional components according to the object of the execution program and the content of the execution program, and use the functional components to construct the execution device, so as to exercise the user's hands-on ability.
可选的,上述的执行设备包括:可移动平台。Optionally, the foregoing execution device includes: a movable platform.
图5是本发明一个实施例提供的一种编程方法的流程示意图。参照图5所示,该方法应用于上述实施例中所述的执行设备,该方法包括如下步骤S51-S52:Fig. 5 is a schematic flowchart of a programming method provided by an embodiment of the present invention. Referring to FIG. 5, the method is applied to the execution device described in the foregoing embodiment, and the method includes the following steps S51-S52:
S51、采集至少一个程序信息载体的图像,并从采集的图像中识别出至少一个所述程序信息载体所标识的程序信息。S51. Collect an image of at least one program information carrier, and identify at least one program information identified by the program information carrier from the collected image.
该程序信息包括但不限于:指示执行设备动作的信息(比如指示执行 设备移动的信息)、指示执行设备产生光电效果的信息、指示执行设备发出声音信号的信息、指示执行设备进入某些功能模式的信息等。示例性的,该指示执行设备移动的信息包括但不限于:指示执行设备沿一方向移动直行指定距离,该指定距离可以为用户自定义距离或预设距离;指示执行设备左转或右转者的信息等。The program information includes, but is not limited to: information instructing the execution of the device action (such as information instructing the execution of the device to move), instructing the execution of the device to produce photoelectric effects, instructing the execution of the device to emit sound signals, and instructing the execution of the device to enter certain functional modes Information etc. Exemplarily, the information instructing the execution device to move includes but is not limited to: instructing the execution device to move in one direction and go straight for a specified distance, the specified distance may be a user-defined distance or a preset distance; the person instructing the execution device to turn left or right Information etc.
其中,程序信息的标识方式可以包括但不限于文字、数字、字母、符号、图像以及程序信息载体10的形状等等,图像包括但不限于诸如二维码、条形码等。Wherein, the identification method of the program information may include, but is not limited to, text, numbers, letters, symbols, images, and the shape of the program information carrier 10, etc. The image includes, but is not limited to, QR codes, barcodes, and the like.
S52、根据识别到的程序信息编译得到可执行程序,以在满足执行条件的情况下执行所述可执行程序。S52. The executable program is obtained by compiling according to the recognized program information, so as to execute the executable program when the execution condition is met.
本实施例中,用户可以根据自己的编程逻辑,以及期望执行设备将要执行的操作,选择一个或多个对应的程序信息载体,以构建一套执行操作对应的可执行程序,其中,一个程序信息载体可以对应执行设备能够执行的一个或多个操作。当选择程序信息载体的数量为多个时,可选的,上述的执行设备采集程序信息载体的图像的方式可以是按照顺序依次进行采集各个程序信息载体的图像;也可以是直接采集所有程序信息载体的图像,然后识别各程序信息载体标识的程序信息,此时,这多个程序信息载体可以集中在一个区域内,以使得执行设备可以一次性采集包括这多个程序信息载体的图像。如此,在得到各个程序信息载体标识的程序信息后,可以根据各程序信息的排布顺序,将各程序信息进行编译得到可执行程序,并在满足执行条件的情况下,执行该可执行程序。In this embodiment, the user can select one or more corresponding program information carriers according to his own programming logic and the operation expected to be executed by the device to construct a set of executable programs corresponding to the execution operation. Among them, one program information The carrier may correspond to one or more operations that the execution device can perform. When the number of selected program information carriers is more than one, optionally, the above-mentioned method for the execution device to collect images of program information carriers can be to collect images of each program information carrier in sequence; it can also directly collect all program information Then, the program information identified by each program information carrier is identified. At this time, the multiple program information carriers can be concentrated in one area, so that the execution device can collect the images including the multiple program information carriers at one time. In this way, after obtaining the program information identified by each program information carrier, the program information can be compiled according to the arrangement order of the program information to obtain an executable program, and the executable program can be executed when the execution conditions are met.
如此,本发明实施例中,用户通过实体性质的程序信息载体的各个组合,可以构建多套套执行设备的待执行操作所对应的可执行程序,并且由执行设备执行该可执行程序。在构建的过程中,用户根据程序信息载体所对应的一个或多个操作,可以直观地确定可执行程序对应的操作内容,使得用户可以脱离电脑、手机等电子设备进行编程,也不需要认识英文单词,更不需要学习编程语言,即可在锻炼动手能力的过程中实现编程逻辑思维 的锻炼,具有简单易学、直观的积极效果。In this way, in the embodiment of the present invention, the user can construct multiple sets of executable programs corresponding to the operations to be executed by the execution device through various combinations of the program information carriers of the physical nature, and the execution device executes the executable program. During the construction process, the user can intuitively determine the operation content corresponding to the executable program based on one or more operations corresponding to the program information carrier, so that the user can program without computers, mobile phones and other electronic devices, and does not need to know English Words, not to mention the need to learn programming languages, can realize the exercise of programming logical thinking in the process of training hands-on ability, which has the positive effect of simple, easy to learn and intuitive.
本发明一实施例中,上述满足执行条件,包括:接收到用户终端发送的开始执行的触发信号,该用户终端与执行设备通信连接,可以用于控制执行设备,其可以是用户所使用的手机、平板电脑等终端设备,也可以是遥控器等设备。或者,上述满足执行条件,包括:接收到用户针对执行设备的输入操作,该输入操作用于指示执行设备执行上述可执行程序,例如,可以是在检测到用户打开执行设备上的某一功能按钮后,比如开始键,然后确定满足执行条件。需要说明的是,上述仅为举例说明,本发明对此不作限定。。In an embodiment of the present invention, the foregoing fulfillment of the execution condition includes: receiving a trigger signal to start execution sent by a user terminal, the user terminal is in communication with the execution device, and may be used to control the execution device, which may be a mobile phone used by the user , Tablet PCs and other terminal devices, or remote control devices. Alternatively, the foregoing fulfillment of the execution condition includes: receiving a user's input operation on the execution device, the input operation is used to instruct the execution device to execute the foregoing executable program, for example, it may be detected that the user opens a certain function button on the execution device Then, such as the start key, and then confirm that the execution conditions are met. It should be noted that the above are only examples, and the present invention does not limit this. .
可选的,上述程序信息载体的表面标识有所述程序信息。Optionally, the program information is marked on the surface of the program information carrier.
本实施例中,在程序信息载体的表面标识程序信息的方式,可以是包括:将程序信息印刷在程序信息载体的表面,该程序信息的标识形式可以是文字信息或者是指定的符号信息、或者是数字信息、或者是字母信息,或者是图像信息等。In this embodiment, the method of identifying program information on the surface of the program information carrier may include: printing the program information on the surface of the program information carrier, and the identification form of the program information may be text information or designated symbol information, or It is digital information, or letter information, or image information.
进而本实施例中,用户可以直观地看到每个程序信息载体所表征的程序信息,便于用户根据执行设备将要执行的程序内容,选择不同的程序信息载体构建对应的程序信息载体的组合体。Furthermore, in this embodiment, the user can intuitively see the program information represented by each program information carrier, so that the user can select different program information carriers to construct a corresponding program information carrier combination according to the program content to be executed by the execution device.
可选的,上述程序信息包括:用户自定义信息。Optionally, the foregoing program information includes: user-defined information.
示例性的,该自定义信息根据不同的执行设备可以是包括:云台的速度、前进的距离、偏转的角度和后退的距离等等。Exemplarily, the customized information may include the speed of the pan-tilt, the distance of forwarding, the angle of deflection, and the distance of retreating according to different execution devices.
用户可以是将自定义信息通过填写、粘接等方式设置于用户自定义信息区域。The user can set the user-defined information in the user-defined information area by filling in, bonding, etc.
本发明一实施例中,上述程序信息载体上设置有第一标识;In an embodiment of the present invention, a first identifier is set on the program information carrier;
所述第一标识用于被所述执行设备检测以识别所述程序信息载体,并在识别所述程序信息载体后识别所述程序信息载体所标识的程序信息。The first identifier is used to be detected by the execution device to identify the program information carrier, and after identifying the program information carrier, identify the program information identified by the program information carrier.
该第一标识可以是:二维码、条形码等。The first identification may be: a two-dimensional code, a barcode, and so on.
本发明实施例中,在程序信息载体上设置第一标识,目的是让执行设 备识别该程序信息载体,然后在识别该程序信息载体以后再进行识别该程序信息载体所标识的程序信息;如此,可以防止执行设备在识别程序信息载体所标识的程序信息的过程中,受到除程序信息载体以外的其他物体的干扰。In the embodiment of the present invention, the first identifier is set on the program information carrier, in order to allow the execution device to identify the program information carrier, and then after identifying the program information carrier, identify the program information identified by the program information carrier; so, It can prevent the execution device from being interfered by objects other than the program information carrier during the process of identifying the program information identified by the program information carrier.
本发明一实施例中,上述程序信息载体上设置有第二标识,所述第二标识用于记录所述程序信息载体所标识的程序信息;In an embodiment of the present invention, a second identifier is provided on the program information carrier, and the second identifier is used to record program information identified by the program information carrier;
执行设备读取所述图像中的所述第二标识,得到所述第二标识记录的程序信息。示例性的,该第二标识可以是:图形码标签,比如二维码、条形码等。The execution device reads the second identifier in the image to obtain the program information recorded by the second identifier. Exemplarily, the second identification may be: a graphic code label, such as a two-dimensional code, a barcode, and the like.
本发明一实施例中,上述程序信息载体之间能够进行可拆卸地连接,以得到不同内容的可执行程序。In an embodiment of the present invention, the above-mentioned program information carriers can be detachably connected to obtain executable programs with different contents.
可选的,上述可执行程序中指示的各个操作的顺序与所述程序信息载体之间的连接顺序相关。Optionally, the sequence of the operations indicated in the executable program is related to the sequence of connection between the program information carriers.
进而,本发明实施例中用户可以按照执行设备将要执行的各个操作的顺序,将对应的不同程序信息载体进行依次组合或者拼接。Furthermore, in the embodiment of the present invention, the user can sequentially combine or splice corresponding different program information carriers according to the order of the various operations to be performed by the execution device.
可选的,上述程序信息载体,包括:具有特定形状的立体块。该立体块可以是积木,进而用户可以是通过将不同形状的立体块进行堆叠或拼接,以表征执行设备待执行的操作的内容,使执行设备通过采集堆叠或拼接的各立体块的图像,识别不同立体块所表征的程序信息,然后根据各立体块所表征的程序信息编译得到待执行程序。Optionally, the above program information carrier includes: a three-dimensional block with a specific shape. The three-dimensional block can be a building block, and the user can stack or splice the three-dimensional blocks of different shapes to characterize the content of the operation to be performed by the execution device, so that the execution device can recognize by collecting images of the stacked or spliced stereo blocks The program information represented by different three-dimensional blocks is then compiled according to the program information represented by each three-dimensional block to obtain the program to be executed.
或者,该立体块可以是执行设备所包含的功能部件的仿真立体块。进而用户可以更直观、形象的根据执行设备所包含的各功能组件将选择的各仿真立体块搭建得到与执行设备对应的组合体Alternatively, the three-dimensional block may be a simulated three-dimensional block that executes functional components included in the device. Furthermore, the user can construct each selected simulation three-dimensional block according to the functional components contained in the execution device more intuitively and vividly to obtain a combination corresponding to the execution device
上述执行设备包括:执行主体以及图像采集设备,图像采集设备可拆卸地安装于所述执行设备主体上的指定位置处;本实施例中,执行设备通过所述图像采集设备采集至少一个程序信息载体的图像。The above-mentioned execution device includes: an execution body and an image acquisition device. The image acquisition device is detachably installed at a designated position on the execution device body; in this embodiment, the execution device collects at least one program information carrier through the image acquisition device Image.
图6是本发明一个实施例提供的另一种编程方法的流程示意图。参照 图6所示,在所述采集至少一个程序信息载体的图像前,所述方法还包括如下步骤S50:Fig. 6 is a schematic flowchart of another programming method provided by an embodiment of the present invention. Referring to FIG. 6, before the image of at least one program information carrier is collected, the method further includes the following step S50:
S50、获取所述程序信息载体的位置信息,根据所述位置信息调节所述图像采集设备的拍摄方向朝向所述程序信息载体。S50. Acquire location information of the program information carrier, and adjust the shooting direction of the image acquisition device to face the program information carrier according to the location information.
本发明实施例中,执行设备可以自动获取待识别程序信息载体的位置信息,然后根据该位置信息调节图像采集设备的拍摄方向与程序信息载体所在的位置一致,进而可以实现,当图像采集设备的拍摄方向与待识别程序信息载体的位置不一致时,无需用户手动调节图像采集设备的图像采集的方向,提高了程序执行的效率。In the embodiment of the present invention, the execution device can automatically obtain the location information of the program information carrier to be identified, and then adjust the shooting direction of the image capture device to be consistent with the location of the program information carrier according to the location information, and then it can be realized that the image capture device When the shooting direction is inconsistent with the position of the program information carrier to be identified, the user does not need to manually adjust the image collection direction of the image collection device, which improves the efficiency of program execution.
本实施例中,上述可执行程序对应的组合体中的至少一个所述程序信息载体上设置有定位部件,该定位部件用于发出定位信号;执行设备上设置有与该定位部件对应的定位检测部件,执行设备还用于通过该定位检测部件检测该定位信号,并根据该定位信号对可执行程序对应的至少一个所述程序信息载体定位,以根据定位结果采集所述可执行程序对应的至少一个所述程序信息载体的图像。In this embodiment, at least one of the program information carriers in the combination corresponding to the executable program is provided with a positioning component, and the positioning component is used to send a positioning signal; the execution device is provided with a positioning detection corresponding to the positioning component Component, the execution device is also used to detect the positioning signal through the positioning detection component, and locate at least one program information carrier corresponding to the executable program according to the positioning signal, so as to collect at least one corresponding to the executable program according to the positioning result An image of the program information carrier.
上述执行设备通过定位检测部件检测该定位信号,根据该定位信号对程序信息载体或者由该程序信息载体构建的组合体进行定位,所要达到的目的是使该执行设备得到程序信息载体或者由该程序信息载体构建的组合体的位置信息,根据该位置信息调节拍摄方向,采集各程序信息载体的图像,提高识别的效率。The above-mentioned execution device detects the positioning signal through the positioning detection component, and locates the program information carrier or the combination constructed by the program information carrier according to the positioning signal. The goal to be achieved is to enable the execution device to obtain the program information carrier or use the program information carrier. According to the position information of the combination constructed by the information carrier, the shooting direction is adjusted according to the position information, and the image of each program information carrier is collected to improve the efficiency of recognition.
本实施例中,上述的定位部件可以是激光发射器,上述的定位检测部件可以是激光接收器,激光发射器用于在满足预设条件后持续进行激光发射,执行设备在移动过程中检测该激光信号,当接收到该激光信号以后,确定该激光发射器的位置信息,进而得到待识别程序信息载体的位置信息。In this embodiment, the above-mentioned positioning component may be a laser transmitter, and the above-mentioned positioning detection component may be a laser receiver. The laser transmitter is used for continuous laser emission after meeting preset conditions, and the execution device detects the laser during movement. Signal, after receiving the laser signal, determine the position information of the laser transmitter, and then obtain the position information of the program information carrier to be identified.
可选的,上述定位部件可以是设置于开始程序信息载体上和/或结束程序信息载体上,当用户构建组合体完毕以后,若需要执行设备识别该程序信息载体,则用户控制该定位部件开始工作,发出定位信号。并控制执行 设备检测该定位信号,实现对待识别信息载体的定位。Optionally, the above positioning component may be set on the start program information carrier and/or the end program information carrier. After the user builds the assembly, if the execution device needs to recognize the program information carrier, the user controls the positioning component to start Work and send out positioning signals. And control the execution device to detect the positioning signal to realize the positioning of the information carrier to be identified.
可选的,上述图像采集设备还包括:设于所述执行主体上的云台,所述云台用于支撑所述图像采集设备;该方法中,执行设备根据所述位置信息调节云台的姿态,以调节所述图像采集设备的拍摄方向朝向所述程序信息载体。Optionally, the aforementioned image acquisition device further includes: a pan/tilt provided on the execution subject, the pan/tilt is used to support the image acquisition device; in this method, the execution device adjusts the pan/tilt according to the position information Posture to adjust the shooting direction of the image acquisition device toward the program information carrier.
可选的,在所述图像采集设备用于采集至少一个所述程序信息载体的图像时,所述图像采集设备与执行设备主体之间的距离大于预设距离。Optionally, when the image capture device is used to capture at least one image of the program information carrier, the distance between the image capture device and the main body of the execution device is greater than a preset distance.
本发明一实施例中,所述方法还包括如下步骤A10:In an embodiment of the present invention, the method further includes the following step A10:
步骤A10、记录多个所述可执行程序,对记录的多个所述可执行程序进行重新编译,得到新的可执行程序。Step A10: Record a plurality of the executable programs, and recompile the recorded plurality of executable programs to obtain a new executable program.
可选的,上述执行设备还用于接收编辑指令,在接收到该编辑指令以后,根据所述编辑指令对存储的多个可执行程序进行重新编译,得到新的可执行程序。Optionally, the foregoing execution device is also used to receive an editing instruction, and after receiving the editing instruction, recompile multiple stored executable programs according to the editing instruction to obtain a new executable program.
进而本实施例中,在进行编程的过程中用户可以是通过多次进行选择不同的程序信息载体进行构建组合体,使执行设备编译得到多个可执行程序,执行设备将得到的多个可执行程序进行存储,并在执行设备接收到编辑指令以后,将该多个可执行程序进行重新编译,示例性的,该重新编译包括:将多个可执行程序按照各自生成的时间顺序或者其他指定的逻辑进行拼接,得到一个新的完整的可执行程序,然后继续对该可执行程序进行暂存或者是直接执行该可执行程序。Furthermore, in this embodiment, in the process of programming, the user may select different program information carriers multiple times to construct a combination, so that the execution device compiles multiple executable programs, and the execution device obtains multiple executable programs. The program is stored, and after the execution device receives the editing instruction, the multiple executable programs are recompiled. Exemplarily, the recompilation includes: the multiple executable programs are generated according to the time sequence of their respective generation or other specified The logic is spliced to obtain a new complete executable program, and then continue to temporarily store the executable program or execute the executable program directly.
示例性的,以执行设备为“无人车”产品为例,该无人车包括的功能部件有:云台、发射机构;用户在选择程序信息载体时,可以是根据不同的功能部件将要执行的操作分别进行选择对应的程序信息载体,执行设备根据用户选择的程序信息载体编译得到不同功能部件分别对应的可执行程序,并分别进行存储,在执行设备得到所有的功能部件分别对应的可执行程序以后,此时若接收到编辑指令,则将该所有的可执行程序进行重新编译得到一个新的完整的可执行程序,然后在满足执行条件的情况后执行该 新的程序信息。Exemplarily, taking the execution device as an "unmanned vehicle" product as an example, the unmanned vehicle includes functional components: PTZ and launching mechanism; when the user selects the program information carrier, it can be based on the different functional components to be executed The operation of selecting the corresponding program information carrier respectively, the execution device compiles the executable programs corresponding to different functional components according to the program information carrier selected by the user, and stores them separately, and obtains the executable programs corresponding to all the functional components in the execution device After the program is executed, if an editing instruction is received at this time, all the executable programs are recompiled to obtain a new complete executable program, and then the new program information is executed after the execution conditions are met.
比如,云台对应的可执行程序为云台绕yaw轴旋转20度,发射机构对应的可执行程序以3发/秒的速度连续射击3秒,则两个可执行程序拼接后,可以是诸如满足执行条件的情况下,发射机构以3发/秒的速度连续射击3秒后,再云台绕yaw轴旋转20度。For example, the executable program corresponding to the gimbal is that the gimbal rotates 20 degrees around the yaw axis, and the executable program corresponding to the launching mechanism shoots continuously for 3 seconds at a speed of 3 rounds/sec. After the two executable programs are spliced, it can be such When the execution conditions are met, the launching mechanism shoots continuously at a speed of 3 rounds per second for 3 seconds, and then the pan/tilt rotates 20 degrees around the yaw axis.
上述的编辑指令可以是由用户终端设备发送的,比如手机、电脑、遥控器等设备。The above-mentioned editing instructions may be sent by user terminal devices, such as mobile phones, computers, remote controls and other devices.
进而本发明实施例中,允许用户将执行设备的一个复杂的操作进行分割,有利于对用户的逻辑能力进行训练;并且能够满足在程序信息载体数量有限的情况下,实现复杂的可执行程序的编译。Furthermore, in the embodiment of the present invention, the user is allowed to divide a complex operation of the execution device, which is conducive to training the user's logical ability; and can meet the requirements of implementing complex executable programs under the condition that the number of program information carriers is limited. Compile.
可选的,上述方法还包括:输出所述可执行程序是否执行成功的结果信息。该输出的方式可以是包括:语音输出、光信号闪烁等方式。Optionally, the above method further includes: outputting result information about whether the executable program is successfully executed. The output mode may include: voice output, light signal flashing, etc.
进而本实施例中,通过执行设备直接输出可执行程序是否执行成功的结果信息,使得用户能够直观地判断程序执行的结果。并进一步的判断出用户所选择的程序信息载体是否正确以及各程序信息载体的搭建顺序是否正确等。Furthermore, in this embodiment, the execution device directly outputs the result information of whether the executable program is successfully executed, so that the user can intuitively judge the result of the program execution. And further judge whether the program information carrier selected by the user is correct and whether the build sequence of each program information carrier is correct.
可选的,上述执行设备包括一个或多个可拆卸连接的功能部件;Optionally, the foregoing execution device includes one or more detachably connected functional components;
所述功能部件用于在满足所述执行条件的情况下执行所述可执行程序。The functional component is used to execute the executable program when the execution condition is satisfied.
示例性的,以执行设备“无人车”为例,该无人车包括的功能部件有:底盘、云台、图像采集设备和发射机构。例如,当该执行设备在从采集的图像中识别出有程序信息载体所标识的程序信息为指示底盘转向时,该底盘功能部件会在满足执行条件的情况下执行对应的转向操作;当该执行设备在从采集的图像中识别出有程序信息载体所标识的程序信息为指示云台转向时,该云台功能部件会在满足执行条件的情况下执行对应的转向操作。Exemplarily, taking the execution device "unmanned vehicle" as an example, the unmanned vehicle includes functional components: a chassis, a pan-tilt, an image acquisition device, and a launch mechanism. For example, when the execution device recognizes from the collected images that the program information identified by the program information carrier indicates the steering of the chassis, the chassis functional component will perform the corresponding steering operation when the execution conditions are met; when the execution When the device recognizes from the collected image that the program information identified by the program information carrier indicates the direction of the pan/tilt, the functional component of the pan/tilt will perform the corresponding turning operation when the execution conditions are met.
本发明一实施例中,上述步骤:采集至少一个程序信息载体的图像,具体包括:In an embodiment of the present invention, the above step: collecting an image of at least one program information carrier specifically includes:
控制所述执行设备移动,并在移动的过程中采集至少一个程序信息载体的图像。The execution device is controlled to move, and an image of at least one program information carrier is collected during the movement.
进而本发明实施例中,可以控制执行设备移动,以在移动的过程中进行采集程序信息载体的图像,不仅能够锻炼用户对执行设备的移动控制,也无需用户进行手持图像采集设备进行采集图像,具有效率更高的优点。Furthermore, in the embodiment of the present invention, the execution device can be controlled to move to collect the image of the program information carrier during the movement, which not only exercises the user's movement control of the execution device, but also does not require the user to use a handheld image acquisition device to collect images. Has the advantage of higher efficiency.
图7是本发明一个实施例提供的一种程序执行设备的结构示意图。参照图7所示,该程序执行设备至少包括存储器702和处理器701;所述存储器702通过通信总线703和所述处理器701连接,用于存储所述处理器701可执行的计算机指令;所述处理器701用于从所述存储器702读取计算机指令以实现:Fig. 7 is a schematic structural diagram of a program execution device provided by an embodiment of the present invention. As shown in FIG. 7, the program execution device includes at least a memory 702 and a processor 701; the memory 702 is connected to the processor 701 through a communication bus 703, and is used to store computer instructions executable by the processor 701; The processor 701 is configured to read computer instructions from the memory 702 to implement:
采集至少一个程序信息载体的图像,并从采集的图像中识别出至少一个所述程序信息载体所标识的程序信息;Collecting images of at least one program information carrier, and identifying at least one program information identified by the program information carrier from the collected images;
根据识别到的程序信息编译得到可执行程序,以在满足执行条件的情况下执行所述可执行程序。The executable program is compiled according to the recognized program information, so as to execute the executable program when the execution condition is met.
可选的,上述程序信息载体的表面标识有所述程序信息。Optionally, the program information is marked on the surface of the program information carrier.
可选的,上述程序信息包括:用户自定义信息。Optionally, the foregoing program information includes: user-defined information.
可选的,上述程序信息载体上设置有第一标识;Optionally, a first identifier is set on the program information carrier;
所述第一标识用于被所述执行设备检测以识别所述程序信息载体,并在识别所述程序信息载体后识别所述程序信息载体所标识的程序信息。The first identifier is used to be detected by the execution device to identify the program information carrier, and after identifying the program information carrier, identify the program information identified by the program information carrier.
可选的,上述程序信息载体上设置有第二标识,所述第二标识用于记录所述程序信息载体所标识的程序信息;Optionally, a second identifier is provided on the program information carrier, and the second identifier is used to record the program information identified by the program information carrier;
所述处理器701还用于从所述存储器702读取计算机指令以实现:The processor 701 is further configured to read computer instructions from the memory 702 to implement:
读取所述图像中的所述第二标识,得到所述第二标识记录的程序信息。The second mark in the image is read to obtain the program information recorded by the second mark.
可选的,上述程序信息载体之间能够进行可拆卸地连接,以得到不同内容的可执行程序。Optionally, the above-mentioned program information carriers can be detachably connected to obtain executable programs with different contents.
可选的,上述可执行程序中指示的各个操作的顺序与所述程序信息载体之间的连接顺序相关。Optionally, the sequence of the operations indicated in the executable program is related to the sequence of connection between the program information carriers.
可选的,上述程序信息载体,包括:具有特定形状的立体块。Optionally, the above program information carrier includes: a three-dimensional block with a specific shape.
可选的,上述程序信息载体包括:所述执行设备所包含的功能部件的仿真立体块。Optionally, the above-mentioned program information carrier includes: a simulated three-dimensional block of a functional component included in the execution device.
可选的,上述程序执行设备包括:执行主体以及图像采集设备,所述图像采集设备可拆卸地安装于所述程序执行设备主体上的指定位置处;Optionally, the program execution device described above includes: an execution body and an image acquisition device, the image acquisition device being detachably installed at a designated position on the program execution device body;
所述处理器701还用于从所述存储器702读取计算机指令以实现:The processor 701 is further configured to read computer instructions from the memory 702 to implement:
通过所述图像采集设备采集至少一个程序信息载体的图像。The image of at least one program information carrier is acquired by the image acquisition device.
可选的,所述处理器701还用于从所述存储器702读取计算机指令以实现:Optionally, the processor 701 is further configured to read computer instructions from the memory 702 to implement:
获取所述程序信息载体的位置信息,根据所述位置信息调节所述图像采集设备的拍摄方向朝向所述程序信息载体。The position information of the program information carrier is acquired, and the shooting direction of the image acquisition device is adjusted to the program information carrier according to the position information.
可选的,所述图像采集设备还包括:设于所述执行主体上的云台,所述云台用于支撑所述图像采集设备;Optionally, the image capture device further includes: a pan/tilt provided on the execution subject, the pan/tilt used to support the image capture device;
所述处理器701还用于从所述存储器702读取计算机指令以实现:The processor 701 is further configured to read computer instructions from the memory 702 to implement:
根据所述位置信息调节云台的姿态,以调节所述图像采集设备的拍摄方向朝向所述程序信息载体。Adjust the posture of the pan/tilt according to the position information to adjust the shooting direction of the image acquisition device toward the program information carrier.
可选的,在所述图像采集设备用于采集至少一个所述程序信息载体的图像时,所述图像采集设备与所述程序执行设备主体之间的距离大于预设距离。Optionally, when the image capture device is used to capture at least one image of the program information carrier, the distance between the image capture device and the main body of the program execution device is greater than a preset distance.
可选的,所述程序信息载体包括:开始程序信息载体和结束程序信息载体;Optionally, the program information carrier includes: a start program information carrier and an end program information carrier;
所述开始程序信息载体用于标识所述可执行程序开始的程序信息;The start program information carrier is used to identify program information for the start of the executable program;
所述结束程序信息载体用于标识所述可执行程序结束的程序信息。。The end program information carrier is used to identify the end of the executable program program information. .
可选的,所述可执行程序对应的至少一个所述程序信息载体上设置有定位部件,所述定位部件用于发出定位信号;Optionally, at least one of the program information carriers corresponding to the executable program is provided with a positioning component, and the positioning component is used to send a positioning signal;
所述程序执行设备上设置有与所述定位部件对应的定位检测部件,所述处理器701还用于从所述存储器702读取计算机指令以实现:The program execution device is provided with a positioning detection component corresponding to the positioning component, and the processor 701 is further configured to read computer instructions from the memory 702 to realize:
通过所述定位检测部件检测所述定位信号,并根据所述定位信号对所述可执行程序对应的至少一个所述程序信息载体定位;Detecting the positioning signal by the positioning detection component, and positioning at least one program information carrier corresponding to the executable program according to the positioning signal;
根据定位结果采集所述可执行程序对应的至少一个所述程序信息载体的图像。Collecting at least one image of the program information carrier corresponding to the executable program according to the positioning result.
可选的,所述处理器701还用于从所述存储器702读取计算机指令以实现:Optionally, the processor 701 is further configured to read computer instructions from the memory 702 to implement:
对记录的多个所述可执行程序进行重新编译,得到新的可执行程序。Recompiling the recorded multiple executable programs to obtain a new executable program.
可选的,所述处理器701还用于从所述存储器702读取计算机指令以实现:Optionally, the processor 701 is further configured to read computer instructions from the memory 702 to implement:
接收编辑指令;Receive editing instructions;
所述对记录的多个所述可执行程序进行重新编译,得到新的可执行程序,包括:The recompiling of the plurality of recorded executable programs to obtain a new executable program includes:
根据所述编辑指令对多个所述可执行程序进行重新编译,得到新的可执行程序。The multiple executable programs are recompiled according to the editing instructions to obtain new executable programs.
可选的,所述处理器701还用于从所述存储器702读取计算机指令以实现:Optionally, the processor 701 is further configured to read computer instructions from the memory 702 to implement:
输出所述可执行程序是否执行成功的结果信息。Output information about whether the executable program is successfully executed.
可选的,所述执行设备包括一个或多个可拆卸连接的功能部件;Optionally, the execution device includes one or more detachably connected functional components;
所述功能部件用于在满足所述执行条件的情况下执行所述可执行程序。The functional component is used to execute the executable program when the execution condition is satisfied.
可选的,所述程序执行设备包括:可移动平台。Optionally, the program execution device includes: a movable platform.
可选的,所述处理器701还用于从所述存储器702读取计算机指令以实现:Optionally, the processor 701 is further configured to read computer instructions from the memory 702 to implement:
控制所述执行设备移动,并在移动的过程中采集至少一个程序信息载体的图像。The execution device is controlled to move, and an image of at least one program information carrier is collected during the movement.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性 的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the device embodiment, since it basically corresponds to the method embodiment, the relevant part can refer to the part of the description of the method embodiment. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement it without creative work.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between. The terms "include", "include", or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements that are not explicitly listed. Elements, or also include elements inherent to such processes, methods, articles, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other same elements in the process, method, article, or equipment including the element.
以上对本发明实施例所提供的方法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The methods and devices provided by the embodiments of the present invention are described in detail above. Specific examples are used in this article to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understand the methods and methods of the present invention. Core idea; At the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as a limitation of the present invention .

Claims (62)

  1. 一种编程系统,其特征在于,包括:A programming system, characterized in that it comprises:
    若干程序信息载体,用于标识程序信息;Several program information carriers, used to identify program information;
    执行设备,用于采集至少一个所述程序信息载体的图像,并从采集的图像中识别出至少一个所述程序信息载体所标识的程序信息;根据识别到的程序信息编译得到可执行程序,以在满足执行条件的情况下执行所述可执行程序。The execution device is used for collecting at least one image of the program information carrier, and identifying at least one program information identified by the program information carrier from the collected image; compiling the executable program according to the recognized program information, and The executable program is executed when the execution conditions are met.
  2. 根据权利要求1所述的系统,其特征在于,所述程序信息载体的表面标识有所述程序信息。The system according to claim 1, wherein the program information is marked on the surface of the program information carrier.
  3. 根据权利要求1或2所述的系统,其特征在于,所述程序信息包括:用户自定义信息。The system according to claim 1 or 2, wherein the program information includes: user-defined information.
  4. 根据权利要求1或2所述的系统,其特征在于,所述程序信息载体上设置有第一标识;The system according to claim 1 or 2, wherein the program information carrier is provided with a first identifier;
    所述第一标识用于被所述执行设备检测以识别所述程序信息载体,并在识别所述程序信息载体后识别所述程序信息载体所标识的程序信息。The first identifier is used to be detected by the execution device to identify the program information carrier, and after identifying the program information carrier, identify the program information identified by the program information carrier.
  5. 根据权利要求1或2所述的系统,其特征在于,所述程序信息载体上设置有第二标识,所述第二标识用于记录所述程序信息载体所标识的程序信息;The system according to claim 1 or 2, wherein a second identifier is provided on the program information carrier, and the second identifier is used to record the program information identified by the program information carrier;
    所述执行设备用于读取所述图像中的所述第二标识,得到所述第二标识记录的程序信息。The execution device is used to read the second identifier in the image to obtain program information recorded by the second identifier.
  6. 根据权利要求1或2所述的系统,其特征在于,所述程序信息载体之间能够可拆卸地连接,以得到不同内容的可执行程序。The system according to claim 1 or 2, wherein the program information carriers can be detachably connected to each other to obtain executable programs with different contents.
  7. 根据权利要求6所述的系统,其特征在于,所述可执行程序中指示的各个操作的顺序与所述程序信息载体之间的连接顺序相关。The system according to claim 6, wherein the sequence of the operations indicated in the executable program is related to the connection sequence between the program information carriers.
  8. 根据权利要求1或2所述的系统,其特征在于,所述程序信息载体包括:具有预定形状的立体块。The system according to claim 1 or 2, wherein the program information carrier comprises: a three-dimensional block having a predetermined shape.
  9. 根据权利要求8所述的系统,其特征在于,所述程序信息载体包括: 所述执行设备所包含的功能部件的仿真立体块。8. The system according to claim 8, wherein the program information carrier comprises: simulated three-dimensional blocks of functional components included in the execution device.
  10. 根据权利要求1或2所述的系统,其特征在于,所述执行设备包括:执行主体以及图像采集设备,所述图像采集设备可拆卸地安装于所述执行主体上的指定位置处;The system according to claim 1 or 2, wherein the execution device comprises: an execution body and an image acquisition device, and the image acquisition device is detachably installed at a designated position on the execution body;
    所述执行设备用于通过所述图像采集设备采集至少一个所述程序信息载体的图像。The execution device is used to collect at least one image of the program information carrier through the image acquisition device.
  11. 根据权利要求10所述的系统,其特征在于,所述执行设备还用于获取所述程序信息载体的位置信息,并根据所述位置信息调节所述图像采集设备的拍摄方向朝向所述程序信息载体,以采集所述程序信息载体的图像。The system according to claim 10, wherein the execution device is further configured to obtain location information of the program information carrier, and adjust the shooting direction of the image acquisition device to the program information according to the location information Carrier to collect the image of the program information carrier.
  12. 根据权利要求11所述的系统,其特征在于,所述执行设备还包括:设于所述执行主体上的云台,所述云台用于支撑所述图像采集设备;The system according to claim 11, wherein the execution device further comprises: a pan/tilt provided on the execution body, the pan/tilt is used to support the image acquisition device;
    所述执行设备用于根据所述位置信息调节所述云台的姿态,以调节所述图像采集设备的拍摄方向朝向所述程序信息载体。The execution device is used to adjust the posture of the pan/tilt according to the position information to adjust the shooting direction of the image acquisition device toward the program information carrier.
  13. 根据权利要求10所述的系统,其特征在于,在所述图像采集设备用于采集至少一个所述程序信息载体的图像时,所述图像采集设备与执行主体之间的距离大于预设距离。The system according to claim 10, wherein when the image acquisition device is used to acquire at least one image of the program information carrier, the distance between the image acquisition device and the execution subject is greater than a preset distance.
  14. 根据权利要求1或2所述的系统,其特征在于,所述程序信息载体包括:开始程序信息载体和结束程序信息载体;The system according to claim 1 or 2, wherein the program information carrier comprises: a start program information carrier and an end program information carrier;
    所述开始程序信息载体用于标识所述可执行程序开始的程序信息;The start program information carrier is used to identify program information for the start of the executable program;
    所述结束程序信息载体用于标识所述可执行程序结束的程序信息。The end program information carrier is used to identify the end of the executable program program information.
  15. 根据权利要求1或2所述的系统,其特征在于,所述可执行程序对应的至少一个所述程序信息载体上设置有定位部件,所述定位部件用于发出定位信号;The system according to claim 1 or 2, wherein at least one of the program information carriers corresponding to the executable program is provided with a positioning component, and the positioning component is used to send a positioning signal;
    所述执行设备上设置有与所述定位部件对应的定位检测部件,所述执行设备还用于通过所述定位检测部件检测所述定位信号,并根据所述定位信号对所述可执行程序对应的至少一个所述程序信息载体定位,以根据定 位结果采集所述可执行程序对应的至少一个所述程序信息载体的图像。The execution device is provided with a positioning detection component corresponding to the positioning component, and the execution device is further configured to detect the positioning signal through the positioning detection component, and correspond to the executable program according to the positioning signal At least one of the program information carriers is positioned to collect images of at least one of the program information carriers corresponding to the executable program according to the positioning result.
  16. 根据权利要求1或2所述的系统,其特征在于,所述执行设备还用于记录多个所述可执行程序,并对多个所述可执行程序进行重新编译,得到新的可执行程序。The system according to claim 1 or 2, wherein the execution device is also used to record a plurality of the executable programs, and recompile the plurality of executable programs to obtain a new executable program .
  17. 根据权利要求16所述的系统,其特征在于,所述执行设备还用于接收编辑指令,以根据所述编辑指令对多个所述可执行程序进行重新编译,得到新的可执行程序。The system according to claim 16, wherein the execution device is further configured to receive an editing instruction, so as to recompile a plurality of the executable programs according to the editing instruction to obtain a new executable program.
  18. 根据权利要求1或2所述的系统,其特征在于,所述执行设备还用于输出所述可执行程序是否执行成功的结果信息。The system according to claim 1 or 2, wherein the execution device is further configured to output result information of whether the executable program is successfully executed.
  19. 根据权利要求1或2所述的系统,其特征在于,所述执行设备包括一个或多个可拆卸连接的功能部件;The system according to claim 1 or 2, wherein the execution device includes one or more detachably connected functional components;
    所述功能部件用于在满足所述执行条件的情况下执行所述可执行程序。The functional component is used to execute the executable program when the execution condition is satisfied.
  20. 根据权利要求1所述的系统,其特征在于,所述执行设备包括:可移动平台。The system according to claim 1, wherein the execution device comprises a movable platform.
  21. 一种编程方法,其特征在于,所述方法应用于程序的执行设备,包括:A programming method, characterized in that the method is applied to a program execution device, and includes:
    采集至少一个程序信息载体的图像,并从采集的图像中识别出至少一个所述程序信息载体所标识的程序信息;Collecting images of at least one program information carrier, and identifying at least one program information identified by the program information carrier from the collected images;
    根据识别到的程序信息编译得到可执行程序,以在满足执行条件的情况下执行所述可执行程序。The executable program is compiled according to the recognized program information, so as to execute the executable program when the execution condition is met.
  22. 根据权利要求21所述的方法,其特征在于,所述程序信息载体的表面标识有所述程序信息。The method according to claim 21, wherein the program information is marked on the surface of the program information carrier.
  23. 根据权利要求21或22所述的方法,其特征在于,所述程序信息包括:用户自定义信息。The method according to claim 21 or 22, wherein the program information comprises: user-defined information.
  24. 根据权利要求21或22所述的方法,其特征在于,所述程序信息载体上设置有第一标识;The method according to claim 21 or 22, wherein the program information carrier is provided with a first identifier;
    所述第一标识用于被所述执行设备检测以识别所述程序信息载体,并在识别所述程序信息载体后识别所述程序信息载体所标识的程序信息。The first identifier is used to be detected by the execution device to identify the program information carrier, and after identifying the program information carrier, identify the program information identified by the program information carrier.
  25. 根据权利要求21或22所述的方法,其特征在于,所述程序信息载体上设置有第二标识,所述第二标识用于记录所述程序信息载体所标识的程序信息;The method according to claim 21 or 22, wherein a second identifier is provided on the program information carrier, and the second identifier is used to record the program information identified by the program information carrier;
    所述从采集的所述图像中识别出至少一个所述程序信息载体所标识的程序信息,包括:The identifying at least one program information identified by the program information carrier from the collected image includes:
    读取所述图像中的所述第二标识,得到所述第二标识记录的程序信息。The second mark in the image is read to obtain the program information recorded by the second mark.
  26. 根据权利要求21或22述的方法,其特征在于,所述程序信息载体之间能够进行可拆卸地连接,以得到不同内容的可执行程序。The method according to claim 21 or 22, wherein the program information carriers can be detachably connected to each other to obtain executable programs with different contents.
  27. 根据权利要求26所述的系统,其特征在于,所述可执行程序中指示的各个操作的顺序与所述程序信息载体之间的连接顺序相关。The system according to claim 26, wherein the sequence of the operations indicated in the executable program is related to the connection sequence between the program information carriers.
  28. 根据权利要求21或22所述的方法,其特征在于,所述程序信息载体,包括:具有特定形状的立体块。The method according to claim 21 or 22, wherein the program information carrier comprises: a three-dimensional block with a specific shape.
  29. 根据权利要求28所述的方法,其特征在于,所述程序信息载体包括:所述执行设备所包含的功能部件的仿真立体块。28. The method according to claim 28, wherein the program information carrier comprises: a simulated three-dimensional block of a functional component included in the execution device.
  30. 根据权利要求21或22所述的方法,其特征在于,所述执行设备包括:执行主体以及图像采集设备,所述图像采集设备可拆卸地安装于所述执行设备主体上的指定位置处;The method according to claim 21 or 22, wherein the execution device comprises: an execution body and an image acquisition device, the image acquisition device being detachably installed at a designated position on the execution device body;
    所述采集至少一个程序信息载体的图像,包括:The collecting an image of at least one program information carrier includes:
    通过所述图像采集设备采集至少一个程序信息载体的图像。The image of at least one program information carrier is acquired by the image acquisition device.
  31. 根据权利要求21所述的方法,其特征在于,在所述采集至少一个程序信息载体的图像前,所述方法还包括:The method according to claim 21, characterized in that, before said collecting an image of at least one program information carrier, the method further comprises:
    获取所述程序信息载体的位置信息,根据所述位置信息调节所述图像采集设备的拍摄方向朝向所述程序信息载体。The position information of the program information carrier is acquired, and the shooting direction of the image acquisition device is adjusted to the program information carrier according to the position information.
  32. 根据权利要求31所述的方法,其特征在于,所述图像采集设备还包括:设于所述执行主体上的云台,所述云台用于支撑所述图像采集设备;The method according to claim 31, wherein the image acquisition device further comprises: a pan/tilt provided on the execution subject, the pan/tilt used to support the image acquisition device;
    所述根据所述位置信息调节所述图像采集设备的拍摄方向朝向所述程序信息载体,包括:The adjusting the shooting direction of the image acquisition device toward the program information carrier according to the position information includes:
    根据所述位置信息调节云台的姿态,以调节所述图像采集设备的拍摄方向朝向所述程序信息载体。Adjust the posture of the pan/tilt according to the position information to adjust the shooting direction of the image acquisition device toward the program information carrier.
  33. 根据权利要求30所述的方法,其特征在于,在所述图像采集设备用于采集至少一个所述程序信息载体的图像时,所述图像采集设备与执行设备主体之间的距离大于预设距离。The method according to claim 30, wherein when the image capture device is used to capture at least one image of the program information carrier, the distance between the image capture device and the main body of the execution device is greater than a preset distance .
  34. 根据权利要求21或22所述的方法,其特征在于,所述程序信息载体包括:开始程序信息载体和结束程序信息载体;The method according to claim 21 or 22, wherein the program information carrier comprises: a start program information carrier and an end program information carrier;
    所述开始程序信息载体用于标识所述可执行程序开始的程序信息;The start program information carrier is used to identify program information for the start of the executable program;
    所述结束程序信息载体用于标识所述可执行程序结束的程序信息。The end program information carrier is used to identify the end of the executable program program information.
  35. 根据权利要求21或22所述的方法,其特征在于,所述可执行程序对应的至少一个所述程序信息载体上设置有定位部件,所述定位部件用于发出定位信号;The method according to claim 21 or 22, wherein at least one of the program information carriers corresponding to the executable program is provided with a positioning component, and the positioning component is used to send a positioning signal;
    所述执行设备上设置有与所述定位部件对应的定位检测部件,在所述采集至少一个程序信息载体的图像之前,所述方法包括:The execution device is provided with a positioning detection component corresponding to the positioning component, and before the collecting an image of at least one program information carrier, the method includes:
    通过所述定位检测部件检测所述定位信号,并根据所述定位信号对所述可执行程序对应的至少一个所述程序信息载体定位;Detecting the positioning signal by the positioning detection component, and positioning at least one program information carrier corresponding to the executable program according to the positioning signal;
    所述采集至少一个程序信息载体的图像,包括:The collecting an image of at least one program information carrier includes:
    根据定位结果采集所述可执行程序对应的至少一个所述程序信息载体的图像。Collecting at least one image of the program information carrier corresponding to the executable program according to the positioning result.
  36. 根据权利要求21或22所述的方法,其特征在于,所述方法还包括:The method according to claim 21 or 22, wherein the method further comprises:
    对记录的多个所述可执行程序进行重新编译,得到新的可执行程序。Recompiling the recorded multiple executable programs to obtain a new executable program.
  37. 根据权利要求36所述的方法,其特征在于,所述方法还包括:The method of claim 36, wherein the method further comprises:
    接收编辑指令;Receive editing instructions;
    所述对记录的多个所述可执行程序进行重新编译,得到新的可执行程 序,包括:The recompiling of the plurality of recorded executable programs to obtain a new executable program includes:
    根据所述编辑指令对多个所述可执行程序进行重新编译,得到新的可执行程序。The multiple executable programs are recompiled according to the editing instructions to obtain new executable programs.
  38. 根据权利要求21或22所述的方法,其特征在于,所述方法还包括:The method according to claim 21 or 22, wherein the method further comprises:
    输出所述可执行程序是否执行成功的结果信息。Output information about whether the executable program is successfully executed.
  39. 根据权利要求21所述的方法,其特征在于,所述执行设备包括一个或多个可拆卸连接的功能部件;The method according to claim 21, wherein the execution device comprises one or more detachably connected functional components;
    所述功能部件用于在满足所述执行条件的情况下执行所述可执行程序。The functional component is used to execute the executable program when the execution condition is satisfied.
  40. 根据权利要求21或22所述的方法,其特征在于,所述执行设备包括:可移动平台。The method according to claim 21 or 22, wherein the execution device comprises: a movable platform.
  41. 根据权利要求40所述的方法,其特征在于,所述采集至少一个程序信息载体的图像,包括:The method according to claim 40, wherein said collecting an image of at least one program information carrier comprises:
    控制所述执行设备移动,并在移动的过程中采集至少一个程序信息载体的图像。The execution device is controlled to move, and an image of at least one program information carrier is collected during the movement.
  42. 一种程序执行设备,其特征在于,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现:A program execution device, characterized by comprising: a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program:
    采集至少一个程序信息载体的图像,并从采集的图像中识别出至少一个所述程序信息载体所标识的程序信息;Collecting images of at least one program information carrier, and identifying at least one program information identified by the program information carrier from the collected images;
    根据识别到的程序信息编译得到可执行程序,以在满足执行条件的情况下执行所述可执行程序。The executable program is compiled according to the recognized program information, so as to execute the executable program when the execution condition is met.
  43. 根据权利要求42所述的程序执行设备,其特征在于,所述程序信息载体的表面标识有所述程序信息。The program execution device according to claim 42, wherein the program information is marked on the surface of the program information carrier.
  44. 根据权利要求41或42所述的程序执行设备,其特征在于,所述程序信息包括:用户自定义信息。The program execution device according to claim 41 or 42, wherein the program information includes: user-defined information.
  45. 根据权利要求41或42所述的程序执行设备,其特征在于,所述程序信息载体上设置有第一标识;The program execution device according to claim 41 or 42, wherein the program information carrier is provided with a first identifier;
    所述第一标识用于被所述执行设备检测以识别所述程序信息载体,并在识别所述程序信息载体后识别所述程序信息载体所标识的程序信息。The first identifier is used to be detected by the execution device to identify the program information carrier, and after identifying the program information carrier, identify the program information identified by the program information carrier.
  46. 根据权利要求41或42所述的程序执行设备,其特征在于,所述程序信息载体上设置有第二标识,所述第二标识用于记录所述程序信息载体所标识的程序信息;The program execution device according to claim 41 or 42, wherein a second identifier is provided on the program information carrier, and the second identifier is used to record the program information identified by the program information carrier;
    所述从采集的所述图像中识别出至少一个所述程序信息载体所标识的程序信息,包括:The identifying at least one program information identified by the program information carrier from the collected image includes:
    读取所述图像中的所述第二标识,得到所述第二标识记录的程序信息。The second mark in the image is read to obtain the program information recorded by the second mark.
  47. 根据权利要求41或42所述的程序执行设备,其特征在于,所述程序信息载体之间能够进行可拆卸地连接,以得到不同内容的可执行程序。The program execution device according to claim 41 or 42, wherein the program information carriers can be detachably connected to each other to obtain executable programs with different contents.
  48. 根据权利要求47所述的程序执行设备,其特征在于,所述可执行程序中指示的各个操作的顺序与所述程序信息载体之间的连接顺序相关。The program execution device according to claim 47, wherein the sequence of the operations indicated in the executable program is related to the connection sequence between the program information carriers.
  49. 根据权利要求41或42所述的程序执行设备,其特征在于,所述程序信息载体,包括:具有特定形状的立体块。The program execution device according to claim 41 or 42, wherein the program information carrier comprises: a three-dimensional block with a specific shape.
  50. 根据权利要求49所述的程序执行设备,其特征在于,所述程序信息载体包括:所述执行设备所包含的功能部件的仿真立体块。The program execution device according to claim 49, wherein the program information carrier comprises: a simulated three-dimensional block of functional components included in the execution device.
  51. 根据权利要求41或42所述的程序执行设备,其特征在于,所述程序执行设备包括:执行主体以及图像采集设备,所述图像采集设备可拆卸地安装于所述程序执行设备主体上的指定位置处;The program execution device according to claim 41 or 42, wherein the program execution device comprises: an execution body and an image acquisition device, and the image acquisition device is detachably installed on the designated program execution device body. Location
    所述采集至少一个程序信息载体的图像,包括:The collecting an image of at least one program information carrier includes:
    通过所述图像采集设备采集至少一个程序信息载体的图像。The image of at least one program information carrier is acquired by the image acquisition device.
  52. 根据权利要求41所述的程序执行设备,其特征在于,所述处理器还用于执行所述计算机程序时实现:The program execution device according to claim 41, wherein the processor is further configured to implement when executing the computer program:
    获取所述程序信息载体的位置信息,根据所述位置信息调节所述图像采集设备的拍摄方向朝向所述程序信息载体。The position information of the program information carrier is acquired, and the shooting direction of the image acquisition device is adjusted to the program information carrier according to the position information.
  53. 根据权利要求52所述的程序执行设备,其特征在于,所述图像采集设备还包括:设于所述执行主体上的云台,所述云台用于支撑所述图像采集设备;The program execution device according to claim 52, wherein the image acquisition device further comprises: a pan/tilt provided on the execution subject, the pan/tilt is used to support the image acquisition device;
    所述处理器还用于执行所述计算机程序时实现:The processor is also used to implement when executing the computer program:
    根据所述位置信息调节云台的姿态,以调节所述图像采集设备的拍摄方向朝向所述程序信息载体。Adjust the posture of the pan/tilt according to the position information to adjust the shooting direction of the image acquisition device toward the program information carrier.
  54. 根据权利要求51所述的程序执行设备,其特征在于,在所述图像采集设备用于采集至少一个所述程序信息载体的图像时,所述图像采集设备与所述程序执行设备主体之间的距离大于预设距离。The program execution device according to claim 51, wherein when the image acquisition device is used to acquire at least one image of the program information carrier, the image acquisition device and the main body of the program execution device The distance is greater than the preset distance.
  55. 根据权利要求41或42所述的程序执行设备,其特征在于,所述程序信息载体包括:开始程序信息载体和结束程序信息载体;The program execution device according to claim 41 or 42, wherein the program information carrier comprises: a start program information carrier and an end program information carrier;
    所述开始程序信息载体用于标识所述可执行程序开始的程序信息;The start program information carrier is used to identify program information for the start of the executable program;
    所述结束程序信息载体用于标识所述可执行程序结束的程序信息。。The end program information carrier is used to identify the end of the executable program program information. .
  56. 根据权利要求41或42所述的程序执行设备,其特征在于,所述可执行程序对应的至少一个所述程序信息载体上设置有定位部件,所述定位部件用于发出定位信号;The program execution device according to claim 41 or 42, wherein at least one of the program information carriers corresponding to the executable program is provided with a positioning component, and the positioning component is used to send a positioning signal;
    所述程序执行设备上设置有与所述定位部件对应的定位检测部件,所述处理器还用于执行所述计算机程序以实现:The program execution device is provided with a positioning detection component corresponding to the positioning component, and the processor is further configured to execute the computer program to realize:
    通过所述定位检测部件检测所述定位信号,并根据所述定位信号对所述可执行程序对应的至少一个所述程序信息载体定位;Detecting the positioning signal by the positioning detection component, and positioning at least one program information carrier corresponding to the executable program according to the positioning signal;
    根据定位结果采集所述可执行程序对应的至少一个所述程序信息载体的图像。Collecting at least one image of the program information carrier corresponding to the executable program according to the positioning result.
  57. 根据权利要求41或42所述的程序执行设备,其特征在于,所述处理器还用于执行所述计算机程序以实现:The program execution device according to claim 41 or 42, wherein the processor is further configured to execute the computer program to realize:
    对记录的多个所述可执行程序进行重新编译,得到新的可执行程序。Recompiling the recorded multiple executable programs to obtain a new executable program.
  58. 根据权利要求57所述的程序执行设备,其特征在于,所述处理器还用于执行所述计算机程序以实现:The program execution device according to claim 57, wherein the processor is further configured to execute the computer program to realize:
    接收编辑指令;Receive editing instructions;
    所述对记录的多个所述可执行程序进行重新编译,得到新的可执行程序,包括:The recompiling of the plurality of recorded executable programs to obtain a new executable program includes:
    根据所述编辑指令对多个所述可执行程序进行重新编译,得到新的可执行程序。The multiple executable programs are recompiled according to the editing instructions to obtain new executable programs.
  59. 根据权利要求41或42所述的程序执行设备,其特征在于,所述处理器还用于执行所述计算机程序以实现:The program execution device according to claim 41 or 42, wherein the processor is further configured to execute the computer program to realize:
    输出所述可执行程序是否执行成功的结果信息。Output information about whether the executable program is successfully executed.
  60. 根据权利要求41所述的程序执行设备,其特征在于,所述执行设备包括一个或多个可拆卸连接的功能部件;The program execution device according to claim 41, wherein the execution device comprises one or more detachably connected functional components;
    所述功能部件用于在满足所述执行条件的情况下执行所述可执行程序。The functional component is used to execute the executable program when the execution condition is satisfied.
  61. 根据权利要求41或42所述的程序执行设备,其特征在于,所述程序执行设备包括:可移动平台。The program execution device according to claim 41 or 42, wherein the program execution device comprises: a movable platform.
  62. 根据权利要求61所述的程序执行设备,其特征在于,所述处理器还用于执行所述计算机程序以实现:The program execution device according to claim 61, wherein the processor is further configured to execute the computer program to realize:
    控制所述执行设备移动,并在移动的过程中采集至少一个程序信息载体的图像。The execution device is controlled to move, and an image of at least one program information carrier is collected during the movement.
PCT/CN2019/098754 2019-07-31 2019-07-31 Programming system and method, and program execution device WO2021016972A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980032885.4A CN112189185A (en) 2019-07-31 2019-07-31 Programming system, method and program execution device
PCT/CN2019/098754 WO2021016972A1 (en) 2019-07-31 2019-07-31 Programming system and method, and program execution device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/098754 WO2021016972A1 (en) 2019-07-31 2019-07-31 Programming system and method, and program execution device

Publications (1)

Publication Number Publication Date
WO2021016972A1 true WO2021016972A1 (en) 2021-02-04

Family

ID=73919886

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/098754 WO2021016972A1 (en) 2019-07-31 2019-07-31 Programming system and method, and program execution device

Country Status (2)

Country Link
CN (1) CN112189185A (en)
WO (1) WO2021016972A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113176894B (en) * 2021-04-29 2023-06-13 华人运通(上海)云计算科技有限公司 Control method and device of vehicle control system, storage medium, equipment and vehicle
CN115445218B (en) * 2022-09-05 2024-07-23 上海布鲁可教育科技有限公司 Image processing method and instruction card structure in hunting toy

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102483814A (en) * 2009-08-31 2012-05-30 西门子公司 Method of assistance in the planning of a technical system
CN106139614A (en) * 2016-07-22 2016-11-23 苏州乐派特机器人有限公司 A kind of method for gaming utilizing material objectization programming operation to carry out
US20170190052A1 (en) * 2014-06-03 2017-07-06 ArtiMinds Robotics GmbH Method and system for programming a robot
CN108804098A (en) * 2018-05-23 2018-11-13 骅星科技发展有限公司 A kind of click drawing type programmable control method and its software systems
CN109814875A (en) * 2017-12-12 2019-05-28 上海葡萄纬度科技有限公司 Program the method and system reversely programmed, the equipment, medium of toy

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102483814A (en) * 2009-08-31 2012-05-30 西门子公司 Method of assistance in the planning of a technical system
US20170190052A1 (en) * 2014-06-03 2017-07-06 ArtiMinds Robotics GmbH Method and system for programming a robot
CN106139614A (en) * 2016-07-22 2016-11-23 苏州乐派特机器人有限公司 A kind of method for gaming utilizing material objectization programming operation to carry out
CN109814875A (en) * 2017-12-12 2019-05-28 上海葡萄纬度科技有限公司 Program the method and system reversely programmed, the equipment, medium of toy
CN108804098A (en) * 2018-05-23 2018-11-13 骅星科技发展有限公司 A kind of click drawing type programmable control method and its software systems

Also Published As

Publication number Publication date
CN112189185A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN104828256B (en) A kind of intelligent multi-control flight capture apparatus and flight control method thereof
McLurkin et al. A low-cost multi-robot system for research, teaching, and outreach
CN210200069U (en) Programmable robot
US20180349700A1 (en) Augmented reality smartglasses for use at cultural sites
CN106164562A (en) Promote that location and displacement calculate the bracket of equipment
US20170053550A1 (en) Education System using Connected Toys
CN110825121B (en) Control device and unmanned aerial vehicle control method
WO2021016972A1 (en) Programming system and method, and program execution device
CN204697171U (en) A kind of intelligent multi-control flight capture apparatus
CN103309244B (en) One owes to drive unmanned boat semi-physical system and dedicated emulated method thereof
CN111168691A (en) Robot control method, control system and robot
CN113442134A (en) Robot programming control system
CN110237545A (en) A kind of video frequency remote-control method, remote controler and remote-control toy
JP2003136455A (en) Robot system, remote control device and remote control method, and robot device and control method thereof
EP3437705B1 (en) Interactive crafting toy system
KR102477613B1 (en) Mission execution method using coding learning tools
KR102477614B1 (en) Color sensing mission execution method in coding learning tools
CN106669143B (en) Game paddle
KR102514186B1 (en) Tilt movement mission execution method in coding learning tools
KR102488768B1 (en) Grid mission execution method in coding learning tools
Dang et al. Design of a new cost-effective head for a low-cost humanoid robot
KR102488769B1 (en) Route movement mission execution method in coding learning tools
KR102135383B1 (en) Intelligent DIY drones System
KR102456243B1 (en) Making a shape mission execution method in coding learning tools
KR102421967B1 (en) Coordinate movement mission execution method in coding learning tools

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

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

Country of ref document: EP

Kind code of ref document: A1