- 3.0.2 models module.
InvertedPendulumJointLimits.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 #include <math.h>
9 
10 namespace ct {
11 namespace models {
12 namespace InvertedPendulum {
13 
14 template <typename SCALAR = double>
16 {
18  jointLowerLimit << -M_PI;
19 
20  return jointLowerLimit;
21 }
22 
23 template <typename SCALAR = double>
25 {
27  jointUpperLimit << M_PI;
28 
29  return jointUpperLimit;
30 }
31 
32 template <typename SCALAR = double>
34 {
36  jointVelocityLimit << 2.0;
37 
38  return jointVelocityLimit;
39 }
40 
41 }
42 }
43 }
const ct::rbd::JointState< 1, SCALAR >::Position & jointLowerLimit()
Definition: InvertedPendulumJointLimits.h:15
const ct::rbd::JointState< 1, SCALAR >::Velocity & jointVelocityLimit()
Definition: InvertedPendulumJointLimits.h:33
const ct::rbd::JointState< 1, SCALAR >::Position & jointUpperLimit()
Definition: InvertedPendulumJointLimits.h:24