All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
SurgSim::Blocks Namespace Reference

Classes

class  DriveElementFromInputBehavior
 Behavior to copy a pose from an input component to a SceneElement By adding this behavior to a SceneElement, that SceneElement will be moved in correspondance to the input. More...
 
class  KeyboardTogglesComponentBehavior
 This behavior is used to control the visibility of registered graphical representation(s) More...
 
class  MassSpring1DRepresentation
 
class  MassSpring2DRepresentation
 
class  MassSpring3DRepresentation
 
class  PoseInterpolator
 Perform linear interpolation on two poses. More...
 
class  SphereElement
 
class  TransferPhysicsToGraphicsMeshBehavior
 Behavior to copy positions of a PhysicsRepresentation to a GraphicsMesh. More...
 
class  TransferPhysicsToPointCloudBehavior
 Behavior to copy positions of a PhysicsRepresentation to a PointCloud. More...
 
class  VisualizeContactsBehavior
 This behavior is used to visualize the contacts on collision representation through vector field. More...
 

Functions

 SURGSIM_REGISTER (SurgSim::Framework::Component, SurgSim::Blocks::DriveElementFromInputBehavior, DriveElementFromInputBehavior)
 
 SURGSIM_STATIC_REGISTRATION (DriveElementFromInputBehavior)
 
 SURGSIM_REGISTER (SurgSim::Framework::Component, SurgSim::Blocks::KeyboardTogglesComponentBehavior, KeyboardTogglesComponentBehavior)
 
 SURGSIM_STATIC_REGISTRATION (KeyboardTogglesComponentBehavior)
 
std::shared_ptr
< SurgSim::Physics::LinearSpring
createLinearSpring (const std::shared_ptr< SurgSim::Math::OdeState > state, size_t nodeId0, size_t nodeId1, double stiffness, double damping)
 Helper method to create a LinearSpring. More...
 
 SURGSIM_REGISTER (SurgSim::Framework::Component, SurgSim::Blocks::TransferPhysicsToGraphicsMeshBehavior, TransferPhysicsToGraphicsMeshBehavior)
 
 SURGSIM_STATIC_REGISTRATION (TransferPhysicsToGraphicsMeshBehavior)
 
 SURGSIM_REGISTER (SurgSim::Framework::Component, SurgSim::Blocks::TransferPhysicsToPointCloudBehavior, TransferPhysicsToPointCloudBehavior)
 
 SURGSIM_STATIC_REGISTRATION (TransferPhysicsToPointCloudBehavior)
 
 SURGSIM_REGISTER (SurgSim::Framework::Component, SurgSim::Blocks::VisualizeContactsBehavior, VisualizeContactsBehavior)
 
 SURGSIM_STATIC_REGISTRATION (VisualizeContactsBehavior)
 

Function Documentation

std::shared_ptr< SurgSim::Physics::LinearSpring > SurgSim::Blocks::createLinearSpring ( const std::shared_ptr< SurgSim::Math::OdeState state,
size_t  nodeId0,
size_t  nodeId1,
double  stiffness,
double  damping 
)

Helper method to create a LinearSpring.

Parameters
stateThe state to initialize the spring with (rest length calculation)
nodeId0,nodeId1Node ids of the 2 connected masses
stiffness,dampingThe spring parameters
Returns
The newly create spring
SurgSim::Blocks::SURGSIM_REGISTER ( SurgSim::Framework::Component  ,
SurgSim::Blocks::KeyboardTogglesComponentBehavior  ,
KeyboardTogglesComponentBehavior   
)
SurgSim::Blocks::SURGSIM_REGISTER ( SurgSim::Framework::Component  ,
SurgSim::Blocks::DriveElementFromInputBehavior  ,
DriveElementFromInputBehavior   
)
SurgSim::Blocks::SURGSIM_REGISTER ( SurgSim::Framework::Component  ,
SurgSim::Blocks::TransferPhysicsToGraphicsMeshBehavior  ,
TransferPhysicsToGraphicsMeshBehavior   
)
SurgSim::Blocks::SURGSIM_REGISTER ( SurgSim::Framework::Component  ,
SurgSim::Blocks::TransferPhysicsToPointCloudBehavior  ,
TransferPhysicsToPointCloudBehavior   
)
SurgSim::Blocks::SURGSIM_REGISTER ( SurgSim::Framework::Component  ,
SurgSim::Blocks::VisualizeContactsBehavior  ,
VisualizeContactsBehavior   
)
SurgSim::Blocks::SURGSIM_STATIC_REGISTRATION ( DriveElementFromInputBehavior  )
SurgSim::Blocks::SURGSIM_STATIC_REGISTRATION ( KeyboardTogglesComponentBehavior  )
SurgSim::Blocks::SURGSIM_STATIC_REGISTRATION ( VisualizeContactsBehavior  )
SurgSim::Blocks::SURGSIM_STATIC_REGISTRATION ( TransferPhysicsToPointCloudBehavior  )
SurgSim::Blocks::SURGSIM_STATIC_REGISTRATION ( TransferPhysicsToGraphicsMeshBehavior  )