ContactSensorPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _GAZEBO_SENSORS_CONTACTSENSOR_PRIVATE_HH_
18 #define _GAZEBO_SENSORS_CONTACTSENSOR_PRIVATE_HH_
19 
20 #include <vector>
21 #include <list>
22 #include <string>
23 #include <mutex>
24 
26 #include "gazebo/msgs/msgs.hh"
27 
28 namespace gazebo
29 {
30  namespace sensors
31  {
35  {
37  public: std::vector<std::string> collisions;
38 
41 
44 
46  public: mutable std::mutex mutex;
47 
49  public: msgs::Contacts contactsMsg;
50 
53  typedef std::list<boost::shared_ptr<msgs::Contacts const> > ContactMsgs_L;
54 
57  };
58  }
59 }
60 #endif
std::vector< std::string > collisions
Collisions this sensor monitors for contacts.
Definition: ContactSensorPrivate.hh:37
std::list< boost::shared_ptr< msgs::Contacts const > > ContactMsgs_L
ContactMsgs_L List of contact messages
Definition: ContactSensorPrivate.hh:53
msgs::Contacts contactsMsg
Contacts message used to output sensor data.
Definition: ContactSensorPrivate.hh:49
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
Forward declarations for transport.
Definition: ContactSensorPrivate.hh:34
transport::PublisherPtr contactsPub
Output contact information.
Definition: ContactSensorPrivate.hh:40
transport::SubscriberPtr contactSub
Subscription to contact messages from the physics engine.
Definition: ContactSensorPrivate.hh:43
ContactMsgs_L incomingContacts
List of incoming messages.
Definition: ContactSensorPrivate.hh:56
std::mutex mutex
Mutex to protect reads and writes.
Definition: ContactSensorPrivate.hh:46
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49