Page 1 of 1

PyBullet and ROS?

Posted: Fri Mar 08, 2019 3:04 pm
by jonathans
So I'm wondering if there's a reasonably simple way of connecting ROS and PyBullet? Is there a tutorial somewhere? I've looked but couldn't find anything.

What I want is a good, free physics engine to simulate a robot that is in contact with the environment. I want friction and all these other contact related things too. I want it to be fast and stable as well which is why I figured it might be better to go with PyBullet than Gazebo-Bullet. I want ROS mainly for doing all the control, kinematics and path planning etc. so I don't have to implement that from scratch.

If you recommend some completely different sw setup for this, I'd be happy to hear it.

Re: PyBullet and ROS?

Posted: Sat Mar 09, 2019 1:13 am
by Erwin Coumans
It should be reasonably easy to write a bridge between ROS and PyBullet, for example in Python.

PyBullet can already load URDF and SDF files and you can get all information and control through Python.
Python can communicate to a PyBullet simulator and share ROS topics.
There is no out-of-the box solution at the moment though.


I created this issue, in case someone has time to help out:
https://github.com/bulletphysics/bullet3/issues/2151

As alternative, there is Gibson, which uses PyBullet and its own rendering. It seems to be ROS bindings: https://github.com/StanfordVL/GibsonEnv

Re: PyBullet and ROS?

Posted: Tue Nov 01, 2022 1:17 pm
by cemr
Hi, we have developed an interface between ROS and PyBullet that was recently accepted at CoRL 2022:

https://arxiv.org/abs/2210.06887

We will be making the code open source very soon (link in the paper).