TVM  0.9.4
PositionFunction.h
Go to the documentation of this file.
1 
3 #pragma once
4 
6 #include <tvm/robot/Frame.h>
7 
8 namespace tvm
9 {
10 
11 namespace robot
12 {
13 
16 {
17 public:
18  SET_UPDATES(PositionFunction, Value, Velocity, Jacobian, NormalAcceleration)
19 
20 
26 
28  void reset();
29 
31  inline const Eigen::Vector3d & position() const { return pos_; }
32 
34  inline void position(const Eigen::Vector3d & pos) { pos_ = pos; }
35 
36 protected:
37  void updateValue();
41 
43 
45  Eigen::Vector3d pos_;
46 };
47 
48 } // namespace robot
49 
50 } // namespace tvm
#define SET_UPDATES(SelfT,...)
Definition: AbstractNode.h:138
#define TVM_DLLAPI
Definition: api.h:35
Definition: Function.h:45
Definition: PositionFunction.h:16
FramePtr frame_
Definition: PositionFunction.h:42
Eigen::Vector3d pos_
Definition: PositionFunction.h:45
void position(const Eigen::Vector3d &pos)
Definition: PositionFunction.h:34
Definition: AffineExprDetail.h:95
std::shared_ptr< Frame > FramePtr
Definition: Frame.h:99
Definition: Clock.h:12