Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cartpole STL Spec #1

Open
HornetGuppy opened this issue Sep 27, 2022 · 0 comments
Open

Cartpole STL Spec #1

HornetGuppy opened this issue Sep 27, 2022 · 0 comments

Comments

@HornetGuppy
Copy link

HornetGuppy commented Sep 27, 2022

Hi @anand-bala, I have been playing around with STL specs in cartpole example from this repo, however I could not reproduce the results shown in paper (https://jdeshmukh.github.io/Papers/iros19.pdf). The issue seems to be with spec definition in \bin\safe_rl\specs : stl.G(stl.F(x_dot< abs(0.01)) & (abs(theta) < 5) & (abs(x) < 0.5) & stl.F(abs(theta) < 1)). Isn't theta in radians?

FYI i have used stl.G(stl.F(abs(x_dot) < 0.01) & (abs(theta) < np.radians(2)) & (abs(x) < 0.5)) and alternatively stl.G(stl.F((abs(x_dot) < 0.01) & (abs(theta) < np.radians(12)) & (abs(x) < 0.5))) - based on textual definition in paper but also standard cart pole spec: stl.G(stl.F(abs(x_dot) < 0.01) & (abs(theta) < np.radians(12)) & (abs(x) < 2.4))

Am I missing something??
Cheers for the interesting work,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant