OpenWalker Project
Documentation of the ROS Packages
force.h
Go to the documentation of this file.
1 
34 #ifndef OPEN_WALKER_CORE_FORCE_H
35 #define OPEN_WALKER_CORE_FORCE_H
36 
37 #include <ow_core/force_ref.h>
38 
39 namespace ow_core
40 {
48 template <typename _Scalar>
49 class Force :
50  public ForceRef<Eigen::Matrix<_Scalar,3,1> >
51 {
52 public:
53  typedef _Scalar Scalar;
54  typedef Eigen::Matrix<_Scalar,3,1> Derived;
55  typedef ForceRef<Derived> Base;
56 
57 protected:
58  Derived data_;
59 
60 public:
64  Force() :
65  Base(data_)
66  {
67  }
68 
73  Force(const Scalar& x, const Scalar& y, const Scalar& z) :
74  data_(x,y,z),
75  Base(data_)
76  {
77  }
78 
85  template <typename OtherDerived>
86  Force(const Eigen::EigenBase<OtherDerived>& other) :
87  data_(other),
88  Base(data_)
89  {
90  }
91 
95  using Base::operator=;
96 
97 };
98 
99 } // namespace ow_core
100 
101 #endif // OPEN_WALKER_CORE_FORCE_H
The ForceRef class.
Definition: force_ref.h:52
Definition: angular_acceleration.h:39
The ForceRef class.
Definition: force.h:49
Force()
Default Constructor.
Definition: force.h:64
Force(const Eigen::EigenBase< OtherDerived > &other)
Copy constructor.
Definition: force.h:86
Force(const Scalar &x, const Scalar &y, const Scalar &z)
Assignment from Scalar values.
Definition: force.h:73