Defining a Kinematic Object
Posted: Thu Oct 11, 2018 11:08 pm
I'd like to use PyBullet to explore a toy problem with a point robot interacting with a ball.
The input to the point robot would be (dx,dy) - a direct change in its position.
When the robot hits the ball, the robot should not react, but the ball should bounce away.
Reading from other posts, the way to do this seems to be to make the robot a kinematic object and the ball a dynamic object (by default).
How can I do this in PyBullet? None of the documentation mentions creating kinematic objects.
Once I have a kinematic object, how can I adjust its position directly? (currently using constraints)
I'm currently creating the robot and ball by loading URDF files - as far as I know nothing in there can specify that the object is kinematic.
Making the robot mass infinite might accomplish what I described, but can lead to a lot of other problems (including the ball flying off to infinity).
The input to the point robot would be (dx,dy) - a direct change in its position.
When the robot hits the ball, the robot should not react, but the ball should bounce away.
Reading from other posts, the way to do this seems to be to make the robot a kinematic object and the ball a dynamic object (by default).
How can I do this in PyBullet? None of the documentation mentions creating kinematic objects.
Once I have a kinematic object, how can I adjust its position directly? (currently using constraints)
I'm currently creating the robot and ball by loading URDF files - as far as I know nothing in there can specify that the object is kinematic.
Making the robot mass infinite might accomplish what I described, but can lead to a lot of other problems (including the ball flying off to infinity).