Skip to content

Conversation

@ErfanFathii
Copy link
Member

… modified KickDecisionMaker to use BhvStarterKickPlanner."

… modified KickDecisionMaker to use BhvStarterKickPlanner."
from service_pb2 import *


class Pass(IBehavior):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class name should be BhvStarterPass

from service_pb2 import *


class Dribble(IBehavior):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BhvStarterDribble

from pyrusgeom import vector_2d
from service_pb2 import *

class ClearBall(IBehavior):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bhv...

agent.logger.debug("--- WithBallDecisionMaker ---")
from src.sample_player_agent import SamplePlayerAgent # Local import to avoid circular import
assert isinstance(agent, SamplePlayerAgent)
#self.bhv_kick_planner.execute(agent)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do not need this line

def __init__(self):
self.bhv_kick_planner = BhvKickPlanner()
# self.bhv_kick_planner = BhvStarterKickPlanner()
self.bhv_kick_planner = BhvStarterKickPlanner()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for default we should not use Starter classes, but we can have a variable in sample player agent, for example starter=true/false and we can choose planner or starter planner based on that variable

Copy link
Member

@SoroushMazloum SoroushMazloum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed these issues in my new commit

…setplay files: go_to_placed_ball, intention_wait_after_setplay, prepare_setplay_kick, setplay_freekick. add starter_strategy
SoroushMazloum and others added 5 commits December 12, 2024 00:20
This reverts commit 228f389.
(Erfan should add this part)
…t_play_decision_maker.py. Added two new methods to tools.py: BallInertiaFinalPoint and OpponentGoalie. Also added some setplay files`
- Designed penalty kick behavior in `BhvStarterPenalty`:
  - Added kicker setup, readiness, and execution methods.
  - Implemented goalie actions: setup, waiting, and responses.
  - Enhanced decision-making for `dribbling` and `shooting`.
  - Improved goalie positioning based on ball dynamics.
  - Included support for various penalty game modes.
@naderzare naderzare closed this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants