#include <mbd_scripted_motion_interface.h>
Public Types | |
| typedef mbd_types::body_type | body_type |
| typedef mbd_types::math_policy::real_type | real_type |
| typedef mbd_types::math_policy::vector3_type | vector3_type |
| typedef mbd_types::math_policy::quaternion_type | quaternion_type |
Public Member Functions | |
| virtual void | compute (body_type const &body, real_type const &time, vector3_type &r, quaternion_type &q, vector3_type &v, vector3_type &w)=0 |
Scripted Motion (callback) Class. Scripted motion types are implemented by inheritence from this adapter, the compute method must be overriden and specified for the wanted motion type.
Notice that a scripted motion is a type that can be applied to multiple bodies. Invocation of the run method evaluates the motion position and orientation on the specified body at a given instant of time.
| typedef mbd_types::body_type OpenTissue::mbd::ScriptedMotionInterface< mbd_types >::body_type |
Reimplemented in OpenTissue::mbd::Oscillation< mbd_types >.
| typedef mbd_types::math_policy::quaternion_type OpenTissue::mbd::ScriptedMotionInterface< mbd_types >::quaternion_type |
Reimplemented in OpenTissue::mbd::Oscillation< mbd_types >.
| typedef mbd_types::math_policy::real_type OpenTissue::mbd::ScriptedMotionInterface< mbd_types >::real_type |
Reimplemented in OpenTissue::mbd::Oscillation< mbd_types >.
| typedef mbd_types::math_policy::vector3_type OpenTissue::mbd::ScriptedMotionInterface< mbd_types >::vector3_type |
Reimplemented in OpenTissue::mbd::Oscillation< mbd_types >.
| virtual void OpenTissue::mbd::ScriptedMotionInterface< mbd_types >::compute | ( | body_type const & | body, | |
| real_type const & | time, | |||
| vector3_type & | r, | |||
| quaternion_type & | q, | |||
| vector3_type & | v, | |||
| vector3_type & | w | |||
| ) | [pure virtual] |
Compute State of Scripted body_type.
| body | A pointer to the rigid body where the scripted motion should be evaluated for. | |
| time | The time at which the scripted motion should be evaluated. | |
| r | Upon return this vector should contain the position of the center of mass. | |
| q | Upon return this argument should contain the orientation representated as a quaternion. | |
| v | Upon return this vector contains the value of the linear velocity of the center of mass. | |
| w | Upon return this vector contains the value of the angular velocity. |
Implemented in OpenTissue::mbd::Oscillation< mbd_types >.
1.7.1