Important!!!!!!!
You have to use the new 'Strategy.h' file to create correct DLL file for Robot Soccer v1.5a
What you have to do is just replace your old 'Strategy.h' file to new 'Strategy.h' file which is in this folder.
---------------------------------------------------------------------------------------------
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.
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.
针对各种门球外策略函数实现.zip_仿真5v5针对门球策略函数的实现
版权申诉
5星 · 超过95%的资源 40 浏览量
2022-09-24
08:10:36
上传
评论
收藏 15.39MB ZIP 举报
alvarocfc
- 粉丝: 109
- 资源: 1万+
最新资源
- Picasso_v3.1 2.ipa
- chromedriver-mac-arm64.zip
- 蓝zapro.apk
- chromedriver-linux64.zip
- UCAS研一深度学习实验-MNIST手写数字识别python源码+详细注释(高分项目)
- 基于Python和PyTorch框架完成的一个手写数字识别实验源码(带MINIST手写数字数据集)+详细注释(高分项目)
- 基于Matlab在MNIST数据集上利用CNN完成手写体数字识别任务,并实现单层CNN反向传播算法+源代码+文档说明(高分项目)
- NVIDIA驱动、CUDA和Pytorch及其依赖
- 基于SVM多特征融合的微表情识别python源码+项目说明+详细注释(高分课程设计)
- html动态爱心代码一(附源码)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈