You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.In the "highway-v0" scene, I want to add an obstacle at the specified coordinates, and this obstacle can appear in the observation space of ego-vehicle and does not collide with surrounding vehicles. How to realize this function?
2.In the "highway-v0" scene,the distance range of surrounding vehicles observed by ego-vehicle?
3.How can I get an observation of the nearest car in front of ego-vehicle in the current lane?
The text was updated successfully, but these errors were encountered:
They are both collidable, meaning they check for collisions, but only the Obstacle is solid (meaning a collision will result into a crash). So it looks like you need the Landmark.
This depends on your observation type. For the kinematics observation, the max distance is a constant (it should be made configuable, really)
3.How can I get an observation of the nearest car in front of ego-vehicle in the current lane?
There is no specific observation type for that, you'll have to implement it. You can get the nearest car in front of the ego-vehicle by calling front_vehicle, _ = env.road.neighbour_vehicles(env.vehicle), see
1.In the "highway-v0" scene, I want to add an obstacle at the specified coordinates, and this obstacle can appear in the observation space of ego-vehicle and does not collide with surrounding vehicles. How to realize this function?
2.In the "highway-v0" scene,the distance range of surrounding vehicles observed by ego-vehicle?
3.How can I get an observation of the nearest car in front of ego-vehicle in the current lane?
The text was updated successfully, but these errors were encountered: