Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DongChen06/MARL_CAVs
/ functions
Functions
435 in github.com/DongChen06/MARL_CAVs
⨍
Functions
435
◇
Types & classes
60
↓ 1 callers
Function
is_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 callers
Method
is_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 callers
Function
lane_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 callers
Method
lateral_matrix_polytope
(self)
highway-env/highway_env/vehicle/uncertainty/prediction.py:276
↓ 1 callers
Method
longitudinal_matrix_polytope
(self)
highway-env/highway_env/vehicle/uncertainty/prediction.py:273
↓ 1 callers
Function
main
()
highway-env/highway_env/vehicle/dynamics.py:236
↓ 1 callers
Function
mobil
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 callers
Method
mobil
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 callers
Method
move_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 callers
Method
normalize
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 callers
Method
normalize_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 callers
Method
observe
(self)
highway-env/highway_env/envs/common/observation.py:103
↓ 1 callers
Method
observe
(self)
highway-env/highway_env/envs/common/observation.py:325
↓ 1 callers
Method
observe
(self)
highway-env/highway_env/envs/common/observation.py:358
↓ 1 callers
Function
parse_args
Description for this experiment: + medium: maacktr, regionalR + seed = 0
MARL/run_maacktr.py:17
↓ 1 callers
Function
parse_args
Description for this experiment: + easy: globalR + seed = 0
MARL/run_mappo.py:16
↓ 1 callers
Method
partial_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 callers
Function
plot
(time: np.ndarray, xx: np.ndarray, uu: np.ndarray)
highway-env/highway_env/vehicle/dynamics.py:217
↓ 1 callers
Function
plot_reward
()
MARL/common/plot_fn.py:18
↓ 1 callers
Function
point_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 callers
Function
point_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 callers
Function
polytope
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 callers
Method
position_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 callers
Method
predict_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 callers
Method
predictor_init
Initialize the LPV models used for interval prediction.
highway-env/highway_env/vehicle/uncertainty/prediction.py:228
↓ 1 callers
Method
predictor_step
Step the interval predictor dynamics :param dt: timestep [s]
highway-env/highway_env/vehicle/uncertainty/prediction.py:182
↓ 1 callers
Method
randomize_behavior
(self)
highway-env/highway_env/vehicle/behavior.py:56
↓ 1 callers
Method
respect_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 callers
Method
safety_supervisor
implementation of safety supervisor
highway-env/highway_env/envs/common/abstract.py:279
↓ 1 callers
Method
set_control
(self, control: np.ndarray, state: np.ndarray = None)
highway-env/highway_env/interval.py:225
↓ 1 callers
Method
shortest_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 callers
Function
simulate
(dt: float = 0.1)
highway-env/highway_env/vehicle/dynamics.py:185
↓ 1 callers
Function
smooth
(x, timestamps=9)
MARL/common/plot_fn.py:8
↓ 1 callers
Method
space
Get the observation space.
highway-env/highway_env/envs/common/observation.py:22
↓ 1 callers
Method
space
(self)
highway-env/highway_env/envs/common/observation.py:163
↓ 1 callers
Method
space
(self)
highway-env/highway_env/envs/common/observation.py:258
↓ 1 callers
Method
space
(self)
highway-env/highway_env/envs/common/action.py:106
↓ 1 callers
Function
speed_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 callers
Method
speed_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 callers
Function
steering_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 callers
Function
steering_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 callers
Method
steering_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 callers
Method
steering_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 callers
Method
step
(self, dt: float)
highway-env/highway_env/interval.py:273
↓ 1 callers
Method
step
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 callers
Method
step
(self, dt: float)
highway-env/highway_env/vehicle/dynamics.py:91
↓ 1 callers
Method
step_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 callers
Method
step_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 callers
Method
store_trajectories
Store the current model, min and max states to a trajectory list.
highway-env/highway_env/vehicle/uncertainty/prediction.py:361
↓ 1 callers
Method
striped_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 callers
Function
train
(args)
MARL/run_maacktr.py:42
↓ 1 callers
Function
train
(args)
MARL/run_mappo.py:41
↓ 1 callers
Method
train
(self)
MARL/MAACKTR.py:137
↓ 1 callers
Method
update_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 callers
Method
update_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 callers
Method
value
(self, state, action)
MARL/MAACKTR.py:213
↓ 1 callers
Method
value
(self, state, action)
MARL/MAPPO.py:232
↓ 1 callers
Method
value
(self, state, action)
MARL/single_agent/Agent_common.py:157
↓ 1 callers
Function
vector_interval_section
(v_i: Interval, direction: Vector)
highway-env/highway_env/interval.py:80
↓ 1 callers
Method
window_position
the world position of the center of the displayed window.
highway-env/highway_env/envs/common/graphics.py:142
↓ 1 callers
Function
wrap_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
← previous
next →
201–300 of 435, ranked by callers