Closed ensan-hcl closed 2 months ago
Hi,
Sorry for the late reply.
Yes, it is expected. To achieve your goal, you can make a new sub-environment with the done_function
overridden. So you can have any termination conditions according to your needs. We are not able to support this officially as different user has different requests. It is better to make it highly customizable.
I understood. It sounds very reasonable. Thank you for your response!
Description
Currently, in the MetaDrive simulator, specifying
out_of_route_done=False
in the configuration should theoretically prevent the simulation from ending when the vehicle deviates from the route. However, the simulation terminates as soon asvehicle.on_lane
becomesFalse
, based on the implementation.Questions
Intended Behavior Clarification: Is it intended that the simulation ends when
vehicle.on_lane
becomesFalse
, even whenout_of_route_done=False
is specified in the configuration?Improvement Suggestions:
Is it possible to modify the behavior so that the simulation does not end when
vehicle.on_lane
becomesFalse
, even whenout_of_route_done=False
? This will be possible by just moving thevehicle.on_lane
checks insideif
. Alternatively, could a new configuration parameter, such asout_of_lane_done
, be introduced to control the termination of the simulation when the vehicle deviates from the lane?Additional Information
MetaDrive version: 0.4.2.3