LaserVisualPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-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 
18 #ifndef _LASERVISUAL_PRIVATE_HH_
19 #define _LASERVISUAL_PRIVATE_HH_
20 
21 #include <vector>
22 
23 #include "gazebo/msgs/MessageTypes.hh"
26 
27 namespace gazebo
28 {
29  namespace rendering
30  {
31  class DynamicLines;
32 
35  {
38 
41 
43  public: std::vector<DynamicLines *> rayFans;
44 
46  public: std::vector<DynamicLines *> noHitRayFans;
47 
49  public: std::vector<DynamicLines *> rayLines;
50 
52  public: boost::mutex mutex;
53 
55  public: bool receivedMsg;
56 
58  public: boost::shared_ptr<msgs::LaserScanStamped const> laserMsg;
59 
62  };
63  }
64 }
65 #endif
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
Private data for the Visual class.
Definition: VisualPrivate.hh:58
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
Forward declarations for transport.
transport::NodePtr node
Pointer to a node that handles communication.
Definition: LaserVisualPrivate.hh:37
Private data for the Laser Visual class.
Definition: LaserVisualPrivate.hh:34
boost::shared_ptr< msgs::LaserScanStamped const > laserMsg
The current contact message.
Definition: LaserVisualPrivate.hh:58
std::vector< DynamicLines * > noHitRayFans
Renders laser data for rays that do not hit obstacles.
Definition: LaserVisualPrivate.hh:46
transport::SubscriberPtr laserScanSub
Subscription to the laser data.
Definition: LaserVisualPrivate.hh:40
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
boost::mutex mutex
Mutex to protect the contact message.
Definition: LaserVisualPrivate.hh:52
std::vector< DynamicLines * > rayLines
Renders the laser data as a line list.
Definition: LaserVisualPrivate.hh:49
std::vector< DynamicLines * > rayFans
Renders the laser data as a triangle fan.
Definition: LaserVisualPrivate.hh:43
event::ConnectionPtr connection
Pre render connection.
Definition: LaserVisualPrivate.hh:61
bool receivedMsg
True if we have received a message.
Definition: LaserVisualPrivate.hh:55