huawei-noah / SMARTS

Scalable Multi-Agent RL Training School for Autonomous Driving
MIT License
922 stars 186 forks source link

[Help Request] Does Any Non-False Event Indicate the End of an Episode (done=True)? #2095

Closed l1xiao closed 10 months ago

l1xiao commented 10 months ago

High Level Description

Hello,

I was wondering if any event being not False indicates that the variable 'done' is set to True, signifying the end of the current episode? I've looked through the documentation but couldn't find a clear answer.ref:https://smarts.readthedocs.io/en/latest/api/smarts.core.events.html#smarts.core.events.Events

Could you please help clarify this for me? Thank you for your time and assistance.

Version

1.4.0

Operating System

No response

Problems

No response

Gamenot commented 10 months ago

Hello, thank you for the question.

The event docstring does not confirm this because it only contributes. If any of events resolves true it indicates that the agent may be "done" if the agent interface also declares through the "done_criteria" that the given event should cause the agent to be done.

https://smarts.readthedocs.io/en/latest/api/smarts.core.agent_interface.html#smarts.core.agent_interface.DoneCriteria

l1xiao commented 10 months ago

Thanks for your replay!