MCPcopy Create free account

hub / github.com/DongChen06/MARL_CAVs / functions

Functions435 in github.com/DongChen06/MARL_CAVs

↓ 1 callersFunctionis_valid_observation
Check if a new observation (phi, y) is valid according to a confidence ellipsoid on theta. :param y: observation :param phi: feature
highway-env/highway_env/utils.py:168
↓ 1 callersMethodis_visible
Is a position visible in the surface? :param vec: a position :param margin: margins around the frame to test for visibility
highway-env/highway_env/road/graphics.py:66
↓ 1 callersFunctionlane_distance_to
Compute the signed distance to another vehicle along a lane. :param v: the other vehicle :param vehicle: the autonomous vehicle :par
highway-env/highway_env/envs/common/idm_controller.py:292
↓ 1 callersMethodlateral_matrix_polytope
(self)
highway-env/highway_env/vehicle/uncertainty/prediction.py:276
↓ 1 callersMethodlongitudinal_matrix_polytope
(self)
highway-env/highway_env/vehicle/uncertainty/prediction.py:273
↓ 1 callersFunctionmain
()
highway-env/highway_env/vehicle/dynamics.py:236
↓ 1 callersFunctionmobil
MOBIL lane change model: Minimizing Overall Braking Induced by a Lane change The vehicle should change lane only if: - after cha
highway-env/highway_env/envs/common/idm_controller.py:125
↓ 1 callersMethodmobil
MOBIL lane change model: Minimizing Overall Braking Induced by a Lane change The vehicle should change lane only if:
highway-env/highway_env/vehicle/behavior.py:225
↓ 1 callersMethodmove_display_window_to
Set the origin of the displayed area to center on a given world position. :param position: a world position [m]
highway-env/highway_env/road/graphics.py:76
↓ 1 callersMethodnormalize
Normalize the observation values. For now, assume that the road is straight along the x axis. :param Dataframe df: observati
highway-env/highway_env/envs/common/observation.py:261
↓ 1 callersMethodnormalize_obs
Normalize the observation values. For now, assume that the road is straight along the x axis. :param Dataframe df: observati
highway-env/highway_env/envs/common/observation.py:166
↓ 1 callersMethodobserve
(self)
highway-env/highway_env/envs/common/observation.py:103
↓ 1 callersMethodobserve
(self)
highway-env/highway_env/envs/common/observation.py:325
↓ 1 callersMethodobserve
(self)
highway-env/highway_env/envs/common/observation.py:358
↓ 1 callersFunctionparse_args
Description for this experiment: + medium: maacktr, regionalR + seed = 0
MARL/run_maacktr.py:17
↓ 1 callersFunctionparse_args
Description for this experiment: + easy: globalR + seed = 0
MARL/run_mappo.py:16
↓ 1 callersMethodpartial_observer_step
Step the boundary parts of the current state interval 1. Split x_i(t) into two upper and lower intervals x_i_-(t) and x_i_+(t)
highway-env/highway_env/vehicle/uncertainty/prediction.py:325
↓ 1 callersFunctionplot
(time: np.ndarray, xx: np.ndarray, uu: np.ndarray)
highway-env/highway_env/vehicle/dynamics.py:217
↓ 1 callersFunctionplot_reward
()
MARL/common/plot_fn.py:18
↓ 1 callersFunctionpoint_in_rectangle
Check if a point is inside a rectangle :param point: a point (x, y) :param rect_min: x_min, y_min :param rect_max: x_max, y_max
highway-env/highway_env/utils.py:43
↓ 1 callersFunctionpoint_in_rotated_rectangle
Check if a point is inside a rotated rectangle :param point: a point :param center: rectangle center :param length: rectangle length
highway-env/highway_env/utils.py:54
↓ 1 callersFunctionpolytope
Get a matrix polytope from a parametrized matrix function and parameter box :param parametrized_f: parametrized matrix function :param p
highway-env/highway_env/interval.py:125
↓ 1 callersMethodposition_heading_along_route
Get the absolute position and heading along a route composed of several lanes at some local coordinates. :param route: a planned rou
highway-env/highway_env/road/road.py:217
↓ 1 callersMethodpredict_trajectory
Predict the future trajectory of the vehicle given a sequence of actions. :param actions: a sequence of future actions. :par
highway-env/highway_env/vehicle/controller.py:275
↓ 1 callersMethodpredictor_init
Initialize the LPV models used for interval prediction.
highway-env/highway_env/vehicle/uncertainty/prediction.py:228
↓ 1 callersMethodpredictor_step
Step the interval predictor dynamics :param dt: timestep [s]
highway-env/highway_env/vehicle/uncertainty/prediction.py:182
↓ 1 callersMethodrandomize_behavior
(self)
highway-env/highway_env/vehicle/behavior.py:56
↓ 1 callersMethodrespect_priorities
Resolve a conflict between two vehicles by determining who should yield :param v1: first vehicle :param v2: second vehicle
highway-env/highway_env/road/regulation.py:54
↓ 1 callersMethodsafety_supervisor
implementation of safety supervisor
highway-env/highway_env/envs/common/abstract.py:279
↓ 1 callersMethodset_control
(self, control: np.ndarray, state: np.ndarray = None)
highway-env/highway_env/interval.py:225
↓ 1 callersMethodshortest_path
Breadth-first search of shortest path from start to goal. :param start: starting node :param goal: goal node :return
highway-env/highway_env/road/road.py:130
↓ 1 callersFunctionsimulate
(dt: float = 0.1)
highway-env/highway_env/vehicle/dynamics.py:185
↓ 1 callersFunctionsmooth
(x, timestamps=9)
MARL/common/plot_fn.py:8
↓ 1 callersMethodspace
Get the observation space.
highway-env/highway_env/envs/common/observation.py:22
↓ 1 callersMethodspace
(self)
highway-env/highway_env/envs/common/observation.py:163
↓ 1 callersMethodspace
(self)
highway-env/highway_env/envs/common/observation.py:258
↓ 1 callersMethodspace
(self)
highway-env/highway_env/envs/common/action.py:106
↓ 1 callersFunctionspeed_control
Control the speed of the vehicle. Using a simple proportional controller. :param target_speed: the desired speed :return: an acceler
highway-env/highway_env/envs/common/mdp_controller.py:107
↓ 1 callersMethodspeed_to_index_default
Find the index of the closest speed allowed to a given speed. :param speed: an input speed [m/s] :return: the index of the c
highway-env/highway_env/vehicle/controller.py:261
↓ 1 callersFunctionsteering_control
Steer the vehicle to follow the center of an given lane. 1. Lateral position is controlled by a proportional controller yielding a lateral s
highway-env/highway_env/envs/common/mdp_controller.py:76
↓ 1 callersFunctionsteering_control
Steer the vehicle to follow the center of an given lane. 1. Lateral position is controlled by a proportional controller yielding a lateral s
highway-env/highway_env/envs/common/idm_controller.py:169
↓ 1 callersMethodsteering_control
Steer the vehicle to follow the center of an given lane. 1. Lateral position is controlled by a proportional controller yielding a l
highway-env/highway_env/vehicle/controller.py:113
↓ 1 callersMethodsteering_control
Linear controller with respect to parameters. Overrides the non-linear controller ControlledVehicle.steering_control() :par
highway-env/highway_env/vehicle/behavior.py:364
↓ 1 callersMethodstep
(self, dt: float)
highway-env/highway_env/interval.py:273
↓ 1 callersMethodstep
Propagate the vehicle state given its actions. Integrate a modified bicycle model with a 1st-order response on the steering wheel dy
highway-env/highway_env/vehicle/kinematics.py:122
↓ 1 callersMethodstep
(self, dt: float)
highway-env/highway_env/vehicle/dynamics.py:91
↓ 1 callersMethodstep_interval_predictor
Step an interval predictor with polytopic uncertainty. :param x_i: state interval at time t :param dt: time step :re
highway-env/highway_env/interval.py:295
↓ 1 callersMethodstep_naive_predictor
Step an interval predictor with box uncertainty. :param x_i: state interval at time t :param dt: time step :return:
highway-env/highway_env/interval.py:281
↓ 1 callersMethodstore_trajectories
Store the current model, min and max states to a trajectory list.
highway-env/highway_env/vehicle/uncertainty/prediction.py:361
↓ 1 callersMethodstriped_line
Draw a striped line on one side of a lane, on a surface. :param lane: the lane :param surface: the pygame surface :p
highway-env/highway_env/road/graphics.py:136
↓ 1 callersFunctiontrain
(args)
MARL/run_maacktr.py:42
↓ 1 callersFunctiontrain
(args)
MARL/run_mappo.py:41
↓ 1 callersMethodtrain
(self)
MARL/MAACKTR.py:137
↓ 1 callersMethodupdate_coordinates_frame
Ensure that the dynamics matrix A0 is Metzler. If not, design a coordinate transformation and apply it to the model and state interv
highway-env/highway_env/interval.py:198
↓ 1 callersMethodupdate_possible_routes
Update a list of possible routes that this vehicle could be following. - Add routes at the next intersection - Step the curr
highway-env/highway_env/vehicle/uncertainty/estimation.py:59
↓ 1 callersMethodvalue
(self, state, action)
MARL/MAACKTR.py:213
↓ 1 callersMethodvalue
(self, state, action)
MARL/MAPPO.py:232
↓ 1 callersMethodvalue
(self, state, action)
MARL/single_agent/Agent_common.py:157
↓ 1 callersFunctionvector_interval_section
(v_i: Interval, direction: Vector)
highway-env/highway_env/interval.py:80
↓ 1 callersMethodwindow_position
the world position of the center of the displayed window.
highway-env/highway_env/envs/common/graphics.py:142
↓ 1 callersFunctionwrap_to_pi
(x: float)
highway-env/highway_env/utils.py:39
Method__call__
(self, state)
MARL/single_agent/Model_common.py:18
Method__call__
(self, state, action)
MARL/single_agent/Model_common.py:36
Method__call__
(self, state)
MARL/single_agent/Model_common.py:59
Method__deepcopy__
Perform a deep copy but without copying the environment viewer.
highway-env/highway_env/envs/common/abstract.py:703
Method__del__
(self)
MARL/common/utils.py:84
Method__init__
A Linear Parameter-Varying system: dx = (a0 + sum(da))(x - center) + bd + c :param x0: initial state :param a0: nom
highway-env/highway_env/interval.py:150
Method__init__
(self, env: 'AbstractEnv', config: dict)
highway-env/highway_env/envs/common/observation.py:64
Method__init__
(self, env: 'AbstractEnv', horizon: int = 10, **kwargs: dict)
highway-env/highway_env/envs/common/observation.py:93
Method__init__
:param env: The environment to observe :param features: Names of features used in the observation :param vehicles_count: Numb
highway-env/highway_env/envs/common/observation.py:130
Method__init__
:param env: The environment to observe :param features: Names of features used in the observation :param vehicles_count: Numb
highway-env/highway_env/envs/common/observation.py:236
Method__init__
(self, env: 'AbstractEnv', scales: List[float], **kwargs: dict)
highway-env/highway_env/envs/common/observation.py:310
Method__init__
(self, env: 'AbstractEnv', attributes: List[str], **kwargs: dict)
highway-env/highway_env/envs/common/observation.py:344
Method__init__
(self, env: 'AbstractEnv', observation_config: dict, **kwar
highway-env/highway_env/envs/common/observation.py:365
Method__init__
(self, config: dict = None)
highway-env/highway_env/envs/common/abstract.py:42
Method__init__
Create a continuous action space. :param env: the environment :param acceleration_range: the range of acceleration values [m
highway-env/highway_env/envs/common/action.py:75
Method__init__
Create a discrete action space of meta-actions. :param env: the environment :param longitudinal: include longitudinal action
highway-env/highway_env/envs/common/action.py:163
Method__init__
(self, env: 'AbstractEnv', action_config: dict, **kwargs)
highway-env/highway_env/envs/common/action.py:199
Method__init__
(self, env: 'AbstractEnv')
highway-env/highway_env/envs/common/graphics.py:22
Method__init__
(self, road: Road, position: Vector, heading: float = 0,
highway-env/highway_env/vehicle/kinematics.py:36
Method__init__
(self, road: Road, position: Vector, heading: float = 0,
highway-env/highway_env/vehicle/controller.py:31
Method__init__
(self, road: Road, position: Vector, heading: float = 0, speed: float = 0)
highway-env/highway_env/vehicle/dynamics.py:27
Method__init__
(self, road: Road, position: Vector, heading: float = 0,
highway-env/highway_env/vehicle/behavior.py:301
Method__init__
(self, road: Road, position: Vector, heading: float = 0, sp
highway-env/highway_env/vehicle/uncertainty/estimation.py:34
Method__init__
:param theta_a_i: The interval of possible acceleration parameters :param theta_b_i: The interval of possible steering parameters
highway-env/highway_env/vehicle/uncertainty/prediction.py:31
Method__init__
(self, vehicle: Vehicle)
highway-env/highway_env/vehicle/uncertainty/prediction.py:400
Method__init__
(self)
highway-env/highway_env/road/road.py:22
Method__init__
New road. :param network: the road network describing the lanes :param vehicles: the vehicles driving on the road :p
highway-env/highway_env/road/road.py:236
Method__init__
:param road: the road instance where the object is placed in :param position: cartesian position of object in the surface :pa
highway-env/highway_env/road/objects.py:21
Method__init__
(self, size: Tuple[int, int], flags: object, surf: pygame.SurfaceType)
highway-env/highway_env/road/graphics.py:32
Method__init__
New straight lane. :param start: the lane starting position [m] :param end: the lane ending position [m] :param widt
highway-env/highway_env/road/lane.py:125
Method__init__
(self, center: Vector, radius: float, start_phase: float,
highway-env/highway_env/road/lane.py:217
Method__init__
(self, network: RoadNetwork = None, vehicles: List[Vehicle] = None, obstacles: List[Obstacle] = None,
highway-env/highway_env/road/regulation.py:16
Method__init__
(self, env, state_dim, action_dim, memory_capacity=10000, max_steps=None, ro
MARL/MAACKTR.py:27
Method__init__
(self, env, state_dim, action_dim, memory_capacity=10000, max_steps=None, ro
MARL/MAPPO.py:28
Method__init__
(self, env, state_dim, action_dim, memory_capacity=10000, max_steps=10000, r
MARL/MADQN.py:27
Method__init__
(self, bias)
MARL/common/utils.py:19
Method__init__
(self, filename, frame_size, fps)
MARL/common/utils.py:72
Method__init__
(self, model, lr=0.25, momentum=0.9, stat_
MARL/single_agent/kfac.py:87
Method__init__
(self, capacity)
MARL/single_agent/Memory_common.py:13
← previousnext →201–300 of 435, ranked by callers