Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

contact sensor has no member named contacts

I was following this tutorial , but as i try to build the code i get theis error msg:

/usr/include/boost/asio/detail/impl/socket_ops.ipp:266:5: note:   ‘boost::asio::detail::socket_ops::bind’
 int bind(socket_type s, const socket_addr_type* addr,
     ^
/home/rob/Documents/gazebo_contact_tutorial/ContactPlugin.cc: In member function ‘virtual void gazebo::ContactPlugin::OnUpdate()’:
/home/rob/Documents/gazebo_contact_tutorial/ContactPlugin.cc:43:34: error: ‘class gazebo::sensors::ContactSensor’ has no member named ‘contacts’
   contacts = this->parentSensor->contacts();

How can i remove this error?

contact sensor has no member named contacts

I was following this tutorial , but as i try to build the code i get theis error msg:

/usr/include/boost/asio/detail/impl/socket_ops.ipp:266:5: note:   ‘boost::asio::detail::socket_ops::bind’
 int bind(socket_type s, const socket_addr_type* addr,
     ^
/home/rob/Documents/gazebo_contact_tutorial/ContactPlugin.cc: In member function ‘virtual void gazebo::ContactPlugin::OnUpdate()’:
/home/rob/Documents/gazebo_contact_tutorial/ContactPlugin.cc:43:34: error: ‘class gazebo::sensors::ContactSensor’ has no member named ‘contacts’
   contacts = this->parentSensor->contacts();

How can i remove this error?error? I am using ros indigo with gazebo 2.2.

contact sensor has no member named contacts

I was following this tutorial , but as i try to build the code i get theis error msg:

/usr/include/boost/asio/detail/impl/socket_ops.ipp:266:5: note:   ‘boost::asio::detail::socket_ops::bind’
 int bind(socket_type s, const socket_addr_type* addr,
     ^
/home/rob/Documents/gazebo_contact_tutorial/ContactPlugin.cc: In member function ‘virtual void gazebo::ContactPlugin::OnUpdate()’:
/home/rob/Documents/gazebo_contact_tutorial/ContactPlugin.cc:43:34: error: ‘class gazebo::sensors::ContactSensor’ has no member named ‘contacts’
‘Contacts’
   contacts = this->parentSensor->contacts();
this->parentSensor->Contacts();

How can i remove this error? I am using ros indigo with gazebo 2.2.