当前位置:网站首页>Robocode教程3——Robo机器剖析
Robocode教程3——Robo机器剖析
2022-04-23 05:45:00 【dawnsun001】
从这开始,我们将系统地学习Robocode,从原理到内容。
首先,我们来认识一下我们的小robot
Robo机器剖析
一个机器人坦克包括以下3个部分:
§机身(Body) –机身上面载着大炮和雷达。可以控制机身前进和后退, 左转以及右转。
§大炮(Gun) -安装在机身上用来发射炮弹的部件.可以左转和右转。
§雷达(Radar )-安装在枪上用来扫描敌方坦克的部件,可以左右旋转扫描。当扫描到敌方坦克时会触发onScannedRobot 事件。
涉及到的三个方法:
void setAdjustGunForRobotTurn(boolean independent)
将炮和机身的运动分离
void setAdjustRadarForGunTurn(boolean independent)
将炮和雷达的运动分离
void setAdjustRadarForRobotTurn(boolean independent)
将雷达和机身的运动分离

版权声明
本文为[dawnsun001]所创,转载请带上原文链接,感谢
https://blog.csdn.net/dawnsun2013/article/details/17718457
边栏推荐
- 4. Print form
- [leetcode 228] summary interval
- DBCP usage
- Rainbow (DP)
- Algèbre linéaire chapitre 2 - matrice et son fonctionnement
- Reading of denoising papers - [cvpr2022] blind2blind: self supervised image denoising with visible blind spots
- 11.a==b?
- Definition of C class and method
- Programming record - picture rotation function SciPy ndimage. Simple use and effect observation of rotate()
- Delete and truncate
猜你喜欢

On traversal of binary tree

Definition of C class and method

Explanation of login page

自动控制(韩敏版)

PyTorch笔记——观察DataLoader&用torch构建LeNet处理CIFAR-10完整代码

Illustrate the significance of hashcode

Integration and induction of knowledge points of automatic control principle (Han min version)

线代第四章-向量组的线性相关

Import of data

Linear algebra Chapter 1 - determinant
随机推荐
RPC must know and know
[leetcode 67] sum of two binary numbers
9.Life, the Universe, and Everything
A sharp tool to improve work efficiency
Detection technology and principle
Understanding and installing MySQL
ValueError: loaded state dict contains a parameter group that doesn‘t match the size of optimizer‘s
Automatic control (Han min version)
LockSupport. Park and unpark, wait and notify
[leetcode 54] spiral matrix
Chapter 4 of line generation - linear correlation of vector systems
Formation à la programmation
程序设计训练
Common sense of thread pool
Pytorch notes - complete code for linear regression & manual or automatic calculation of gradient code comparison
Pytorch introduction notes - use a simple example to observe the output size of each layer of forward propagation
C # Foundation
Consistent hash algorithm used for redis cache load balancing
[leetcode217] there are duplicate elements
Substring Inversion (Easy Version)