@@ -765,7 +765,9 @@ def name(self):
765
765
766
766
767
767
neighborhood_vehicle_states_space_format = StandardConfigurableSpaceFormat (
768
- lambda obs : _format_neighborhood_vehicle_states (obs .neighborhood_vehicle_states ),
768
+ lambda obs , agent_interface : _format_neighborhood_vehicle_states (
769
+ obs .neighborhood_vehicle_states , agent_interface
770
+ ),
769
771
lambda agent_interface : bool (agent_interface .neighborhood_vehicle_states ),
770
772
"neighborhood_vehicle_states" ,
771
773
_configure_neighborhood_vehicle_states_space ,
@@ -1072,7 +1074,7 @@ class ObservationSpacesFormatter:
1072
1074
vehicles are insufficient, default feature values are padded.
1073
1075
"neighborhood_vehicle_states": dict({
1074
1076
"box":
1075
- Bounding box of neighbor vehicles. Defaults to np.array([0,0, 0]) per
1077
+ Bounding box of neighbor vehicles. Defaults to np.array([.0,.0,. 0]) per
1076
1078
vehicle. shape=(10,3). dtype=np.float32.
1077
1079
"heading":
1078
1080
Heading of neighbor vehicles in radians [-pi, pi]. Defaults to
@@ -1091,11 +1093,16 @@ class ObservationSpacesFormatter:
1091
1093
vehicle. shape=(10,). dtype=np.int8.
1092
1094
"position":
1093
1095
Coordinate of the center of neighbor vehicles' bounding box's bottom
1094
- plane. Defaults to np.array([0,0, 0]) per vehicle. shape=(10,3).
1096
+ plane. Defaults to np.array([.0,.0,. 0]) per vehicle. shape=(10,3).
1095
1097
dtype=np.float64.
1096
1098
"speed":
1097
1099
Speed of neighbor vehicles in m/s. Defaults to np.array([0]) per
1098
1100
vehicle. shape=(10,). dtype=np.float32.
1101
+ "lane_position":
1102
+ A reference line coordinates. Coordinates are s, t, and h relating
1103
+ to offset along lane, horizontal displacement, and surface
1104
+ displacement. Defaults to np.array([.0,.0,.0]) per vehicle. shape=(10,3).
1105
+ dtype=np.float64
1099
1106
})
1100
1107
1101
1108
Occupancy grid map. Map is binary, with 255 if a cell is occupied, else 0.
0 commit comments