Moby
Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
Moby::ControlledBody Class Referenceabstract

Superclass for controlled bodies. More...

#include <ControlledBody.h>

Inheritance diagram for Moby::ControlledBody:
Moby::Visualizable Moby::Base Moby::ArticulatedBody Moby::RigidBody Moby::RCArticulatedBody

Public Member Functions

virtual void load_from_xml (boost::shared_ptr< const XMLTree > node, std::map< std::string, BasePtr > &id_map)
 Loads the body's state via XML.
 
virtual void save_to_xml (XMLTreePtr node, std::list< boost::shared_ptr< const Base > > &shared_objects) const
 Implements Base::save_to_xml()
 
const std::list
< RecurrentForcePtr > & 
get_recurrent_forces () const
 Gets the set of recurrent forces applied to this body.
 
std::list< RecurrentForcePtr > & get_recurrent_forces ()
 Gets the set of recurrent forces applied to this body.
 
virtual void prepare_to_calc_ode_sustained_constraints (Ravelin::SharedConstVectorNd &x, double t, double dt, void *data)=0
 Prepares to compute the derivative of the body (sustained constraints)
 
virtual void prepare_to_calc_ode (Ravelin::SharedConstVectorNd &x, double t, double dt, void *data)=0
 Prepares to compute the derivative of the body.
 
virtual void ode (double t, double dt, void *data, Ravelin::SharedVectorNd &dx)=0
 Computes the derivative of the body.
 
- Public Member Functions inherited from Moby::Visualizable
 Visualizable (const Visualizable *v)
 
virtual void update_visualization ()
 Updates the visualization using the appropriate transform. More...
 
void set_visualization_relative_pose (const Ravelin::Pose3d &P)
 Sets the visualization relative pose.
 
virtual void set_visualization_data (osg::Node *vdata)
 Sets the visualization data from a node.
 
virtual void set_visualization_data (OSGGroupWrapperPtr vdata)
 Sets the visualization data from a OSGGroupWrapper.
 
osg::Group * get_visualization_data () const
 Gets the visualization data for this object.
 
boost::shared_ptr< const
Ravelin::Pose3d > 
get_visualization_pose ()
 Gets the pose for this visualizable object.
 
- Public Member Functions inherited from Moby::Base
 Base (const Base *b)
 

Public Attributes

Ravelin::VectorNd &(* controller )(boost::shared_ptr< ControlledBody > body, Ravelin::VectorNd &, double, void *)
 The controller callback, if any, for this body.
 
void * controller_arg
 Argument to be passed to the controller.
 
- Public Attributes inherited from Moby::Base
boost::shared_ptr< void > userdata
 Any relevant userdata.
 
std::string id
 The unique ID for this object.
 

Protected Attributes

boost::weak_ptr< Simulatorsimulator
 Pointer to the simulator (necessary for applying impulses w/constraints)
 
- Protected Attributes inherited from Moby::Visualizable
boost::shared_ptr
< Ravelin::Pose3d > 
_vF
 The relative pose.
 
OSGGroupWrapperPtr _vizdata
 The underlying visualization data.
 

Friends

class Simulator
 

Additional Inherited Members

- Static Public Member Functions inherited from Moby::Visualizable
static osg::Group * construct_from_node (boost::shared_ptr< const XMLTree > node, const std::map< std::string, BasePtr > &id_map)
 Utility method for load_from_xml() More...
 
- Static Public Member Functions inherited from Moby::Base
template<class T >
static boost::shared_ptr< T > clone (boost::shared_ptr< T > x)
 Static method for cloning a shared pointer.
 

Detailed Description

Superclass for controlled bodies.


The documentation for this class was generated from the following files: