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

pybullet needs setLinearFactor/setAngularFactor to lock axis #1028

Closed
benelot opened this issue Mar 19, 2017 · 1 comment
Closed

pybullet needs setLinearFactor/setAngularFactor to lock axis #1028

benelot opened this issue Mar 19, 2017 · 1 comment

Comments

@benelot
Copy link
Contributor

benelot commented Mar 19, 2017

We will need this to replicate the 2D RL environments such as humanoid/half-cheetah. I believe it is not yet available. Maybe I will start an attempt to add it. Or is there another trick to achieve this for now?

@erwincoumans
Copy link
Member

erwincoumans commented Mar 19, 2017

Please see the MJCF files, it loads the original MuJoCo environments. 2D works automatically, since it fixes the base and adds single DOFs at a time. Try running Bullet ExampleBrowser / Importers / ImportMJCF a few times and watch the various mjcf files. By default the joints are locked (motors with target 0) just use pybullet.loadMJCF and set the motors as desired.

There are also a few other ways to create this effect (using maximal coordinate constraints or btMultiBody and adding the right degrees of freedom using a fixed base).

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