huawei-noah / SMARTS

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

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

Closed l1xiao closed 1 year ago

l1xiao commented 1 year 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 1 year 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 1 year ago

Thanks for your replay!