CN115223423A - Programming method and device and electronic equipment - Google Patents
Programming method and device and electronic equipment Download PDFInfo
- Publication number
- CN115223423A CN115223423A CN202210429475.7A CN202210429475A CN115223423A CN 115223423 A CN115223423 A CN 115223423A CN 202210429475 A CN202210429475 A CN 202210429475A CN 115223423 A CN115223423 A CN 115223423A
- Authority
- CN
- China
- Prior art keywords
- target
- programming
- information
- controlling
- building block
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 230000009471 action Effects 0.000 claims abstract description 71
- 238000006243 chemical reaction Methods 0.000 claims description 12
- 230000033001 locomotion Effects 0.000 claims description 9
- 230000003993 interaction Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 7
- 238000004590 computer program Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 239000000835 fiber Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B19/00—Teaching not covered by other main groups of this subclass
- G09B19/0053—Computers, e.g. programming
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Computer Hardware Design (AREA)
- Entrepreneurship & Innovation (AREA)
- Physics & Mathematics (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a programming method, a programming device and electronic equipment, wherein the programming method is applied to graphical programming software, and the method comprises the following steps: the programming software acquires information of a first target, wherein the information of the first target at least comprises action information of the first target; the programming software generates a control instruction for controlling a second target according to the acquired information of the first target; the programming software sends the control instruction to a second target. According to the method and the device, the second target is controlled according to the action information of the first target, a set of program does not need to be independently written to control the second target, the interaction relation between the first target and the second target can be visually shown, the method and the device are convenient for children without programming bases to use, and the learning efficiency of the children can be effectively improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a programming method and apparatus, and an electronic device.
Background
At present, various intelligent robots enter the daily life of people, and the quality of life is improved. The development of the intelligent robot technology needs a great amount of technical talents in related fields, but the difficulty of learning aiming at robot programming is high, and the intelligent robot technology is not suitable for children without programming bases to learn.
Disclosure of Invention
It is an object of the present invention to provide a new solution for graphical programming.
According to a first aspect of the present invention, there is provided a programming method applied to graphical programming software, the method comprising:
the programming software acquires information of a first target, wherein the information of the first target at least comprises action information of the first target;
the programming software generates a control instruction for controlling a second target according to the acquired information of the first target;
the programming software sends the control instruction to a second target.
Optionally, the first target is an animated character displayed on the programming software, the animated character being controllable by the programming software, and the second target is programmable hardware.
Optionally, the generating, by the programming software, a control instruction for controlling a second target according to the acquired information of the first target includes:
the programming software acquires a first graphical programming building block, and the first graphical programming building block is used for controlling the programmable hardware;
and the first graphical programming building block generates a control instruction for controlling the programmable hardware according to the action information of the animation role.
Optionally, the first graphical programming building block generates a control instruction for controlling the programmable hardware according to the action information of the animated character, including:
based on a preset conversion rule, a first graphical programming building block generates action information of programmable hardware according to the action information of the animation role;
and the first graphical programming building block generates a control instruction for controlling the programmable hardware according to the action information of the programmable hardware.
Optionally, the first object is programmable hardware, and the second object is an animated character displayed on the programming software, the animated character being controllable by the programming software.
Optionally, the generating, by the programming software, a control instruction for controlling a second target according to the acquired information of the first target includes:
the programming software acquires a second graphical programming building block which is used for controlling the animation role;
and the second graphical programming building block generates a control instruction for controlling the animation role according to the action information of the programmable hardware.
Optionally, the second graphical programming building block generates a control instruction for controlling the animated character according to the action information of the programmable hardware, and includes:
based on a preset conversion rule, a second graphical programming building block generates action information of the animation role according to the action information of the programming hardware;
and the second graphical programming building block generates a control instruction for controlling the animated character according to the action information of the animated character.
According to a second aspect of the present invention, there is provided a programming apparatus, the apparatus comprising:
the target information acquisition module is used for acquiring information of a first target, wherein the information of the first target at least comprises action information of the first target;
the instruction generation module is used for generating a control instruction for controlling a second target according to the acquired information of the first target;
and the instruction sending module is used for sending the generated control instruction to the second target.
Optionally, the instruction generating module includes an information converting module, and the information converting module is configured to generate the action information of the second target according to a preset conversion rule and the action information of the first target.
According to a third aspect of the present invention, there is provided an electronic device comprising a processor and a memory, the memory storing a program executable by the processor, the program, when executed by the processor, implementing the method according to the first aspect of the present invention.
According to one embodiment of the disclosure, the second target is controlled according to the action information of the first target, the second target executes the action same as the first target, a set of programs is not required to be independently written to control the second target, the interaction relationship between the first target and the second target can be visually shown, the method is convenient for children without programming bases to use, and the learning efficiency of the children can be effectively improved.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is an architecture diagram of a programming system in an embodiment of the invention.
FIG. 2 is a flow chart of a programming method in an embodiment of the present invention.
Fig. 3 is a schematic diagram of an animation character and a hand-raising action performed by a robot in an embodiment of the invention.
Fig. 4 is a schematic diagram of an animation character and a movement action performed by a robot in an embodiment of the present invention.
FIG. 5 is a functional block diagram of a programming apparatus according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of functional modules of an electronic device in an embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
First, referring to fig. 1, a description is given of an architecture of a programming system provided in an embodiment of the present invention: the programming system includes a programming device and at least one programmable hardware communicatively coupled to the programming device.
In the programming system, the programming device is an electronic device loaded with programming software, the programming device is an upper computer of programmable hardware, and the programming device can control the programmable hardware and write programs into the programmable hardware. The programmable hardware may execute instructions sent by the programming device, may be written to by the programming device, and execute the program. In the invention, the programming software carried by the programming device can be graphical programming software, and a user can program by using a graphical programming building block.
Based on the above programming system, the embodiment of the invention introduces a programming method, as shown in fig. 2, the programming method includes steps S1 to S3.
S1: the programming software acquires information of a first target, wherein the information of the first target at least comprises action information of the first target.
S2: and the programming software generates a control instruction for controlling a second target according to the acquired information of the first target.
S3: the programming software sends the control instruction to a second target.
According to the method and the device, the second target is controlled according to the action information of the first target, the second target executes the action same as that of the first target, a set of programs does not need to be independently written to control the second target, the interaction relation between the first target and the second target can be visually shown, the method and the device are convenient for children without programming bases to use, and the learning efficiency of the children can be effectively improved.
In an embodiment of the present invention, the first target is an animated character displayed on the programming software, the animated character being controllable by the programming software, and the second target is programmable hardware.
As shown in fig. 3, in one example, the programming software has an animation display area, the animation character 1 is displayed in the animation display area, and the user can control the action of the animation character 1 through the programming software, such as controlling the animation character 1 to move and changing the posture of the animation character 1. The programmable hardware may be a robot 2, and the user may control the robot 2 action through the programming software.
For example, the control command of "raise hands" sent by the programming software to the animated character, after the animated character 1 performs the raise hands action, the both hands of the animated character 1 are raised. The programming software generates control instructions according to the hand-raising action of the animated character 1. The programming software 1 sends the control instruction to the robot 2, and after the robot 2 receives the control instruction, the robot 2 also executes a hand-lifting action, and the two hands of the robot 2 are also lifted.
According to the invention, the robot is controlled to execute the same action according to the action of the animation role, so that the linkage between the animation role and the robot is realized, the control mode of the robot is simplified, a child can complete the control of the robot without compiling a complex robot control program, and the learning difficulty of the child is reduced.
In the embodiment of the present invention, the step S2 includes steps S211-S212.
S211: the programming software obtains a first graphical programming building block for controlling the programmable hardware.
S212: and the first graphical programming building block generates a control instruction for controlling the programmable hardware according to the action information of the animation role.
As shown in FIG. 4, in one example, the programmable hardware is a robot 2, a first graphical programming building block capable of controlling the motion of the robot 2 is arranged in the programming software, and the animated character 1 is two-dimensional and can move in the horizontal direction. The programming software sends a 'moving' control instruction to the animation role, the 'moving' control instruction contains the moving distance and the moving direction of the animation role, the programming software generates a control instruction for controlling the robot 2 to move through the first graphical programming building block, and the robot 2 starts to move after receiving the control instruction. Such as the animated character 1 moving to the right, the robot 2 also moves to the right.
According to the invention, the action information of the animation role is transmitted between the animation role and the robot by using the first graphical programming building block, so that a user does not need to write an additional program, the robot is convenient for children without programming experience to use, and the learning efficiency of the children is effectively improved.
In the embodiment of the present invention, the step S212 includes steps S2121-S2122.
S2121: based on a preset conversion rule, the first graphical programming building block generates action information of programmable hardware according to the action information of the animation role.
S2122: and the first graphical programming building block generates a control instruction for controlling the programmable hardware according to the action information of the programmable hardware.
In the actual programming process, the animation character moves on the screen, and the robot moves in the real space, so that the moving distance of the animation character cannot be directly set as the moving distance of the robot, and the moving distance of the animation character needs to be converted according to a preset conversion rule to convert the moving distance of the animation character into the distance which the robot needs to move. Since the animated character is moved in the horizontal direction, the movable section of the animated character on the screen may be set to 10 unit lengths, assuming that the moving track length of the robot in reality is 20m, and if the animated character moves 2 unit lengths on the screen, the robot moving distance is 4m.
Similarly, the direction of movement of the animated character may be switched. For example, an animated character moves left and right on a screen, while a robot can move in an east-west direction in real space. When the animation role moves to the left, the robot can be controlled to move to the west; and when the animated character moves rightwards, the robot is controlled to move eastward.
The invention can accurately control the action of the programmable hardware by generating the action information of the programmable hardware according to the action information of the animation role, thereby ensuring the synchronization of the animation role and the programmable hardware in the action execution. Meanwhile, the realization mode is simple, and children can understand the method conveniently.
In an embodiment of the present invention, the first target is programmable hardware, and the second target is an animated character displayed on the programming software, and the animated character can be controlled by the programming software.
In one example, the programming software has an animation display area within which the animated character is displayed, and a user can control the motion of the animated character, such as controlling the animated character to move, changing the pose of the animated character, through the programming software. The programmable hardware may be a robot, and the user may control the robot action through the programming software.
For example, after the robot performs the hand-raising action, the right hand of the robot is raised, the programming software acquires the hand-raising action of the robot, generates a control command according to the hand-raising action of the robot, and controls the animation character to perform the hand-raising action according to the control command, wherein the raised hand of the animation character is also the right hand.
According to the invention, the animation role executes the same action according to the action of the robot, so that the linkage between the animation role and the robot is realized, the action executed by the robot is directly displayed on the screen through the animation role, the understanding of children on the robot is deepened, and the children can conveniently learn.
In the embodiment of the present invention, the step S2 includes steps S221-S222.
S221: the programming software obtains a second graphical programming building block for controlling the animated character.
S222: and the second graphical programming building block generates a control instruction for controlling the animation role according to the action information of the programmable hardware.
In one example, the animated character is two-dimensional and can be moved in a horizontal direction, and the programming software is provided with a second graphical programming building block which can control the animated character. The programmable hardware is a robot that can be controlled by programming software. After the robot moves, the programming software obtains the moving distance and the moving direction of the robot, a control instruction for controlling the animation role is generated through a second graphical programming building block, the second graphical programming building block can generate the distance which the animation role needs to move according to the moving distance of the robot, and the animation role starts to move after receiving the control instruction. Such as the robot moving to the right, the animated character also moves to the right.
In the embodiment of the present invention, the step S222 includes steps S2221-S2222.
S2221: and based on a preset conversion rule, the second graphical programming building block generates the action information of the animation role according to the action information of the programming hardware.
S2222: and the second graphical programming building block generates a control instruction for controlling the animated character according to the action information of the animated character.
In one example, the programmable hardware is a robot. In the actual programming process, the robot moves in the real space, so that the moving distance of the robot cannot be directly set as the moving distance of the animation character, conversion needs to be performed according to a preset conversion rule, and the moving distance of the robot is converted into the moving distance of the animation character, which needs to be moved. Assuming that the moving track length of the robot in reality is 20m, and the movable section of the animated character on the screen is 10 unit lengths, if the robot moves 4m in reality, the animated character moves 2 unit lengths on the screen.
Similarly, the moving direction of the robot may be switched. For example, the robot may move in an east-west direction in the display space, while the animated character may move left-right on the screen. When the robot moves towards the west direction, the animated character can be controlled to move leftwards; when the robot moves to the east, the animated character can be controlled to move to the right.
In one example, when the robot moves in the real space, the robot can move along eight directions of east, northeast, north, northwest, west, southwest, south and southeast, while the animated character can move along eight directions of right, upper left, lower right and lower right on the screen, and the eight directions of the robot movement respectively correspond to the eight directions of the animated character movement, and the moving direction of the animated character can be determined according to the moving direction of the robot.
The invention can accurately control the action of the animation character by generating the action information of the animation character according to the action information of the programmable hardware, ensures the synchronization of the animation character and the programmable hardware in the execution action, displays the action of the programmable hardware on a screen in real time through the animation character, and is convenient for children to understand.
The programming software is also provided with an animation programming area and a hardware programming area, a plurality of graphical programming building blocks related to animation programming are arranged in the animation programming area, and a user controls the animation character by using the graphical programming building blocks related to animation programming. And a plurality of graphical programming building blocks related to hardware programming are arranged in the hardware programming area, and a user controls the programmable hardware by using the graphical programming building blocks related to the hardware programming. The user can control only the animated character through the programming software, can control only the programmable hardware through the programming software, or can control both the animated character and the programmable hardware.
When the user only controls the animated character through the programming software, the user selects the graphical programming building blocks associated with the animated programming in the animation programming zone. For example, the user selects the graphical programming building block of the 'moving animation role', the moving distance, the moving speed and the moving direction of the animation role are set, the programming software moves the animation role according to the moving speed and the moving direction set by the user when the graphical programming building block of the 'moving animation role' set by the user is operated, and the animation role stops moving after moving the moving distance set by the user. Or the user can set a target coordinate and a moving speed through the graphical programming building block, when the programming software runs the graphical programming building block set by the user, the animation character moves to the target coordinate according to the moving speed set by the user, and the movement is stopped after the animation character moves to the target coordinate.
When the user only controls the programmable hardware through the programming software, the user selects the graphic programming building block related to the hardware programming in the hardware programming area. For example, the programmable hardware is a robot, a user selects a graphical programming building block of a 'mobile robot' to set the moving distance, the moving speed and the moving direction of the robot, programming software sends a control instruction to the robot when running the graphical programming building block of the 'mobile robot' set by the user, and the robot moves according to the moving distance, the moving speed and the moving direction set by the user.
When the user simultaneously controls the animation character and the programmable hardware through the programming software, the connection between the programming software and the programmable hardware is firstly established. The user then mixes the graphical programming building blocks associated with the animation programming with the graphical programming building blocks associated with the hardware programming while controlling the animated character and the programmable hardware.
As shown in fig. 5, an embodiment of the present invention provides a programming apparatus 200, where the programming apparatus 200 includes:
the object information acquiring module 201 is configured to acquire information of a first object, where the information of the first object at least includes action information of the first object.
And the instruction generating module 202 is configured to generate a control instruction for controlling the second target according to the acquired information of the first target.
And the instruction sending module 203 is configured to send the generated control instruction to the second target.
In an embodiment of the present invention, the instruction generating module includes an information converting module, and the information converting module is configured to generate the action information of the second target according to a preset conversion rule and the action information of the first target.
As shown in fig. 6, an electronic device 300 according to an embodiment of the present invention includes a processor 301 and a memory 302, where the memory 302 stores a program executable by the processor 301, and the program implements a programming method according to any embodiment of the present invention when the program is executed by the processor 301.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
Computer program instructions for carrying out operations of the present invention may be assembler instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
While embodiments of the present invention have been described above, the above description is illustrative, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.
Claims (10)
1. A programming method applied to graphical programming software, the method comprising:
the programming software acquires information of a first target, wherein the information of the first target at least comprises action information of the first target;
the programming software generates a control instruction for controlling a second target according to the acquired information of the first target;
the programming software sends the control instruction to a second target.
2. The method of claim 1, wherein the first target is an animated character displayed on the programming software, the animated character being controllable by the programming software, and the second target is programmable hardware.
3. The method of claim 2, wherein the programming software generates a control instruction for controlling a second target according to the acquired information of the first target, and the method comprises:
the programming software acquires a first graphical programming building block, and the first graphical programming building block is used for controlling the programmable hardware;
and the first graphical programming building block generates a control instruction for controlling the programmable hardware according to the action information of the animation role.
4. The method of claim 3 wherein the first graphical programming building block generates control instructions for controlling the programmable hardware based on the motion information of the animated character, comprising:
based on a preset conversion rule, a first graphical programming building block generates action information of programmable hardware according to the action information of the animation role;
and the first graphical programming building block generates a control instruction for controlling the programmable hardware according to the action information of the programmable hardware.
5. The method of claim 1, wherein the first target is programmable hardware and the second target is an animated character displayed on the programming software, the animated character being controllable by the programming software.
6. The method of claim 5, wherein the programming software generates a control instruction for controlling a second target according to the acquired information of the first target, and the method comprises:
the programming software acquires a second graphical programming building block which is used for controlling the animation role;
and the second graphical programming building block generates a control instruction for controlling the animation role according to the action information of the programmable hardware.
7. The method of claim 6, wherein the second graphical programming building block generates control instructions for controlling the animated character based on the motion information of the programmable hardware, comprising:
based on a preset conversion rule, a second graphical programming building block generates action information of the animation role according to the action information of the programming hardware;
and the second graphical programming building block generates a control instruction for controlling the animation role according to the action information of the animation role.
8. A programming apparatus, the apparatus comprising:
the target information acquisition module is used for acquiring information of a first target, wherein the information of the first target at least comprises action information of the first target;
the instruction generation module is used for generating a control instruction for controlling a second target according to the acquired information of the first target;
and the instruction sending module is used for sending the generated control instruction to the second target.
9. The apparatus according to claim 8, wherein the instruction generating module comprises an information converting module, and the information converting module is configured to generate the action information of the second target according to a preset conversion rule and the action information of the first target.
10. An electronic device comprising a processor and a memory, the memory storing a program executable by the processor, the program, when executed by the processor, implementing the method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210429475.7A CN115223423B (en) | 2022-04-22 | 2022-04-22 | Programming method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210429475.7A CN115223423B (en) | 2022-04-22 | 2022-04-22 | Programming method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115223423A true CN115223423A (en) | 2022-10-21 |
CN115223423B CN115223423B (en) | 2024-04-16 |
Family
ID=83607532
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210429475.7A Active CN115223423B (en) | 2022-04-22 | 2022-04-22 | Programming method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115223423B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2208584A1 (en) * | 2009-01-14 | 2010-07-21 | GFRT - Fortschrittliche Robotertechnologie GmbH & Co. KG | Method and device for controlling industrial robots |
CN105479468A (en) * | 2015-12-29 | 2016-04-13 | 浙江瑞鹏机器人科技有限公司 | Remote robot motion controller |
CN106774118A (en) * | 2016-12-20 | 2017-05-31 | 上海新时达电气股份有限公司 | Robot manipulation's box and operating system |
CN207037373U (en) * | 2017-08-22 | 2018-02-23 | 泰州市江南教学仪器设备有限公司 | A kind of programmable robot for facilitating adolescents with learning to program |
CN108508762A (en) * | 2018-04-09 | 2018-09-07 | 重庆鲁班机器人技术研究院有限公司 | A kind of simulated experiment construction method and device |
CN110465951A (en) * | 2018-05-11 | 2019-11-19 | 西门子股份公司 | For the method for robotic programming, equipment, computer-readable storage medium and computer program |
CN111880783A (en) * | 2020-07-01 | 2020-11-03 | 腾讯科技(深圳)有限公司 | Equipment control method, system, electronic equipment and storage medium |
CN113419483A (en) * | 2021-07-06 | 2021-09-21 | 乐聚(深圳)机器人技术有限公司 | Method and device for displaying equipment state, terminal and storage medium |
CN113570944A (en) * | 2021-05-17 | 2021-10-29 | 海南师范大学 | Intelligent teaching aid control system and method for building block programming learning |
-
2022
- 2022-04-22 CN CN202210429475.7A patent/CN115223423B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2208584A1 (en) * | 2009-01-14 | 2010-07-21 | GFRT - Fortschrittliche Robotertechnologie GmbH & Co. KG | Method and device for controlling industrial robots |
CN105479468A (en) * | 2015-12-29 | 2016-04-13 | 浙江瑞鹏机器人科技有限公司 | Remote robot motion controller |
CN106774118A (en) * | 2016-12-20 | 2017-05-31 | 上海新时达电气股份有限公司 | Robot manipulation's box and operating system |
CN207037373U (en) * | 2017-08-22 | 2018-02-23 | 泰州市江南教学仪器设备有限公司 | A kind of programmable robot for facilitating adolescents with learning to program |
CN108508762A (en) * | 2018-04-09 | 2018-09-07 | 重庆鲁班机器人技术研究院有限公司 | A kind of simulated experiment construction method and device |
CN110465951A (en) * | 2018-05-11 | 2019-11-19 | 西门子股份公司 | For the method for robotic programming, equipment, computer-readable storage medium and computer program |
CN111880783A (en) * | 2020-07-01 | 2020-11-03 | 腾讯科技(深圳)有限公司 | Equipment control method, system, electronic equipment and storage medium |
CN113570944A (en) * | 2021-05-17 | 2021-10-29 | 海南师范大学 | Intelligent teaching aid control system and method for building block programming learning |
CN113419483A (en) * | 2021-07-06 | 2021-09-21 | 乐聚(深圳)机器人技术有限公司 | Method and device for displaying equipment state, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115223423B (en) | 2024-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
De Giorgio et al. | Human-machine collaboration in virtual reality for adaptive production engineering | |
KR102042115B1 (en) | Method for generating robot operation program, and device for generating robot operation program | |
CN108267715B (en) | External equipment positioning method and device, virtual reality equipment and system | |
CN106598246B (en) | Interaction control method and device based on virtual reality | |
CN107731081B (en) | Virtual reality assembly system of speed reducer | |
CN104699871A (en) | Simulation drill control method for analogue simulation training | |
CN116518973A (en) | Robot vision language navigation method suitable for real indoor environment | |
Hosseini et al. | Immersive Interaction in Digital Factory: Metaverse in Manufacturing | |
CN115223423B (en) | Programming method and device and electronic equipment | |
CN109857258B (en) | Virtual remote control method, device and system | |
Raje | Evaluation of ros and gazebo simulation environment using turtlebot3 robot | |
Stone et al. | 1Augmented Reality Interface For Industrial Robot Controllers | |
CN107515587B (en) | System, method, device, equipment and storage medium for man-machine interaction operation simulation | |
Khan | ROS-based control of a manipulator arm for balancing a ball on a plate | |
Xu et al. | Improve User Experience of Augmented Reality Tour Guide Application by Using ChatGPT | |
Behzadan et al. | Enabling smooth and scalable dynamic 3D visualization of discrete-event construction simulations in outdoor augmented reality | |
CN114571443A (en) | System and method for teaching robot motion through mobile terminal wireless control low code | |
CN110604918B (en) | Interface element adjustment method and device, storage medium and electronic equipment | |
Chen et al. | Applying virtual reality to remote control of mobile robot | |
CN114683277A (en) | Method for teaching robot motion through mobile terminal wireless control low code | |
JP2009048396A (en) | Simulator of motor motion | |
Montalvo et al. | Industrial control robot based on augmented reality and IoT protocol | |
KR20160129143A (en) | Robot control service system based on smart device and robot control service method therefor | |
Cao et al. | Design and Implementation of an Android-based control laboratory | |
Andaluz et al. | Bilateral virtual control human-machine with kinect sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |