#include <toWorseOpp_shoot_strategy.h>
◆ ToWorseOppShootStrategy()
roborts_decision::ToWorseOppShootStrategy::ToWorseOppShootStrategy |
( |
const std::shared_ptr< MyRobot > & |
pMyRobot, |
|
|
const std::shared_ptr< Blackboard > & |
pBlackboard |
|
) |
| |
◆ CanExecuteMe()
virtual bool roborts_decision::ToWorseOppShootStrategy::CanExecuteMe |
( |
| ) |
|
|
inlinevirtual |
◆ getID()
StrategyID roborts_decision::ToWorseOppShootStrategy::getID |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Reset()
virtual void roborts_decision::ToWorseOppShootStrategy::Reset |
( |
| ) |
|
|
inlinevirtual |
◆ run()
void roborts_decision::ToWorseOppShootStrategy::run |
( |
| ) |
|
|
virtual |
评估函数,评估具体的射击速度,射击子弹数量
- 考虑敌方机器人位姿 1.1 敌方机器人为倾斜角跑位 1.1.1 根据距离设置射击速度,距离越大,速度越小 1.1.2 如果姿态固定,尽可能多射击 1.2 敌方机器人为旋转跑 1.2.1 尽可能降低射击速度 1.2.2 如果可以捕捉装甲板,多射击,否则点射
- 不考虑敌方位姿 2.1 根据距离进行判断,距离近射击速度越大 2.2 射击数量均匀
注:暂选方案一
Implements roborts_decision::AbstractCommonStrategy.
◆ Update()
virtual BehaviorState roborts_decision::ToWorseOppShootStrategy::Update |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following files: