- 3.0.2 rigid body dynamics module.
CoordinateBase.h
Go to the documentation of this file.
1 /**********************************************************************************************************************
2 This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich.
3 Licensed under the BSD-2 license (see LICENSE file in main directory)
4 **********************************************************************************************************************/
5 
6 #pragma once
7 
9 
10 namespace ct {
11 namespace rbd {
12 
17 template <size_t NUM_OUTPUTS, size_t NUM_JOINTS>
19 {
20 public:
21  typedef std::shared_ptr<CoordinateBase<NUM_OUTPUTS, NUM_JOINTS>> ptr;
23  typedef Eigen::Matrix<double, NUM_OUTPUTS, 1> coordinate_t;
24 
26  virtual ~CoordinateBase() {}
27  virtual coordinate_t getCoordinate(const state_t& state) = 0;
28 
29 private:
30 };
31 
32 } // namespace rbd
33 } // namespace ct
Eigen::Matrix< double, NUM_OUTPUTS, 1 > coordinate_t
Definition: CoordinateBase.h:23
std::shared_ptr< CoordinateBase< NUM_OUTPUTS, NUM_JOINTS > > ptr
Definition: CoordinateBase.h:21
CoordinateBase()
Definition: CoordinateBase.h:25
virtual ~CoordinateBase()
Definition: CoordinateBase.h:26
virtual coordinate_t getCoordinate(const state_t &state)=0
Definition: CoordinateBase.h:18
RBDState< NUM_JOINTS > state_t
Definition: CoordinateBase.h:22