- 3.0.2 rigid body dynamics module.
WholeBodyController-impl.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 
8 namespace ct {
9 namespace rbd {
10 
11 template <size_t NJOINTS>
13 {
14 }
15 
16 template <size_t NJOINTS>
18 {
19 }
20 
21 template <size_t NJOINTS>
23 {
24  throw std::runtime_error("Not implemented");
25 }
26 
27 template <size_t NJOINTS>
29  const core::Time& t,
31 {
33  x.fromStateVectorEulerXyz(state);
35 
36  jointController_.computeControl(jState, t, control);
37 }
38 
39 template <size_t NJOINTS>
41 {
42  return jointController_;
43 }
44 
45 } // namespace rbd
46 } // namespace ct
JointPositionPIDController< NJOINTS > & getJointController()
Definition: WholeBodyController-impl.h:40
joint states and base states
Definition: RBDState.h:27
A joint position controller using a PID controller for all joints.
Definition: JointPositionPIDController.h:19
virtual ~WholeBodyController()
Definition: WholeBodyController-impl.h:17
virtual WholeBodyController< NJOINTS > * clone() const override
Definition: WholeBodyController-impl.h:22
virtual void computeControl(const core::StateVector< STATE_DIM > &state, const core::Time &t, core::ControlVector< NJOINTS > &control) override
Definition: WholeBodyController-impl.h:28
ct::core::StateVector< state_dim > x
void fromStateVectorEulerXyz(const state_vector_euler_t &state)
Definition: RBDState.h:180
joint_state_vector_t & toImplementation()
Definition: JointState.h:159
WholeBodyController()
Definition: WholeBodyController-impl.h:12
JointState< NJOINTS, SCALAR > & joints()
get joint states
Definition: RBDState.h:94
double Time
Definition: WholeBodyController.h:17