contact sensor is not work in Gazebo8 and Gazebo9

asked 2018-02-10 04:01:29 -0600

longwoo gravatar image

updated 2018-02-11 06:36:31 -0600

  • In gazebo8 and gazebo9, the contact atrribute in ContactSensor class is Not work. When I get a ContactSensor by contacts =this->ContactSensor->Contacts(), Then the results of contacts.contact_size(), and other related values are all zero or empty.

  • But method like this->ContactSensor->IsActive(), this->ContactSensor->GetCollisionName(0) , this->ContactSensor->UpdateRate() and this->ContactSensor->Id() is work. Why?

  • By the way, gazebo4 is OK.

edit retag flag offensive close merge delete