17 #ifndef AGXFMI2_RIGIDBODYATTRIBUTEACCESSORS_H
18 #define AGXFMI2_RIGIDBODYATTRIBUTEACCESSORS_H
27 #include <external/fmi/2.0/fmi2Functions.h>
77 using InputVariable_Real::get;
86 #define RB_VEC3_INPUT_VARIABLE(NAME, ATTRIBUTE_NAME) \
87 class AGXFMI_EXPORT RigidBody ## NAME ## InputVariable : public RigidBodyVec3AttributeInputVariable \
90 RigidBody ## NAME ## InputVariable(agx::RigidBody *body, agx::UInt component, bool causalityName = false) : RigidBodyVec3AttributeInputVariable(body, agx::Physics::RigidBodyModel::ATTRIBUTE_NAME ## Attribute, component, causalityName) {} \
93 virtual ~RigidBody ## NAME ## InputVariable() {} \
203 #define RB_VEC3_OUTPUT_VARIABLE(NAME, ATTRIBUTE_NAME) \
204 class AGXFMI_EXPORT RigidBody ## NAME ## OutputVariable : public RigidBodyVec3AttributeOutputVariable \
207 RigidBody ## NAME ## OutputVariable(agx::RigidBody *body, agx::UInt component, bool causalityName = false) : RigidBodyVec3AttributeOutputVariable(body, agx::Physics::RigidBodyModel::ATTRIBUTE_NAME ## Attribute, component, causalityName) {} \
210 virtual ~RigidBody ## NAME ## OutputVariable() {} \
#define AGX_DECLARE_POINTER_TYPES(type)
agx::Physics::RigidBodyRef getBody()
RigidBodyAttributeInputVariableReal(agx::RigidBody *body, const agx::String &name)
virtual ~RigidBodyAttributeInputVariableReal()
agx::Physics::RigidBodyRef m_body
void setBody(agx::Physics::RigidBodyRef body)
virtual fmi2Status set(agx::Real value) override
RigidBodyForceAccumulatorInputVariable(agx::RigidBody *body, agx::UInt component, bool causalityName=false)
virtual ~RigidBodyForceAccumulatorInputVariable()
RigidBodyPositionInputVariable(agx::RigidBody *body, agx::UInt component, bool causalityName=false)
virtual ~RigidBodyPositionInputVariable()
virtual fmi2Status get(agx::Real &value) override
virtual fmi2Status set(agx::Real value) override
virtual fmi2Status get(agx::Real &value) override
RigidBodyPositionOutputVariable(agx::RigidBody *body, agx::UInt component, bool causalityName=false)
virtual ~RigidBodyPositionOutputVariable()
virtual fmi2Status set(agx::Real value) override
virtual ~RigidBodyRotationEulerInputVariable()
RigidBodyRotationEulerInputVariable(agx::RigidBody *body, agx::UInt component, bool causalityName=false)
virtual fmi2Status get(agx::Real &value) override
virtual fmi2Status get(agx::Real &value) override
RigidBodyRotationEulerOutputVariable(agx::RigidBody *body, agx::UInt component, bool causalityName=false)
virtual ~RigidBodyRotationEulerOutputVariable()
RigidBodyRotationQuatInputVariable(agx::RigidBody *body, agx::UInt component, bool causalityName=false)
virtual fmi2Status get(agx::Real &value) override
virtual ~RigidBodyRotationQuatInputVariable()
virtual fmi2Status set(agx::Real value) override
virtual ~RigidBodyRotationQuatOutputVariable()
RigidBodyRotationQuatOutputVariable(agx::RigidBody *body, agx::UInt component, bool causalityName=false)
virtual fmi2Status get(agx::Real &value) override
RigidBodyTorqueAccumulatorInputVariable(agx::RigidBody *body, agx::UInt component, bool causalityName=false)
virtual fmi2Status set(agx::Real value) override
virtual ~RigidBodyTorqueAccumulatorInputVariable()
RigidBodyVec3AttributeInputVariable(agx::RigidBody *body, AttributeT *attribute, agx::UInt component, const agx::String &name)
RigidBodyVec3AttributeInputVariable(agx::RigidBody *body, AttributeT *attribute, agx::UInt component, bool causalityName=false)
agxData::ScalarAttributeT< agx::Vec3 > AttributeT
virtual ~RigidBodyVec3AttributeInputVariable()
virtual fmi2Status set(agx::Real value) override
virtual fmi2Status get(agx::Real &value) override
void setDirectionalDerivativeInput(agx::MobilitySolver *solver, agx::Real value)
agx::ref_ptr< AttributeT > m_attribute
agx::Real getDirectionalDerivativeOutput(agx::MobilitySolver *solver, agx::MobilitySolver *referenceSolver)
virtual ~RigidBodyVec3AttributeOutputVariable()
virtual fmi2Status get(agx::Real &value) override
RigidBodyVec3AttributeOutputVariable(agx::RigidBody *body, AttributeT *attribute, agx::UInt component, bool causalityName=false)
agx::Real get(agx::MobilitySolver *solver)
agxData::ScalarAttributeT< agx::Vec3 > AttributeT
The rigid body class, combining a geometric model and a frame of reference.
Smart pointer for handling referenced counted objects.
RB_VEC3_INPUT_VARIABLE(Force, force)
RB_VEC3_OUTPUT_VARIABLE(Force, force)
This namespace contains functionality for using AGX together with version 2 of the Functional Mockup ...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.