Robotics StackExchange | Archived questions

Read static collision/contact information

Hi all,

I would like to implement the measurement step of a particle filter to localize an object given tactile information from contact with a robot.

For this, I would need to be able to query contacts for a given object pose for each of my particles (object pose), without running the simulation. Is there a way to access the collision checking of gazebo without running the simulation ? The idea would be to set the object pose, read contacts, set a new object pose, read contacts, etc, without the need for dynamics.

Would it be possible to write a gazebo plugin to do that ? I was thinking to get started from the Programmatic World Control plugin example (world plugin), or a system plugin. However, someone may have a better idea.

Thanks a lot for your help,

Nicolas


First update:

It seems that it is possible to run my "simulation" step by step programatically, using World->RunBlocking(). Also, there is the possibility to disable the physics engine (World->EnablePhysicsEngine(false)) and still have the collision checking. I will update this according to results.

Asked by nisommer on 2016-07-25 03:52:37 UTC

Comments

Answers