Robotics Library  0.7.0
Body.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2009, Markus Rickert
3 // All rights reserved.
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are met:
7 //
8 // * Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright notice,
11 // this list of conditions and the following disclaimer in the documentation
12 // and/or other materials provided with the distribution.
13 //
14 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
18 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24 // POSSIBILITY OF SUCH DAMAGE.
25 //
26 
27 #ifndef RL_MDL_BODY_H
28 #define RL_MDL_BODY_H
29 
30 #include <unordered_set>
31 
32 #include "Frame.h"
33 
34 namespace rl
35 {
36  namespace mdl
37  {
38  class Body : public Frame
39  {
40  public:
41  Body();
42 
43  virtual ~Body();
44 
45  void forwardAcceleration();
46 
47  void forwardDynamics1();
48 
49  void forwardDynamics2();
50 
51  void forwardDynamics3();
52 
53  void forwardPosition();
54 
55  void forwardVelocity();
56 
57  void inverseDynamics1();
58 
59  void inverseDynamics2();
60 
62 
64 
66 
68 
69  bool collision;
70 
72 
74 
76 
77  ::std::unordered_set<Body*> selfcollision;
78 
79  protected:
80 
81  private:
82 
83  };
84  }
85 }
86 
87 #endif // RL_MDL_BODY_H
rl::mdl::Body::forwardAcceleration
void forwardAcceleration()
Definition: Body.cpp:54
rl::mdl::Body::cm
::rl::math::Vector3 cm
Definition: Body.h:67
rl::mdl::Body::forwardDynamics2
void forwardDynamics2()
Definition: Body.cpp:68
rl::mdl::Body::setCenterOfMass
void setCenterOfMass(const ::rl::math::Real &x, const ::rl::math::Real &y, const ::rl::math::Real &z)
Definition: Body.cpp:100
rl::math::Vector3
::Eigen::Matrix< Real, 3, 1 > Vector3
Definition: Vector.h:46
rl::mdl::Body::forwardVelocity
void forwardVelocity()
Definition: Body.cpp:83
rl::mdl::Body::fX
::rl::math::ForceVector fX
Definition: Body.h:71
Frame.h
rl::mdl::Body::selfcollision
::std::unordered_set< Body * > selfcollision
Definition: Body.h:77
rl::mdl::Body::m
::rl::math::Real m
Definition: Body.h:75
rl::mdl::Body::~Body
virtual ~Body()
Definition: Body.cpp:49
rl::mdl::Body::Body
Body()
Definition: Body.cpp:35
rl::mdl::Body::setInertia
void setInertia(const ::rl::math::Real &xx, const ::rl::math::Real &yy, const ::rl::math::Real &zz, const ::rl::math::Real &yz, const ::rl::math::Real &xz, const ::rl::math::Real &xy)
Definition: Body.cpp:128
rl::mdl::Body
Definition: Body.h:39
rl::mdl::Body::forwardDynamics1
void forwardDynamics1()
Definition: Body.cpp:59
rl::mdl::Frame::x
::rl::math::PlueckerTransform x
Definition: Frame.h:97
rl::mdl::Body::collision
bool collision
Definition: Body.h:69
rl::mdl::Body::inverseDynamics1
void inverseDynamics1()
Definition: Body.cpp:88
rl::mdl::Body::setMass
void setMass(const ::rl::math::Real &m)
Definition: Body.cpp:114
rl::mdl::Body::ic
::rl::math::Matrix33 ic
Definition: Body.h:73
rl::math::spatial::ForceVector
Force vector.
Definition: ForceVector.h:46
rl::mdl::Body::inverseDynamics2
void inverseDynamics2()
Definition: Body.cpp:95
rl::math::Real
double Real
Definition: Real.h:42
rl::mdl::Body::forwardDynamics3
void forwardDynamics3()
Definition: Body.cpp:73
rl::mdl::Frame
Definition: Frame.h:42
rl::math::Matrix33
::Eigen::Matrix< Real, 3, 3 > Matrix33
Definition: Matrix.h:46
rl::mdl::Body::forwardPosition
void forwardPosition()
Definition: Body.cpp:78
rl
Robotics Library.
Definition: AnalogInput.cpp:30