jhwangbo / ME491_2022_project

MIT License
0 stars 2 forks source link

How to terminate when the robot falls #16

Closed KyeongminNam closed 1 year ago

KyeongminNam commented 1 year ago

I want to terminate when the robot falls out of the box. So I added if (gc_[2]<1.0){ return true; } in the function bool isTerminalState(float& terminalReward) final { in Environment.hpp, but this doesn't work. And even if I replaced this whole function with return true or return false, it didn't end. How should I implement this? Thank you.

jhwangbo commented 1 year ago

It shouldn't end. It should reset.