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.
- Variables:
gym (RatatouGym) – Parent gym environment.
config (BehaviorConfig) – Behavior configuration.
initialized (bool) – Whether behavior has been initialized.
distance_map (np.ndarray) – Distance map for boundary avoidance.
perpend_angle_map (np.ndarray) – Perpendicular angle map for boundaries.
- 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.
rtgym.agent.behavior.behavior module
The original NumPy random walk behind the standard control interface.