|
mc_rtc
2.14.0
|
#include <mc_tvm/Robot.h>


Classes | |
| struct | NewRobotToken |
Public Types | |
| using | mimic_variables_t = std::pair< tvm::VariableVector, Eigen::VectorXd > |
Public Types inherited from tvm::graph::internal::AbstractNode | |
| enum | Update_ |
| typedef AbstractNode | UpdateParent |
| typedef AbstractNode | UpdateBase |
Public Types inherited from tvm::graph::internal::Inputs | |
| typedef std::unordered_map< abstract::Outputs *, std::set< int > > | inputs_t |
| typedef std::unordered_set< std::shared_ptr< abstract::Outputs > > | store_t |
Public Types inherited from tvm::graph::abstract::Outputs | |
| enum | Output_ |
| typedef Outputs | OutputParent |
| typedef Outputs | OutputBase |
Public Member Functions | |
| Robot (NewRobotToken, const mc_rbdyn::Robot &robot) | |
| Robot (Robot &&)=delete | |
| Robot & | operator= (Robot &&)=delete |
| Robot (const Robot &)=delete | |
| Robot & | operator= (const Robot &)=delete |
| const mc_rbdyn::Robot & | robot () const |
| const Limits & | limits () const noexcept |
| Limits & | limits () noexcept |
| const tvm::VariablePtr & | q () const noexcept |
| tvm::VariablePtr & | q () noexcept |
| const tvm::VariablePtr & | alpha () const noexcept |
| tvm::VariablePtr & | alpha () noexcept |
| const tvm::VariablePtr & | alphaD () const noexcept |
| tvm::VariablePtr & | alphaD () noexcept |
| const tvm::VariablePtr & | qFloatingBase () const noexcept |
| tvm::VariablePtr & | qFloatingBase () noexcept |
| const tvm::VariablePtr & | qJoints () const noexcept |
| tvm::VariablePtr & | qJoints () noexcept |
| tvm::VariablePtr | qJoint (size_t jIdx) |
| tvm::VariablePtr | qJoint (const std::string &jName) |
| const std::map< tvm::VariablePtr, mimic_variables_t > & | mimics () const noexcept |
| std::map< tvm::VariablePtr, mimic_variables_t > & | mimics () noexcept |
| const tvm::VariablePtr & | tau () const noexcept |
| tvm::VariablePtr & | tau () |
| const CoM & | comAlgo () const noexcept |
| CoM & | comAlgo () noexcept |
| const Momentum & | momentumAlgo () const noexcept |
| Momentum & | momentumAlgo () noexcept |
| const Eigen::MatrixXd & | H () const noexcept |
| const Eigen::VectorXd & | C () const noexcept |
| const std::vector< sva::MotionVecd > & | normalAccB () const noexcept |
| Eigen::DenseIndex | refJointIndexToQIndex (size_t jointIndex) const |
| Eigen::DenseIndex | refJointIndexToQDotIndex (size_t jointIndex) const |
Public Member Functions inherited from tvm::graph::internal::AbstractNode | |
| bool | isUpdateEnabled (EnumT e) const |
| virtual bool | isUpdateStaticallyEnabled (int) const |
| virtual bool | isUpdateCustomEnabled (int) const |
| virtual | ~AbstractNode ()=default |
| void | update (int i) |
Public Member Functions inherited from tvm::graph::internal::Inputs | |
| virtual | ~Inputs ()=default |
| void | addInput (std::shared_ptr< T > source, EnumI i, Args... args) |
| void | addInput (T &source, EnumI i, Args... args) |
| void | removeInput (T *source) |
| void | removeInput (T *source, Args... args) |
| Iterator | getInput (T *source) |
| Iterator | getInput (const std::shared_ptr< T > &source) |
Public Member Functions inherited from tvm::graph::abstract::Outputs | |
| virtual | ~Outputs ()=default |
| bool | isOutputEnabled (EnumT e) const |
| bool | isOutputEnabled (int i) const |
| virtual bool | isOutputStaticallyEnabled (int) const |
| virtual bool | isOutputCustomEnabled (int) const |
Friends | |
| struct | mc_rbdyn::Robot |
Additional Inherited Members | |
Static Public Member Functions inherited from tvm::graph::internal::AbstractNode | |
| static constexpr const char * | UpdateName (Update_) |
| static constexpr bool | UpdateStaticallyEnabled (EnumT) |
Static Public Member Functions inherited from tvm::graph::abstract::Outputs | |
| static constexpr const char * | OutputName (Output_) |
| static constexpr bool | OutputStaticallyEnabled (EnumT) |
Static Public Attributes inherited from tvm::graph::internal::AbstractNode | |
| static constexpr unsigned int | UpdateSize |
| static constexpr auto | UpdateBaseName |
Static Public Attributes inherited from tvm::graph::abstract::Outputs | |
| static constexpr unsigned int | OutputSize |
| static constexpr auto | OutputBaseName |
Protected Types inherited from tvm::graph::internal::AbstractNode | |
| typedef std::map< Outputs *, std::set< int > > | input_dependency_t |
Protected Member Functions inherited from tvm::graph::abstract::Node< class > | |
| void | registerUpdates (EnumT u, void(U::*fn)(), Args... args) |
| void | registerUpdates (EnumT u, void(U::*fn)()) |
| void | addOutputDependency (EnumO o, EnumU u) |
| void | addOutputDependency (std::initializer_list< EnumO > os, EnumU u) |
| void | addInternalDependency (EnumU1 uDependent, EnumU2 u) |
| void | addInputDependency (EnumU u, std::shared_ptr< S > source, EnumO i, Args... args) |
| void | addInputDependency (EnumU u, S &source, EnumO i, Args... args) |
| void | addDirectDependency (EnumO o, std::shared_ptr< S > source, EnumI i) |
| void | addDirectDependency (EnumO o, S &source, EnumI i) |
Protected Attributes inherited from tvm::graph::internal::AbstractNode | |
| std::map< int, std::function< void(AbstractNode &)> > | updates_ |
| std::map< int, std::vector< int > > | outputDependencies_ |
| std::map< int, std::vector< int > > | internalDependencies_ |
| std::map< int, input_dependency_t > | inputDependencies_ |
| std::map< int, std::pair< Outputs *, int > > | directDependencies_ |
Protected Attributes inherited from tvm::graph::abstract::Outputs | |
| bool | is_node_ |
Represent a robot managed by the optimization problem
It is created through an mc_rbdyn::Robot
It provides signals that are relevant for computing quantities related to the robot.
Variables:
Individual outputs:
Meta outputs: These outputs are provided for convenience sake
| using mc_tvm::Robot::mimic_variables_t = std::pair<tvm::VariableVector, Eigen::VectorXd> |
| mc_tvm::Robot::Robot | ( | NewRobotToken | , |
| const mc_rbdyn::Robot & | robot | ||
| ) |
|
delete |
|
delete |
|
inlinenoexcept |
Access q first derivative (joint velocity) (const)
|
inlinenoexcept |
Access q first derivative (joint velocity)
|
inlinenoexcept |
Access q second derivative (joint acceleration) (const)
|
inlinenoexcept |
Access q second derivative (joint acceleration)
|
inlinenoexcept |
Returns the non-linear dynamics component
|
inlinenoexcept |
Returns the CoM algorithm associated to this robot (const)
|
inlinenoexcept |
Returns the mass matrix
|
inlinenoexcept |
Retrieve the joint limits (const)
|
inlinenoexcept |
Retrieve the joint limits
|
inlinenoexcept |
Access mimics' variable map (const)
|
inlinenoexcept |
Access mimics' variable map
|
inlinenoexcept |
Returns the momentum algorithm associated with this robot (const)
|
inlinenoexcept |
Returns the momentum algorithm associated with this robot (const)
|
inlinenoexcept |
Vector of normal acceleration in body coordinates
|
inlinenoexcept |
Access q variable (const)
|
inlinenoexcept |
Access q variable
|
inlinenoexcept |
Access floating-base variable (const)
|
inlinenoexcept |
Access free-flyer variable
|
inline |
Given a joint name, returns the TVM variable it belongs to and the index of the joint in this variable
| jName | Joint name |
| If | the robot does not have such a joint or the joint is not actuated |
| tvm::VariablePtr mc_tvm::Robot::qJoint | ( | size_t | jIdx | ) |
Given a joint index creates a TVM variable corresponding to this variable
| jIdx | Joint index |
| If | the joint index is out of bounds or the joint is not actuated |
|
inlinenoexcept |
Access joints variable (const)
|
inlinenoexcept |
Access joints variable
|
inline |
Given a joint index in the reference joint order, returns the corresponding joint index in the q derivatives variable
| jointIndex | Joint index in refJointOrder |
|
inline |
Given a joint index in the reference joint order, returns the corresponding joint index in the q variable
| jointIndex | Joint index in refJointOrder |
|
inline |
Retrieve the associated robot (const)
| If | the original robot has been destroyed |
|
inline |
Access tau variable
|
inlinenoexcept |
Access tau variable (const)
|
friend |