Package org.robwork.sdurw
Class ParallelLeg
- java.lang.Object
-
- org.robwork.sdurw.ParallelLeg
-
public class ParallelLeg extends java.lang.ObjectClass representing a single leg in a ParallelDevice
-
-
Constructor Summary
Constructors Constructor Description ParallelLeg(long cPtr, boolean cMemoryOwn)ParallelLeg(FrameVector frames)Constructs leg from frames
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JacobianbaseJend(State state)Returns the base to end JacobianJacobianbaseJframe(Frame frame, State state)Returns the Jacobian of frame relative to base frame.Transform3DdbaseTend(State state)Returns the base to end transformationTransform3DdbaseTframe(Frame frame, State state)Returns the transformation of a frame relative to the base.voiddelete()JointPointerVectorgetActuatedJoints()Returns list of the actuated (active) jointsFramegetBase()the base of the legstatic longgetCPtr(ParallelLeg obj)FramegetEnd()the end of the leglonggetJointDOFs()Get the total degrees of freedom (includes both active and passive joints).FrameVectorgetKinematicChain()Returns the kinematic chain of the legQgetQ(State state)Get configuration of the leg.JointPointerVectorgetUnactuatedJoints()Returns list of unactuated (passive) jointslongnrOfActiveJoints()Number of active jointslongnrOfJoints()Number of joints (both active and passive)longnrOfPassiveJoints()Number of passive jointsvoidsetQ(Q q, State state)Sets q for the leg in the state
-
-
-
Constructor Detail
-
ParallelLeg
public ParallelLeg(long cPtr, boolean cMemoryOwn)
-
ParallelLeg
public ParallelLeg(FrameVector frames)
Constructs leg from frames- Parameters:
frames- [in] list of Frame's
-
-
Method Detail
-
getCPtr
public static long getCPtr(ParallelLeg obj)
-
delete
public void delete()
-
baseJend
public Jacobian baseJend(State state)
Returns the base to end Jacobian- Parameters:
state- [in] State for which to calculate the Jacobian- Returns:
- the Jacobian
-
baseJframe
public Jacobian baseJframe(Frame frame, State state)
Returns the Jacobian of frame relative to base frame.- Parameters:
frame- [in] the frame to find Jacobian for.state- [in] State for which to calculate the Jacobian- Returns:
- the Jacobian
-
baseTend
public Transform3Dd baseTend(State state)
Returns the base to end transformation- Parameters:
state- [in] State for which to calculate the transform- Returns:
- the transform
-
baseTframe
public Transform3Dd baseTframe(Frame frame, State state)
Returns the transformation of a frame relative to the base.- Parameters:
frame- [in] the frame to find transformation to.state- [in] State for which to calculate the transform- Returns:
- the transform
-
getKinematicChain
public FrameVector getKinematicChain()
Returns the kinematic chain of the leg- Returns:
- list of frames
-
getBase
public Frame getBase()
the base of the leg- Returns:
- the frame
-
getEnd
public Frame getEnd()
the end of the leg- Returns:
- the frame
-
nrOfActiveJoints
public long nrOfActiveJoints()
Number of active joints- Returns:
- number of active joints
-
nrOfPassiveJoints
public long nrOfPassiveJoints()
Number of passive joints- Returns:
- number of passive joints
-
nrOfJoints
public long nrOfJoints()
Number of joints (both active and passive)- Returns:
- number of joints
-
getActuatedJoints
public JointPointerVector getActuatedJoints()
Returns list of the actuated (active) joints- Returns:
- list of joints
-
getUnactuatedJoints
public JointPointerVector getUnactuatedJoints()
Returns list of unactuated (passive) joints- Returns:
- list of joints
-
getJointDOFs
public long getJointDOFs()
Get the total degrees of freedom (includes both active and passive joints).- Returns:
- the total degrees of freedom.
-
getQ
public Q getQ(State state)
Get configuration of the leg.- Parameters:
state- [in] the state with the configuration values.- Returns:
- the configuration.
-
-