bulletphysics / bullet3

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
http://bulletphysics.org
Other
12.45k stars 2.86k forks source link

Teleop Compatibility #1205

Closed mlee156 closed 5 years ago

mlee156 commented 7 years ago

Is there any support for keyboard control of robots currently for pybullet? If not do you have any advice on how to implement something like this. I was thinking something similar to Teleop control in Gazebo.

Thanks! Albert

erwincoumans commented 7 years ago

Did you mean keyboard control of simulated robots?

Otherwise, how do you exactly interface with controls of real robots?

mlee156 commented 7 years ago

Keyboard control of simulated robots

erwincoumans commented 7 years ago

That should be easy to do: pybullet has a getKeyboardEvents and you simply use that to control the robot using setJointMotorControl2(...).