|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_MDL_MODEL_H
28 #define RL_MDL_MODEL_H
33 #include <boost/graph/adjacency_list.hpp>
68 bool areColliding(const ::std::size_t& i, const ::std::size_t& j)
const;
84 ::std::size_t
getDof()
const;
120 const ::std::string&
getName()
const;
124 ::Eigen::Matrix< ::rl::math::Unit, ::Eigen::Dynamic, 1>
getPositionUnits()
const;
128 ::Eigen::Matrix< ::rl::math::Unit, ::Eigen::Dynamic, 1>
getTorqueUnits()
const;
132 ::Eigen::Matrix< ::rl::math::Unit, ::Eigen::Dynamic, 1>
getSpeedUnits()
const;
136 ::Eigen::Matrix< ::rl::math::Unit, ::Eigen::Dynamic, 1>
getVelocityUnits()
const;
183 typedef ::boost::adjacency_list<
186 ::boost::bidirectionalS,
189 ::std::shared_ptr<Frame>
193 ::std::shared_ptr<Transform>
195 ::boost::no_property,
199 typedef ::boost::graph_traits<Tree>::edge_descriptor
Edge;
213 typedef ::boost::graph_traits<Tree>::vertex_descriptor
Vertex;
259 #endif // RL_MDL_MODEL_H
::std::size_t getDofPosition() const
Definition: Model.cpp:199
::Eigen::Matrix< Real, ::Eigen::Dynamic, ::Eigen::Dynamic > Matrix
Definition: Matrix.h:42
::rl::math::Vector getHomePosition() const
Definition: Model.cpp:244
::rl::math::Vector getPosition() const
Definition: Model.cpp:340
::Eigen::Matrix< ::rl::math::Unit, ::Eigen::Dynamic, 1 > getSpeedUnits() const
Definition: Model.cpp:405
::boost::graph_traits< Tree >::out_edge_iterator OutEdgeIterator
Definition: Model.h:209
const ::rl::math::Matrix & getGammaVelocity() const
Definition: Model.cpp:226
Model * clone() const
Definition: Model.cpp:110
::Eigen::Transform< Real, 3, ::Eigen::Affine > Transform
Rigid transformation in 3D.
Definition: Transform.h:46
void setManufacturer(const ::std::string &manufacturer)
Definition: Model.cpp:539
const ::rl::math::Matrix & getGammaPosition() const
Definition: Model.cpp:220
Joint * getJoint(const ::std::size_t &i) const
Definition: Model.cpp:250
::std::pair< VertexIterator, VertexIterator > VertexIteratorPair
Definition: Model.h:217
::rl::math::Vector getSpeed() const
Definition: Model.cpp:392
::std::vector< Joint * > joints
Definition: Model.h:237
::rl::math::Vector getMaximum() const
Definition: Model.cpp:308
::std::size_t getOperationalDof() const
Definition: Model.cpp:272
::Eigen::Matrix< ::rl::math::Unit, ::Eigen::Dynamic, 1 > getTorqueUnits() const
Definition: Model.cpp:379
::rl::math::Matrix gammaPosition
Definition: Model.h:227
void setGammaVelocity(const ::rl::math::Matrix &gammaVelocity)
Definition: Model.cpp:518
::boost::graph_traits< Tree >::vertex_descriptor Vertex
Definition: Model.h:213
virtual void update()
Definition: Model.cpp:604
::boost::graph_traits< Tree >::edge_descriptor Edge
Definition: Model.h:199
spatial::MotionVector< Real > MotionVector
Definition: Spatial.h:56
::std::size_t getDof() const
Definition: Model.cpp:186
::Eigen::Matrix< Real, ::Eigen::Dynamic, 1 > Vector
Definition: Vector.h:42
const ::rl::math::Matrix & getGammaPositionInverse() const
Definition: Model.cpp:232
void add(Compound *compound, const Frame *a, const Frame *b)
Definition: Model.cpp:63
::rl::math::Vector getTorque() const
Definition: Model.cpp:366
::std::vector< Transform * > transforms
Definition: Model.h:249
Model()
Definition: Model.cpp:38
Vertex root
Definition: Model.h:245
bool isColliding(const ::std::size_t &i) const
Definition: Model.cpp:444
void setOperationalVelocity(const ::std::size_t &i, const ::rl::math::MotionVector &v) const
Definition: Model.cpp:551
void replace(Compound *compound, Transform *transform)
Definition: Model.cpp:452
::rl::math::Vector generatePositionGaussian(const ::rl::math::Vector &rand, const ::rl::math::Vector &mean, const ::rl::math::Vector &sigma) const
Definition: Model.cpp:116
const ::std::string & getName() const
Definition: Model.cpp:334
::std::vector< Edge > tools
Definition: Model.h:247
void setGammaPosition(const ::rl::math::Matrix &gammaPosition)
Definition: Model.cpp:503
void setHomePosition(const ::rl::math::Vector &home)
Definition: Model.cpp:533
const ::rl::math::Transform & getFrame(const ::std::size_t &i) const
Definition: Model.cpp:212
const ::rl::math::Matrix & getGammaVelocityInverse() const
Definition: Model.cpp:238
::std::pair< InEdgeIterator, InEdgeIterator > InEdgeIteratorPair
Definition: Model.h:207
::std::vector< Vertex > leaves
Definition: Model.h:239
::rl::math::Vector home
Definition: Model.h:231
::std::string name
Definition: Model.h:243
const ::rl::math::MotionVector & getOperationalVelocity(const ::std::size_t &i) const
Definition: Model.cpp:294
Definition: Compound.h:42
::rl::math::Transform & world()
Definition: Model.cpp:672
::std::pair< EdgeIterator, EdgeIterator > EdgeIteratorPair
Definition: Model.h:203
::rl::math::Transform & tool(const ::std::size_t &i=0)
Definition: Model.cpp:588
const ::rl::math::Transform & getOperationalPosition(const ::std::size_t &i) const
Definition: Model.cpp:286
::rl::math::Matrix invGammaVelocity
Definition: Model.h:235
::Eigen::Matrix< ::rl::math::Unit, ::Eigen::Dynamic, 1 > getPositionUnits() const
Definition: Model.cpp:353
::rl::math::Vector getVelocity() const
Definition: Model.cpp:418
::std::vector< Frame * > frames
Definition: Model.h:225
::rl::math::Vector generatePositionUniform(const ::rl::math::Vector &rand) const
Definition: Model.cpp:133
Tree tree
Definition: Model.h:251
::std::vector< Body * > bodies
Definition: Model.h:221
Body * getBody(const ::std::size_t &i) const
Definition: Model.cpp:178
::rl::math::Vector getAcceleration() const
Definition: Model.cpp:146
const ::rl::math::MotionVector & getOperationalAcceleration(const ::std::size_t &i) const
Definition: Model.cpp:264
::std::vector< Element * > elements
Definition: Model.h:223
::std::size_t getJoints() const
Definition: Model.cpp:258
::boost::graph_traits< Tree >::in_edge_iterator InEdgeIterator
Definition: Model.h:205
::std::string manufacturer
Definition: Model.h:241
spatial::ForceVector< Real > ForceVector
Definition: Spatial.h:54
const ::rl::math::ForceVector & getOperationalForce(const ::std::size_t &i) const
Definition: Model.cpp:278
::std::pair< OutEdgeIterator, OutEdgeIterator > OutEdgeIteratorPair
Definition: Model.h:211
void setName(const ::std::string &name)
Definition: Model.cpp:545
void setPosition(const ::rl::math::Vector &q)
Definition: Model.cpp:557
::boost::graph_traits< Tree >::edge_iterator EdgeIterator
Definition: Model.h:201
::rl::math::Matrix gammaVelocity
Definition: Model.h:229
virtual ~Model()
Definition: Model.cpp:58
::Eigen::Matrix< ::rl::math::Unit, ::Eigen::Dynamic, 1 > getVelocityUnits() const
Definition: Model.cpp:431
bool areColliding(const ::std::size_t &i, const ::std::size_t &j) const
Definition: Model.cpp:94
::boost::graph_traits< Tree >::vertex_iterator VertexIterator
Definition: Model.h:215
::rl::math::Matrix invGammaPosition
Definition: Model.h:233
::std::size_t getBodies() const
Definition: Model.cpp:172
void setVelocity(const ::rl::math::Vector &qd)
Definition: Model.cpp:577
void setAcceleration(const ::rl::math::Vector &qdd)
Definition: Model.cpp:492
::boost::adjacency_list< ::boost::listS, ::boost::listS, ::boost::bidirectionalS, ::boost::property< ::boost::vertex_color_t, Compound *, ::std::shared_ptr< Frame > >, ::boost::property< ::boost::edge_weight_t, Compound *, ::std::shared_ptr< Transform > >, ::boost::no_property, ::boost::listS > Tree
Definition: Model.h:197
::Eigen::Matrix< ::rl::math::Unit, ::Eigen::Dynamic, 1 > getAccelerationUnits() const
Definition: Model.cpp:159
const ::std::string & getManufacturer() const
Definition: Model.cpp:302
void remove(Compound *compound)
Definition: Model.cpp:466
void setTorque(const ::rl::math::Vector &tau)
Definition: Model.cpp:568
::rl::math::Vector getMinimum() const
Definition: Model.cpp:321
Robotics Library.
Definition: AnalogInput.cpp:30