#include <mbd_joint_interface.h>
Public Types | |
typedef mbd_types::socket_type | socket_type |
Public Member Functions | |
JointInterface () | |
virtual | ~JointInterface () |
socket_type * | get_socket_A () |
socket_type * | get_socket_B () |
socket_type const * | get_socket_A () const |
socket_type const * | get_socket_B () const |
void | connect (socket_type const &socketA, socket_type const &socketB) |
void | disconnect () |
virtual void | calibration ()=0 |
void | clear () |
Protected Attributes | |
socket_type * | m_socketA |
socket_type * | m_socketB |
joint_type Class.
Not all joints, limits and motors are compatible, so a type check must be performed when attaching a limit or motor to a joint to ensure that the modelling is consistent.
typedef mbd_types::socket_type OpenTissue::mbd::JointInterface< mbd_types >::socket_type |
OpenTissue::mbd::JointInterface< mbd_types >::JointInterface | ( | ) | [inline] |
virtual OpenTissue::mbd::JointInterface< mbd_types >::~JointInterface | ( | ) | [inline, virtual] |
virtual void OpenTissue::mbd::JointInterface< mbd_types >::calibration | ( | ) | [pure virtual] |
joint_type Calibration Routine. This method is invoked implicitly whenever the joint connectivity is changed (alteration of anchor points or joint axes).
It can also be invoked directly by and end user if the incident body position and/or rotations is changed.
Implemented in OpenTissue::mbd::BallJoint< mbd_types >, OpenTissue::mbd::HingeJoint< mbd_types >, OpenTissue::mbd::SliderJoint< mbd_types >, OpenTissue::mbd::UniversalJoint< mbd_types >, and OpenTissue::mbd::WheelJoint< mbd_types >.
void OpenTissue::mbd::JointInterface< mbd_types >::clear | ( | ) | [inline] |
void OpenTissue::mbd::JointInterface< mbd_types >::connect | ( | socket_type const & | socketA, | |
socket_type const & | socketB | |||
) | [inline] |
void OpenTissue::mbd::JointInterface< mbd_types >::disconnect | ( | ) | [inline] |
socket_type* OpenTissue::mbd::JointInterface< mbd_types >::get_socket_A | ( | ) | [inline] |
socket_type const* OpenTissue::mbd::JointInterface< mbd_types >::get_socket_A | ( | ) | const [inline] |
socket_type const* OpenTissue::mbd::JointInterface< mbd_types >::get_socket_B | ( | ) | const [inline] |
socket_type* OpenTissue::mbd::JointInterface< mbd_types >::get_socket_B | ( | ) | [inline] |
socket_type* OpenTissue::mbd::JointInterface< mbd_types >::m_socketA [protected] |
socket_type* OpenTissue::mbd::JointInterface< mbd_types >::m_socketB [protected] |