DART
6.7.3
|
TemplateWeakInverseKinematicsPtr is a templated class that enables users to create a non-reference-holding WeakInverseKinematicsPtr. More...
#include <InverseKinematicsPtr.hpp>
Public Types | |
typedef InverseKinematicsT | element_type |
Public Member Functions | |
TemplateWeakInverseKinematicsPtr ()=default | |
Default constructor. More... | |
template<class PtrType > | |
TemplateWeakInverseKinematicsPtr (const PtrType &_ptr) | |
Constructor for various pointer types. More... | |
template<class PtrType > | |
TemplateWeakInverseKinematicsPtr & | operator= (const PtrType &_ptr) |
Assignment operator for various templated pointer types. More... | |
TemplateInverseKinematicsPtr< InverseKinematicsT, JacobianNodePtrT > | lock () const |
Locks the InverseKinematics module to ensure that the referenced module is currently still available. More... | |
template<class OtherIkT , class OtherJacNodePtrT > | |
void | set (const TemplateInverseKinematicsPtr< OtherIkT, OtherJacNodePtrT > &_ptr) |
Set using a strong pointer. More... | |
template<class OtherIkT , class OtherJacNodeT > | |
void | set (const TemplateWeakInverseKinematicsPtr< OtherIkT, OtherJacNodeT > &_ptr) |
Set using a weak pointer. More... | |
Protected Attributes | |
std::weak_ptr< InverseKinematicsT > | mWeakIK |
Weak pointer to the IK module. More... | |
JacobianNodePtrT | mWeakJacNode |
Weak pointer to the JacobianNode. More... | |
Friends | |
template<class , class > | |
class | TemplateWeakInverseKinematicsPtr |
TemplateWeakInverseKinematicsPtr is a templated class that enables users to create a non-reference-holding WeakInverseKinematicsPtr.
Holding onto a WeakInverseKinematicsPtr will NOT prevent anything from getting deleted, but you can use lock() to check whether the InverseKinematics module and its associated JacobianNode still exists.
typedef InverseKinematicsT dart::dynamics::TemplateWeakInverseKinematicsPtr< InverseKinematicsT, JacobianNodePtrT >::element_type |
|
default |
Default constructor.
|
inline |
Constructor for various pointer types.
|
inline |
Locks the InverseKinematics module to ensure that the referenced module is currently still available.
If the module is not available any longer (i.e. has been deleted), then this will return a nullptr.
|
inline |
Assignment operator for various templated pointer types.
|
inline |
Set using a strong pointer.
|
inline |
Set using a weak pointer.
|
friend |
|
protected |
Weak pointer to the IK module.
|
protected |
Weak pointer to the JacobianNode.