17 #ifndef AGX_ANGULAR_JOINT_BASE_H
18 #define AGX_ANGULAR_JOINT_BASE_H
#define AGXPHYSICS_EXPORT
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
An angular joint is defined by having 2 rotational degrees of freedom.
virtual int getNumControllers() const =0
const agx::Lock1D * getLock1D(UInt dof) const
agx::Real getCurrentSpeed(UInt dof) const
agx::ElectricMotorController * getElectricMotorController(UInt dof)
agx::Real getAngle(UInt dof) const
class AngularJointBaseImplementation * m_implementation
const agx::Motor1D * getMotor1D(UInt dof) const
agx::Lock1D * getLock1D(UInt dof)
const agx::Range1D * getRange1D(UInt dof) const
virtual ~AngularJointBase()
virtual UInt getNumControllerOffset() const =0
The constraint definition allows for controllers at all constraint angles.
AngularJointBase(CreateElementaryConstraintsFunction createFunc, agx::RigidBody *rb1, agx::Frame *rb1AttachmentFrame, agx::RigidBody *rb2=nullptr, agx::Frame *rb2AttachmentFrame=nullptr)
Create a angular joint given attachment frames and one or two rigid bodies.
const agx::ElectricMotorController * getElectricMotorController(UInt dof) const
agx::Motor1D * getMotor1D(UInt dof)
agx::Range1D * getRange1D(UInt dof)
agx::Real getTheta() const
Returns angle not controlled by controllers.
virtual void render(agxRender::RenderManager *mgr, float scale) const override
Used internally for debug rendering.
virtual int getNumDOF() const override=0
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agx::AngularJointBase)
The base class for a constraint.
Implementation of a electric motor controller.
The object defining a frame of reference and providing transformations operations.
Elementary secondary constraint to keep constraint angle at a given target position.
Elementary secondary constraint to keep constraint angle within two given values.
The rigid body class, combining a geometric model and a frame of reference.
Elementary secondary constraint to drive something given target speed (translational or rotational).
Smart pointer for handling referenced counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
ref_ptr< AngularJointBase > AngularJointBaseRef
agx::Bool(* CreateElementaryConstraintsFunction)(class HighLevelConstraintImplementation *)