7 #include "imstkDynamicObject.h" 8 #include "imstkAbstractDynamicalModel.h" 9 #include "imstkGeometryMap.h" 10 #include "imstkLogger.h" 11 #include "imstkTaskGraph.h" 12 #include "imstkVisualModel.h" 21 LOG(WARNING) <<
"Cannot get the degree of freedom since the dynamical model is not initialized! returning 0";
63 <<
"\" expects a physics geometry at start, none was provided";
void reset() override
Reset the dynamic object by reseting the respective DynamicalModel and Geometry.
void updateGeometries() override
Updates the geometries from the maps (if defined)
void postModifiedAll() override
Posts modified for all geometries.
std::shared_ptr< TaskNode > getUpdateNode() const
Returns the computational node for updating.
void postModifiedAll() override
Posts modified for all geometries.
std::shared_ptr< TaskNode > getUpdateGeometryNode() const
Returns the computational node for updating geometry.
size_t getNumOfDOF() const
Returns the number of degree of freedom.
virtual void updatePhysicsGeometry()
Update only the physics geometry and apply collision map.
bool initialize() override
Initialize the scene object.
std::shared_ptr< AbstractDynamicalModel > m_dynamicalModel
Dynamical model.
bool initialize() override
Initialize the scene object.
std::shared_ptr< GeometryMap > m_physicsToVisualGeomMap
Maps from Physics to visual geometry.
void updateGeometries() final
Update the physics geometry and the apply the maps (if defined)
std::shared_ptr< GeometryMap > m_physicsToCollidingGeomMap
Maps from Physics to collision geometry.
std::shared_ptr< TaskGraph > m_taskGraph
Computational Graph.
std::string m_name
Not unique name.
std::shared_ptr< Geometry > m_physicsGeometry
Geometry used for Physics.
void initGraphEdges()
Initializes the edges of the SceneObject's computational graph.