⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 robocup 5vs5修改板决策例程
💻 TXT
字号:
The Strategy project is based on the Win32 DLL wizard option in VC++.

It contains a sample strategy and can be compiled down and placed in the Director folder to be used.

Developers can use this project as a starting point for developing a DLL-based strategy. 

The project creates a Strategy.dll file, however, any file name should be acceptable as long as the Director program allows users to select their own strategy DLLs.

The Strategy.h file contains the function prototypes which will be exported from the DLL: Create, Strategy, and Destroy. And also the Environment structure.

The Environment structure is passed into the Strategy function and is used to access information about the robots, ball and field. It can also be used to set the velocities of the robots. The Environment variables referring to the boundry positons and ball postion will remain the same for either team. The Environment variables referring to the Robots will vary depending on which folder it's called from.

Global data is not possible in the DLL as both robot teams may wish to use the same DLL file. So a user structure can be allocated and assigned to the userData field in Environment.h.

Because user data only needs to be allocated once it can be done in the Create function which is called once when the Xtra is loaded.

The user data can be freed in the Destroy function which is called when the Xtra is unloaded.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -