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
Segmentation fault on pybullet loadURDF with floating joint #1148
Comments
We don't support a floating, spherical or planar joints at the moment. We only have a motorized prismatic and revolute joint. We should fix a crash for unsupported joints though. You could try to apply forces/torques instead? Alternatively, you could try to add 3 prismatic joints and 3 revolute joints (with additional links with small masses (don't make the mass extremely small). |
crash fixed here:: #1149 |
Can you explain what you try to achieve? If you want to control the linear and/or angular velocity of the sphere, with respect to a fixed world frame, we could introduce some kind of special motor constraint. (that you can create using pybullet.addConstraint(...). |
I'm trying to create a simple maze-like RL environment and was going to start with a spherical agent for simplicity. I'd like to be able to control the linear velocity of the sphere with respect to the world frame. |
It probably makes most sense to control only the angular velocity, and leave the friction transfer that to linear velocity etc. Since we don't have this constraint, you may want to use applyTorque instead. Then, you need to use 'setRealTimeSimulation(0), and apply this torque before each call to stepSimulation. When I have some time, I may create some example using 'createConstraint', it may require some additions in the pybullet bindings. |
I'm trying to load a sphere with a floating joint so that velocity control can be used. Pybullet gives an error on loadURDF:
If I switch to a fixed joint everything loads fine. Here is basic code to reproduce:
I am using newly updated pybullet 1.0.8. Is there a simple fix for this? Thanks.
sphere2_rolling_friction_jointed.urdf.txt
The text was updated successfully, but these errors were encountered: