rtgym.agent.behavior package
Submodules
rtgym.agent.behavior.autonomous_behavior module
- class AutonomousBehavior(gym, config)[source]
Bases:
BaseBehavior- init_from_profile(raw_profile)[source]
rtgym.agent.behavior.base_behavior module
- class BaseBehavior(gym, config)[source]
Bases:
objectBase class for agent behavior systems.
Provides common functionality for behavior generation including boundary avoidance, coordinate updates, and movement computations. This is an abstract base class that should be inherited by specific behavior types.
- Parameters:
gym (RatatouGym) – Parent gym environment.
config (BehaviorConfig) – Configuration object for behavior parameters.
- static require_init(func)[source]
Decorator to ensure behavior is initialized before method execution.
- Parameters:
func (callable) – Function to wrap with initialization check.
- Returns:
Wrapped function that checks initialization.
- Return type:
callable
- Raises:
ValueError – If behavior is not initialized.