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

How to enforce joint limits (if they are supported)? #171

Open
vittorione94 opened this issue Oct 11, 2021 · 2 comments
Open

How to enforce joint limits (if they are supported)? #171

vittorione94 opened this issue Oct 11, 2021 · 2 comments

Comments

@vittorione94
Copy link

Hello,

I've recently started playing around with Tiny and I've reached the point where I'd like to limit the joint angles of the laikago model. I've tried to change the joint type in the urd file from continuous to revolute and specifying the lower and upper parameters but that didn't seem to affect the simulation at all. Going through the code it seems like joint limits are not implemented (but it might just be me looking in the wrong places).

Is there a better way of doing this than what I've described above?

Also if interested I have a working example of an OpenGL TDS viewer used via Python that could be added to the main repo :)

Thanks in advance for your time.

Best,
-Vittorio

@erwincoumans
Copy link
Owner

erwincoumans commented Oct 14, 2021

Thanks. We haven't implemented joint limits as constraints yet. For now, one option is to implement joint limits using PD controllers. Another is to avoid reaching the joint limits in your controller (for example, when training a neural network, terminate the episode when the joints come close to the limit).

@vittorione94
Copy link
Author

I see thanks for the answer! :)

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

2 participants