verse.agents.example_agent.ballg_agent.Ball_g_agent

class verse.agents.example_agent.ballg_agent.Ball_g_agent(id, code=None, file_name=None, g_acc_val=9.8)

Bases: BaseAgent

Dynamics of point object falling under gravity

Methods

TC_simulate(mode, initialSet, time_horizon, ...)

Abstract simulation function

dynamic(self, t, state)

Defines the RHS of the ODE used to simulate trajectories

set_initial(initial_state, initial_mode[, ...])

Initialize the states

set_initial_mode

set_initial_state

set_static_parameter

set_uncertain_parameter

TC_simulate(mode, initialSet, time_horizon, time_step, map=None)

Abstract simulation function

Parameters:
mode: str

The current mode to simulate

initialSet: List[float]

The initial condition to perform the simulation

time_horizon: float

The time horizon for simulation

time_step: float

time_step for performing simulation

map: LaneMap, optional

Provided if the map is used

__init__(id, code=None, file_name=None, g_acc_val=9.8)

Contructor id: A string which will be treated as the name of the agent EXACTLY one of the following should be given file_name: name of the file containing the decision logic (DL) code: pyhton string defining the decision logic (DL) Then g_acc_val: value of acceleration due to gravity

static dynamic(self, t, state)

Defines the RHS of the ODE used to simulate trajectories

set_initial(initial_state, initial_mode, static_param=None, uncertain_param=None)

Initialize the states