MCPcopy Create free account

hub / github.com/DongChen06/MARL_CAVs / functions

Functions435 in github.com/DongChen06/MARL_CAVs

Method__init__
(self, capacity)
MARL/single_agent/Memory_common.py:55
Method__init__
(self, state_dim, action_dim, hidden_size, output_size=1)
MARL/single_agent/Model_common.py:30
Method__init__
(self, state_dim, action_dim, hidden_size, actor_output_act, critic_output_size=1)
MARL/single_agent/Model_common.py:50
Method__init__
(self, env, state_dim, action_dim, memory_capacity=10000, max_steps=10000, r
MARL/single_agent/Agent_common.py:24
Method__len__
(self)
MARL/single_agent/Memory_common.py:46
Method__len__
(self)
MARL/single_agent/Memory_common.py:85
Method__repr__
(self)
highway-env/highway_env/vehicle/kinematics.py:265
Method__repr__
(self)
highway-env/highway_env/road/road.py:380
Method__repr__
(self)
highway-env/highway_env/road/objects.py:80
Method_discount_reward
(self, rewards, final_value)
MARL/MADQN.py:204
Method_is_terminal
The episode is over when a collision occurs or when the access ramp has been passed.
highway-env/highway_env/envs/merge_env_v1.py:144
Method_reset
(self, num_CAV=0)
highway-env/highway_env/envs/merge_env_v1.py:154
Method_reward
(self, action: int)
highway-env/highway_env/envs/merge_env_v1.py:58
Method_save_grad_output
(self, module, grad_input, grad_output)
MARL/single_agent/kfac.py:160
Method_save_input
(self, module, input)
MARL/single_agent/kfac.py:143
Method_soft_update_target
(self, target, source)
MARL/single_agent/Agent_common.py:139
Method_take_n_steps
(self)
MARL/single_agent/Agent_common.py:95
Method_take_one_step
(self)
MARL/single_agent/Agent_common.py:74
Methodacceleration
Compute an acceleration command with a Linear Model. The acceleration is chosen so as to: - reach a target speed; -
highway-env/highway_env/vehicle/behavior.py:329
Methodact
(self, action: np.ndarray)
highway-env/highway_env/envs/common/action.py:114
Methodact
(self, action: int)
highway-env/highway_env/envs/common/action.py:193
Methodact
(self, action: Action)
highway-env/highway_env/envs/common/action.py:218
Methodact
Perform a high-level action to change the desired lane or speed. - If a high-level action is provided, update the target speed and l
highway-env/highway_env/vehicle/controller.py:75
Methodact
(self, action: Union[dict, str] = None)
highway-env/highway_env/vehicle/behavior.py:317
Methodact
(self, action: Union[dict, str] = None)
highway-env/highway_env/vehicle/uncertainty/estimation.py:49
Methodact
Decide the actions of each entity on the road.
highway-env/highway_env/road/road.py:269
Methodassume_model_is_valid
Get a copy of this vehicle behaving according to one of its possible routes. :param index: index of the route to consider :r
highway-env/highway_env/vehicle/uncertainty/estimation.py:93
Methodcall_vehicle_method
(self, args: Tuple[str, Tuple[object]])
highway-env/highway_env/envs/common/abstract.py:685
Methodchange_vehicles
Change the type of all vehicles on the road :param vehicle_class_path: The path of the class of behavior for other vehicles
highway-env/highway_env/envs/common/abstract.py:643
Methodcheck_collision
Worst-case collision check. For robust planning, we assume that MDPVehicles collide with the uncertainty set of an IntervalVehicle,
highway-env/highway_env/vehicle/uncertainty/prediction.py:366
Functionclass_from_path
(path: str)
highway-env/highway_env/utils.py:20
Methodclose
Close the environment. Will close the environment viewer if it exists.
highway-env/highway_env/envs/common/abstract.py:553
Methodcollect_data
Collect the features for each possible route, and true observed outputs.
highway-env/highway_env/vehicle/uncertainty/estimation.py:54
Methodconfigure
(self, config: dict)
highway-env/highway_env/envs/common/abstract.py:133
Functionconstrain
(x: float, a: float, b: float)
highway-env/highway_env/utils.py:26
Methodcontrolled_vehicle
The vehicle acted upon. If not set, the first controlled vehicle is used by default.
highway-env/highway_env/envs/common/action.py:49
Functioncopy_file
(tar_dir)
MARL/common/utils.py:88
Methodcreate_from
Create a new vehicle from an existing one. The vehicle dynamics and target dynamics are copied, other properties are default.
highway-env/highway_env/vehicle/controller.py:45
Methodcreate_from
Create a new vehicle from an existing one. The vehicle dynamics and target dynamics are copied, other properties are default.
highway-env/highway_env/vehicle/behavior.py:60
Methodcreate_random
Create a random vehicle on the road. The lane and /or speed are chosen randomly, while longitudinal position is chosen behind the la
highway-env/highway_env/vehicle/kinematics.py:72
Methoddefault_config
(cls)
highway-env/highway_env/envs/merge_env_v1.py:290
Methodderivative
See Chapter 2 of Lateral Vehicle Dynamics. Vehicle Dynamics and Control. Rajamani, R. (2011) :return: the state derivative
highway-env/highway_env/vehicle/dynamics.py:44
Methodderivative_linear
Linearized lateral dynamics. This model is based on the following assumptions: - the vehicle is moving with a co
highway-env/highway_env/vehicle/dynamics.py:72
Methoddestination
(self)
highway-env/highway_env/vehicle/kinematics.py:219
Methoddestination_direction
(self)
highway-env/highway_env/vehicle/kinematics.py:227
Methoddirection
(self)
highway-env/highway_env/vehicle/kinematics.py:211
Methoddirection
(self)
highway-env/highway_env/road/objects.py:70
Methoddisplay
Display the road lanes on a surface. :param road: the road to be displayed :param surface: the pygame surface
highway-env/highway_env/road/graphics.py:229
Methoddisplay
Display a road objects on a pygame surface. The objects is represented as a colored rotated rectangle :param object_: the v
highway-env/highway_env/road/graphics.py:284
Functiondo_every
(duration: float, timer: float)
highway-env/highway_env/utils.py:11
Methoddraw_ground
(cls, lane: AbstractLane, surface: WorldSurface, color: Tuple[float], width: float, draw_s
highway-env/highway_env/road/graphics.py:208
Functionentropy
(p)
MARL/single_agent/utils_common.py:10
Methodevaluation
(self, env, output_dir, eval_episodes=1, is_train=True)
MARL/MAACKTR.py:225
Methodevaluation
(self, env, eval_episodes=10)
MARL/single_agent/Agent_common.py:161
Methodforward
(self, x)
MARL/common/utils.py:23
Methodforward
(self, input)
MARL/single_agent/kfac.py:80
Methodget_available_actions
Get the list of currently available actions. Lane changes are not available on the boundary of the road, and speed changes are not a
highway-env/highway_env/envs/common/abstract.py:564
Methodget_speed_index
(cls, vehicle: Vehicle)
highway-env/highway_env/vehicle/controller.py:272
Methodhandle_event
Handle pygame events for moving and zooming in the displayed area. :param event: a pygame event
highway-env/highway_env/road/graphics.py:86
Methodheading_at
(self, longitudinal: float)
highway-env/highway_env/road/lane.py:158
Methodheading_at
(self, longitudinal: float)
highway-env/highway_env/road/lane.py:245
Functionidentity
(x)
MARL/single_agent/utils_common.py:6
Functionindex_to_one_hot
(index, dim)
MARL/single_agent/utils_common.py:18
Methodinit_test_seeds
(self, test_seeds)
highway-env/highway_env/envs/merge_env_v1.py:283
Methodinteract
(self)
MARL/MAACKTR.py:80
Methodinteract
(self)
MARL/single_agent/Agent_common.py:70
Functionkl_log_probs
(log_p1, log_p2)
MARL/common/utils.py:13
Functionkl_log_probs
(log_p1, log_p2)
MARL/single_agent/utils_common.py:14
Methodlanes_list
(self)
highway-env/highway_env/road/road.py:200
Methodlateral_matrix_polytope
(self)
highway-env/highway_env/vehicle/uncertainty/estimation.py:19
Methodlateral_structure
(self)
highway-env/highway_env/vehicle/behavior.py:436
Functionlmap
Linear map of value v with range x to desired range y.
highway-env/highway_env/utils.py:15
Methodload
(self, model_dir, global_step=None, train_mode=False)
MARL/MAACKTR.py:299
Methodload
(self, model_dir, global_step=None, train_mode=False)
MARL/MADQN.py:212
Methodlocal_coordinates
(self, position: np.ndarray)
highway-env/highway_env/road/lane.py:164
Methodlocal_coordinates
(self, position: np.ndarray)
highway-env/highway_env/road/lane.py:253
Methodlongitudinal_matrix_polytope
(self)
highway-env/highway_env/vehicle/uncertainty/estimation.py:16
Methodlongitudinal_structure
(self)
highway-env/highway_env/vehicle/behavior.py:391
Methodmake_on_lane
Create a vehicle on a given lane at a longitudinal position. :param road: the road where the vehicle is driving :param lane_
highway-env/highway_env/vehicle/kinematics.py:56
Methodmake_on_lane
Create an object on a given lane at a longitudinal position. :param road: the road instance where the object is placed in :p
highway-env/highway_env/road/objects.py:36
Methodmaximum_speed
Compute the maximum allowed speed to avoid Inevitable Collision States. Assume the front vehicle is going to brake at full decelerat
highway-env/highway_env/vehicle/behavior.py:158
Functionnot_zero
(x: float, eps: float = 1e-2)
highway-env/highway_env/utils.py:30
Methodobserve
(self)
highway-env/highway_env/envs/common/observation.py:79
Methodobserve
(self)
highway-env/highway_env/envs/common/observation.py:194
Methodobserve
(self)
highway-env/highway_env/envs/common/observation.py:278
Methodobserve
(self)
highway-env/highway_env/envs/common/observation.py:380
Methodobserver_vehicle
The vehicle observing the scene. If not set, the first controlled vehicle is used by default.
highway-env/highway_env/envs/common/observation.py:31
Methodon_road
Is the vehicle on its current lane, or off-road ?
highway-env/highway_env/vehicle/kinematics.py:234
Methodplan_route_to
Plan a route to a destination in the road network :param destination: a node in the road network
highway-env/highway_env/vehicle/controller.py:59
Functionpoint_in_ellipse
Check if a point is inside an ellipse :param point: a point :param center: ellipse center :param angle: ellipse main axis angle
highway-env/highway_env/utils.py:72
Methodposition
Convert local lane coordinates to a world position. :param longitudinal: longitudinal lane coordinate [m] :param lateral: la
highway-env/highway_env/road/lane.py:21
Methodposition
(self, longitudinal: float, lateral: float)
highway-env/highway_env/road/lane.py:241
Methodpush
(self, states, actions, rewards, next_states=None, dones=None)
MARL/single_agent/Memory_common.py:24
Methodrandomize_behavior
(self)
highway-env/highway_env/vehicle/behavior.py:322
Methodrandomize_behaviour
(self)
highway-env/highway_env/envs/common/abstract.py:693
Methodrecover_from_stop
If stopped on the wrong lane, try a reversing maneuver. :param acceleration: desired acceleration from IDM :return: suggeste
highway-env/highway_env/vehicle/behavior.py:268
Functionrotated_rectangles_intersect
Do two rotated rectangles intersect? :param rect1: (center, length, width, angle) :param rect2: (center, length, width, angle) :retu
highway-env/highway_env/utils.py:89
Methodsample
(self, batch_size)
MARL/single_agent/Memory_common.py:35
Methodsave
(self, model_dir, global_step)
MARL/MAACKTR.py:330
Methodsave
(self, model_dir, global_step)
MARL/MADQN.py:243
← previousnext →301–400 of 435, ranked by callers