2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
Using dtns.network DataWorld (open source intelligent world engine), we planned and designed a series of tutorials for "Jobs's super-large open source 3D memorial". dtns.network is an intelligent world engine mainly written in JavaScript (with a customized version of the three.js editor embedded - supporting browsing 3D venues from the first person perspective), which can be run on browsers and node.js, deno, and electron. It is a cross-platform software that supports multiple operating systems! And it supports the use of the built-in poplang intelligent programming language to realize intelligent programming of 3D components - the syntax is super simple, one-sentence syntax, and everyone can easily get started!
The following is a step-by-step introduction on how to use the dtns.network intelligent world engine to implement the intelligent agent to automatically obtain information about cats and save the result json to a cloud folder. This allows us to let the agent robot automatically obtain information and then look at the automatically collected information json file after doing other things. This greatly reduces the time people waste on browsing their phones, browsing intelligence content, and browsing irrelevant information content. It improves people's work efficiency and entertainment efficiency, and the saved time can be used for better learning, entertainment, and work.
The agent automation assistant is a powerful programmable robot. It can control the robot chassis, mobile phones, and even computing devices such as computers. Through a few simple lines of poplang programming, it can obtain information about cats, demonstrating the powerful efficiency of agent automation and greatly improving people's living standards and management efficiency.
In order to realize the 3D light application through dtns-api programming control agent Android mobile agent. We used dtns-api: /rtphone/robot/do to synchronize the operation action - through the adb shell command parameter instruction and dtns-api:/rtphone/robot/ui/dump to get the json corresponding to the UI, accurately achieve the acquisition of the target button and text content, thereby realizing the function of automatically obtaining cat information on the mobile phone. Finally, use the ib3.json.save instruction to automatically save the cat information in the dfolder cloud folder (use the intelligent IB to enter the cloud folder dfolder by entering cd)
Note: Find the xverse light application titled "Agent Programming: Scroll and capture the cat information on the second screen - automatically save to the dfolder folder".
Note: Because each xverse light application is shared as a source-level application in the form of xverse.json, every community user can implement DIY and customization by editing the xverse light application source code.
Note: Click the avatar player 3D component object in the middle of the 3D scene and find Script-Edit in the property panel on the right.
Note: First, use dtns-api: /rtphone/robot/do to implement the shell parameter command of passing adb. Use /rtphone/robot/ui/dump to obtain the UI interface elements of the current app. In order to filter the content of cat information (use $.g_2d_filter_uijson to achieve accurate content filtering). Finally, use ib3.json.save to save the result array as a network file ID (obj_file*), and then add it to the dfolder folder (use the dtns-api of /clouddisk/folder/file/add to add). Continue to do this, and you can replace manual work to achieve accurate cat information acquisition and save it to the cloud folder. Powerful agent robot agent.
Note: The title is xmsg, and the double quotes "" cannot be deleted by mistake, otherwise the publishing will fail - only the text content of the xmsg attribute needs to be modified.
Note: With just one click, you can experience the newly released xverse-3D light application (intelligent and physical application). We can share and fission this open source 3D light application (intelligent and physical application) infinitely. In this way, everyone can easily modify and customize the source code templates of these animations according to their own needs. You can form your own story, your own animation, your own 3D venue, your own 3D interactive plot, etc. Play as you like, so the intelligent world and intelligent OS are also equivalent to the [metaverse] [open world]!
Note: Enter the cloud folder ID first as shown above
Switch to Zhiti IB and enter cd to enter the cloud folder (as shown below)
After clicking Send, enter the cloud folder, select Create Folder and click Edit (as shown below), and copy the cloud folder ID:
Enter the copied cloud folder ID into the dialog box of the 3D light application just now (so that the cat information obtained by the agent can be saved in this cloud folder)
Open another browser window and go to the CD cloud folder just now, you can see the list of automatically captured json files (as shown below)
Click on the latest json file and open it to see the following automatically acquired cat information content:
Note: Through the agent robot agent, the corresponding cat information content was successfully refined and saved in the cloud folder for easy subsequent viewing and browsing.
Through the above 8 steps, we have successfully completed the function of automatically obtaining cat information and saving it in the cloud folder by opening the information app on Android phones through popalng and dtns-api in 3D light applications. Therefore, using poplang's simple 4 or 5 instructions, you can complete a mobile agent agent with the function of automatically obtaining cat information - serving consumers and corporate customers to easily obtain information of the target category, thereby improving the ability of industry intelligence and consumer category information, greatly reducing the time wasted in obtaining information, and improving the ability to efficiently filter information or intelligence. This helps people improve their ability and time efficiency in obtaining intelligence information, so as to save more time for other places where it is more needed.
From the above cases, we can see that 3D light applications have evolved from simple 3D scene construction to a powerful tool that supports the control of smartphones or IoT devices, smart hardware or any smart computing devices. The leap from virtual scene construction to real-world linkage has greatly improved the scene application scope of poplang intelligent applications, making it simple, reliable, fast, shared, and open source, giving every consumer or customer who likes to improve the quality of life, improve production efficiency, and promote management efficiency.
We also saw the powerful power of the poplang intelligent body programming language. With one or two simple lines of instructions, complex 3D interactive effects and sound effects can be developed. And through the xverse-json source file (3D light application) for community sharing, the open source, open and transparent 3D venue design can be learned and inherited by more people, achieving the purpose of interactive learning and interactive growth. This is also the goal of intelligent body OS and intelligent body interactive education-learning.
Note: dtns.network DataWorld (open source intelligent world engine) is an open source project on github and gitee!
Appendix (poplang intelligent code - realize poplang's agent function of automatically filtering information and saving cloud folders):
set yps **{"action":"shell am force-stop com.ss.android.article.news"}
/rtphone/robot/do yps
pop.sleep 500
set yps **{"action":"shell am start -n com.ss.android.article.news/.activity.MainActivity"}
/rtphone/robot/do yps
set i 0
set one 1
set end 20
#轮询得到结果(猫咪)
pop.func.define loop
pop.sleep 5000
set yps **{"action":"shell input tap 120 200"}
/rtphone/robot/do yps
pop.sleep 3000
set yps **{"action":"shell input swipe 300 750 300 500 300"}
/rtphone/robot/do yps
#不再滑动
/rtphone/robot/ui/dump
= dret $ret
object.get dret.ui uijson
set attr content-desc
set val 猫
$.g_2d_filter_uijson uijson attr val
= result $ret
$.JSON.stringify result
= v $ret
ib3.toast v
ib3.json.save v
= filename $ret
#ib3.tips filename
set fps {}
object.set fps.folder_id folder
object.set fps.file_id filename
/clouddisk/folder/file/add fps
+ i one i
<= i end flag
pop.func.end
set input_tips 请输入文件夹的ID
$.prompt input_tips
= folder $ret
#ib3.tips folder
<= i end flag
pop.while flag loop
This concludes the poplang agent robot code that automatically filters information and saves it to the cloud folder.