How to calculate surface area based on points of contact from a contact sensor

asked 2016-11-16 15:02:12 -0600

Francis123 gravatar image

updated 2016-11-16 16:54:34 -0600

Currently I a have world file that consists of a simple gripper and a t-handle shape floating in space. In the definitions for the models I defined contact sensors for each link that I wanted to detect collisions on of the simple gripper. Finally I wrote a model control plugin that accessed the simple gripper model, used gazebo subscriber callback functions to look at contact data from the different contact sensors, and I am able to look at each collision and the points of contact based of that collision. Similarly as this tutorial describes (

My questions are the following?

  1. Is there any pre-made functionality to calculate surface area of the collision as opposed to just looking at points of contact?
  2. Does each gazebo callback definition automatically create a separate thread to act asynchronously, because I have no understanding on whether all the callback queues and other functions are all running through one thread, versus multiple threads.
  3. Are there better sensors for detecting collisions on a gripper, versus a contact sensor?

Thanks Francis123

edit retag flag offensive close merge delete