Class LinearSubhinge#

Inheritance Relationships#

Base Type#

Class Documentation#

class LinearSubhinge : public Karana::Dynamics::Physical1DofSubhinge#

Represents a 1 dof translational subhinge.

See Subhinges section for more information on physical subhinges.

Public Functions

inline virtual ~LinearSubhinge()#

LinearSubhinge destructor.

virtual SubhingeBase::SubhingeType subhingeType() const override#

Helper method to return the subhinge type.

Returns:

the subhinge type

inline virtual std::string_view typeString() const noexcept override#

Returns the type string of the SubTree.

Returns:

The type string.

virtual void setUnitAxis(const km::Vec3 &axis) override#

Set the unit axis for the pin hinge.

Parameters:

axis – The unit axis for the pin hinge.

LinearSubhinge(kc::ks_ptr<kf::Frame> oframe, kc::ks_ptr<kf::Frame> pframe, std::string_view name, kc::ks_ptr<FramePairHinge> hge)#

Constructs a LinearSubhinge_T.

Protected Functions

virtual void _computeTransform(km::HomTran&) override#

Compute the transformation between the oframe and pframe.

This the relTransform data cache callback.

Returns:

The computed homogeneous transformation.

virtual void _computeVelocity(km::SpatialVector&) override#

Compute the spatial velocity between the oframe and pframe.

This the relSpVel data cache callback.

Returns:

The computed spatial velocity.

virtual void _computeAccel(km::SpatialVector&) override#

Compute the spatial acceleration between the oframe and pframe.

This the relSpAccel data cache callback.

Returns:

The computed spatial acceleration.