KeyFrame.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2015 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 _KEYFRAME_HH_
18 #define _KEYFRAME_HH_
19 
20 #include <ignition/math/Vector3.hh>
21 #include <ignition/math/Quaternion.hh>
22 
24 #include "gazebo/math/Vector3.hh"
26 #include "gazebo/util/system.hh"
27 
28 namespace gazebo
29 {
30  namespace common
31  {
34 
38  {
41  public: KeyFrame(double _time);
42 
44  public: virtual ~KeyFrame();
45 
48  public: double GetTime() const;
49 
51  protected: double time;
52  };
53 
56  {
59  public: PoseKeyFrame(double _time);
60 
62  public: virtual ~PoseKeyFrame();
63 
67  public: void SetTranslation(
68  const math::Vector3 &_trans) GAZEBO_DEPRECATED(6.0);
69 
72  public: void Translation(const ignition::math::Vector3d &_trans);
73 
77  public: math::Vector3 GetTranslation() const
78  GAZEBO_DEPRECATED(6.0);
79 
82  public: ignition::math::Vector3d Translation() const;
83 
87  public: void SetRotation(const math::Quaternion &_rot)
88  GAZEBO_DEPRECATED(6.0);
89 
92  public: void Rotation(const ignition::math::Quaterniond &_rot);
93 
97  public: math::Quaternion GetRotation() const
98  GAZEBO_DEPRECATED(6.0);
99 
102  public: ignition::math::Quaterniond Rotation() const;
103 
105  protected: ignition::math::Vector3d translate;
106 
108  protected: ignition::math::Quaterniond rotate;
109  };
110 
113  {
116  public: NumericKeyFrame(double _time);
117 
119  public: virtual ~NumericKeyFrame();
120 
123  public: void SetValue(const double &_value);
124 
127  public: const double &GetValue() const;
128 
130  protected: double value;
131  };
133  }
134 }
135 #endif
ignition::math::Vector3d translate
the translation vector
Definition: KeyFrame.hh:105
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
A keyframe for a NumericAnimation.
Definition: KeyFrame.hh:112
#define GAZEBO_DEPRECATED(version)
Definition: CommonTypes.hh:47
#define GZ_COMMON_VISIBLE
Definition: system.hh:91
ignition::math::Quaterniond rotate
the rotation quaternion
Definition: KeyFrame.hh:108
A keyframe for a PoseAnimation.
Definition: KeyFrame.hh:55
A key frame in an animation.
Definition: KeyFrame.hh:37
A quaternion class.
Definition: Quaternion.hh:42
double value
numeric value
Definition: KeyFrame.hh:130
double time
time of key frame
Definition: KeyFrame.hh:51