ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
3

ContactSensor in Gazebo/Fuerte

asked 2012-08-17 10:30:50 -0600

Norman Hendrich gravatar image

updated 2014-01-28 17:13:21 -0600

ngrennan gravatar image

Hi guys,

I am trying to get the Shadow-hand running in Fuerte, both the real one (EtherCAT) and the simulated one. For grasp planning, information about contacts/collision is obviously kind of important, and the Shadow hand simulation URDF model includes Gazebo bumpers (contact sensors) on all fingers. The sensors were working fine in Electric, and we got nice approximated wrenches from Gazebo.

In Fuerte, everything compiles, and the "deprecated" parser looks like it is doing the right thing of mapping the urdf <sensor:contact><geom> tag to the <contact><collision> conversions as required by newest SDF.

Problem is, the first subscriber to one of the bumper topics triggers a ContactSensor.GetContacts() call, which in turn detects that the "contacts" data-structure is read but was NEVER initialized...

Please don't blaim this on the Shadow-Hand stack. We also tried using the Gazebo contact-sensors on the PR2 gripper (vanilla Fuerte install on Ubuntu 12.04), and the same error message from "ContactSensor.cc:237" results. Simply broken in Fuerte, and possibly never tested before?

Cheers, Norman

edit retag flag offensive close merge delete

Comments

Ugo gravatar image Ugo  ( 2012-08-19 20:56:07 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-09-07 19:53:03 -0600

ThomasK gravatar image

I just fixed it and added a patch to your issue ... I just don't know whether there would be a more appropriate way to push those changes to gazebo or whether John/Nate need to do so (I hope they see it given that there was no response to your ticket for almost 3 weeks). I'll also open one at code.ros.org where John did reply to my other gazebo ticket.

edit flag offensive delete link more

Comments

it's fixed in the latest simulator_gazebo trunk now.

ThomasK gravatar image ThomasK  ( 2012-09-08 09:38:06 -0600 )edit

Question Tools

Stats

Asked: 2012-08-17 10:30:50 -0600

Seen: 1,734 times

Last updated: Sep 07 '12