Vector3Stats.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-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_VECTOR3_STATS_HH_
18 #define _GAZEBO_VECTOR3_STATS_HH_
19 
20 #include <string>
22 #include "gazebo/math/Vector3.hh"
23 #include "gazebo/util/system.hh"
24 
25 namespace gazebo
26 {
27  namespace math
28  {
31 
33  class Vector3StatsPrivate;
34 
38  {
40  public: Vector3Stats();
41 
43  public: ~Vector3Stats();
44 
47  public: void InsertData(const Vector3 &_data);
48 
58  public: bool InsertStatistic(const std::string &_name);
59 
67  public: bool InsertStatistics(const std::string &_names);
68 
70  public: void Reset();
71 
74  public: SignalStats X() const;
75 
78  public: SignalStats Y() const;
79 
82  public: SignalStats Z() const;
83 
86  public: SignalStats Mag() const;
87 
90  public: SignalStats &X();
91 
94  public: SignalStats &Y();
95 
98  public: SignalStats &Z();
99 
102  public: SignalStats &Mag();
103 
106  };
108  }
109 }
110 #endif
111 
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
Collection of statistics for a scalar signal.
Definition: SignalStats.hh:124
Collection of statistics for a Vector3 signal.
Definition: Vector3Stats.hh:37
Private data class for the Vector3Stats class.
Definition: Vector3StatsPrivate.hh:27
#define GZ_MATH_VISIBLE
Definition: system.hh:134
Vector3StatsPrivate * dataPtr
Pointer to private data.
Definition: Vector3Stats.hh:105