All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ContactVisualPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2014 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 
18 #ifndef _CONTACTVISUAL_PRIVATE_HH_
19 #define _CONTACTVISUAL_PRIVATE_HH_
20 
21 #include <string>
22 #include <vector>
23 
24 #include "gazebo/msgs/msgs.hh"
27 
28 
29 namespace Ogre
30 {
31  class Entity;
32  class SceneNode;
33 }
34 
35 namespace gazebo
36 {
37  namespace rendering
38  {
39  class DynamicLines;
40 
43  {
46 
49 
51  public: boost::shared_ptr<msgs::Contacts const> contactsMsg;
52 
54  public: std::vector<event::ConnectionPtr> connections;
55 
57  public: class ContactPoint
58  {
60  public: Ogre::SceneNode *sceneNode;
63  };
64 
66  public: std::vector<ContactVisualPrivate::ContactPoint *> points;
67 
69  public: boost::mutex mutex;
70 
72  public: bool receivedMsg;
73 
75  public: bool enabled;
76 
78  public: std::string topicName;
79  };
80  }
81 }
82 #endif
Class for drawing lines that can change.
Definition: DynamicLines.hh:43
A contact point visualization.
Definition: ContactVisualPrivate.hh:57
Private data for the Visual class.
Definition: VisualPrivate.hh:56
bool enabled
True if this visualization is enabled.
Definition: ContactVisualPrivate.hh:75
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:48
Ogre::SceneNode * sceneNode
The scene node for the contact visualization.
Definition: ContactVisualPrivate.hh:60
Private data for the Arrow Visual class.
Definition: ContactVisualPrivate.hh:42
Forward declarations for transport.
boost::mutex mutex
Mutex to protect the contact message.
Definition: ContactVisualPrivate.hh:69
std::vector< ContactVisualPrivate::ContactPoint * > points
All the contact points.
Definition: ContactVisualPrivate.hh:66
DynamicLines * depth
Definition: ContactVisualPrivate.hh:62
DynamicLines * normal
Normal and depth for the contact point.
Definition: ContactVisualPrivate.hh:62
std::vector< event::ConnectionPtr > connections
All the event connections.
Definition: ContactVisualPrivate.hh:54
transport::SubscriberPtr contactsSub
Subscription to the contact data.
Definition: ContactVisualPrivate.hh:48
std::string topicName
Name of the topic contact information is published on.
Definition: ContactVisualPrivate.hh:78
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:52
boost::shared_ptr< msgs::Contacts const > contactsMsg
The current contact message.
Definition: ContactVisualPrivate.hh:51
transport::NodePtr node
Node for communication.
Definition: ContactVisualPrivate.hh:45
bool receivedMsg
True if we have received a message.
Definition: ContactVisualPrivate.hh:72