Package org.robwork.sdurw_models
Class CompositeDevicePtr
- java.lang.Object
- 
- org.robwork.sdurw_models.CompositeDevicePtr
 
- 
 public class CompositeDevicePtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
- 
- 
Constructor SummaryConstructors Constructor Description CompositeDevicePtr()Default constructor yielding a NULL-pointer.CompositeDevicePtr(long cPtr, boolean cMemoryOwn)CompositeDevicePtr(CompositeDevice ptr)Do not take ownership of ptr.
 
 ptr can be null.
 
 The constructor is implicit on purpose.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeDevice__ref__()Dereferencing operator.DeviceCPtrasDeviceCPtr()DevicePtrasDevicePtr()JointDeviceCPtrasJointDeviceCPtr()JointDevicePtrasJointDevicePtr()JacobianCalculatorPtrbaseJCend(State state)DeviceJacobian for the end frame.
 
 By default this method forwards to baseDJframe().JacobianCalculatorPtrbaseJCframe(FrameCPtr frame, State state)DeviceJacobian for a particular frame.
 
 By default this method forwards to baseDJframes().JacobianCalculatorPtrbaseJCframes(FrameVector frames, State state)JacobianbaseJend(State state)JacobianbaseJends(State state)like Device::baseJend() but with a Jacobian calculated for all
 end-effectors (see getEnds()).JacobianbaseJframe(FrameCPtr frame, State state)Calculates the jacobian matrix of a frame f described in the
 robot base frame ^{base}_{frame}\mathbf{J}_{\mathbf{q}}(\mathbf{q})
 JacobianbaseJframes(FrameVector frames, State state)The Jacobian for a sequence of frames.
 
 A Jacobian is computed for each of the frames and the Jacobians are
 stacked on top of eachother.Transform3DbaseTend(State state)Calculates the homogeneous transform from base to the end frame
 \robabx{base}{end}{\mathbf{T}}Transform3DbaseTframe(FrameCPtr f, State state)Calculates the homogeneous transform from base to a frame f
 \robabx{b}{f}{\mathbf{T}}CompositeDeviceCPtrcptr()voiddelete()CompositeDevicederef()The pointer stored in the object.booleanequals(CompositeDevice p)QgetAccelerationLimits()FramegetBase()PairQgetBounds()static longgetCPtr(CompositeDevicePtr obj)CompositeDevicegetDeref()Member access operator.longgetDOF()FramegetEnd()FrameVectorgetEnds()The end-effectors of the composite device.
 
 The end-effectors of the composite device are the end-effectors of
 the devices from which the composite device was constructed.
 
 This sequence of end-effectors may or may not include the default
 end-effector returned by getEnd().VectorJoint_pgetJoints()Get all joints of this devicejava.lang.StringgetName()Returns the name of the devicePropertyMapgetPropertyMap()QgetQ(State state)StateStructurePtrgetStateStructure()Get the state structure.QgetVelocityLimits()booleanisNull()checks if the pointer is nullbooleanisRegistered()Check if object has registered its state.booleanisShared()check if this Ptr has shared ownership or none
 ownershipvoidregisterIn(State state)initialize this stateless data to a specific statevoidregisterIn(StateStructurePtr state)register this stateless object in a statestructure.voidsetAccelerationLimits(Q acclimits)voidsetBounds(PairQ bounds)voidsetName(java.lang.String name)Sets the name of the DevicevoidsetQ(Q q, State state)
 
 The method is implemented via forwarding to the Device::setQ()
 methods of the subdevices.voidsetVelocityLimits(Q vellimits)java.lang.StringtoString()voidunregister()unregisters all state data of this stateless objectTransform3DworldTbase(State state)Calculates the homogeneous transform from world to base \robabx{w}{b}{\mathbf{T}}
 
 
- 
- 
- 
Constructor Detail- 
CompositeDevicePtrpublic CompositeDevicePtr(long cPtr, boolean cMemoryOwn)
 - 
CompositeDevicePtrpublic CompositeDevicePtr() Default constructor yielding a NULL-pointer.
 - 
CompositeDevicePtrpublic CompositeDevicePtr(CompositeDevice ptr) Do not take ownership of ptr.
 
 ptr can be null.
 
 The constructor is implicit on purpose.
 
- 
 - 
Method Detail- 
getCPtrpublic static long getCPtr(CompositeDevicePtr obj) 
 - 
deletepublic void delete() 
 - 
derefpublic CompositeDevice deref() The pointer stored in the object.
 - 
__ref__public CompositeDevice __ref__() Dereferencing operator.
 - 
getDerefpublic CompositeDevice getDeref() Member access operator.
 - 
equalspublic boolean equals(CompositeDevice p) 
 - 
isSharedpublic boolean isShared() check if this Ptr has shared ownership or none
 ownership- Returns:
- true if Ptr has shared ownership, false if it has no ownership.
 
 - 
isNullpublic boolean isNull() checks if the pointer is null- Returns:
- Returns true if the pointer is null
 
 - 
cptrpublic CompositeDeviceCPtr cptr() 
 - 
asDevicePtrpublic DevicePtr asDevicePtr() 
 - 
asDeviceCPtrpublic DeviceCPtr asDeviceCPtr() 
 - 
asJointDevicePtrpublic JointDevicePtr asJointDevicePtr() 
 - 
asJointDeviceCPtrpublic JointDeviceCPtr asJointDeviceCPtr() 
 - 
setQpublic void setQ(Q q, State state) 
 
 The method is implemented via forwarding to the Device::setQ()
 methods of the subdevices.
 - 
baseJendspublic Jacobian baseJends(State state) like Device::baseJend() but with a Jacobian calculated for all
 end-effectors (see getEnds()).
 - 
getEndspublic FrameVector getEnds() The end-effectors of the composite device.
 
 The end-effectors of the composite device are the end-effectors of
 the devices from which the composite device was constructed.
 
 This sequence of end-effectors may or may not include the default
 end-effector returned by getEnd().
 - 
getJointspublic VectorJoint_p getJoints() Get all joints of this device- Returns:
- all joints
 
 - 
getDOFpublic long getDOF() 
 - 
getBoundspublic PairQ getBounds() 
 - 
setBoundspublic void setBounds(PairQ bounds) 
 - 
getVelocityLimitspublic Q getVelocityLimits() 
 - 
setVelocityLimitspublic void setVelocityLimits(Q vellimits) 
 - 
getAccelerationLimitspublic Q getAccelerationLimits() 
 - 
setAccelerationLimitspublic void setAccelerationLimits(Q acclimits) 
 - 
baseJCframespublic JacobianCalculatorPtr baseJCframes(FrameVector frames, State state) 
 - 
getBasepublic Frame getBase() 
 - 
getEndpublic Frame getEnd() 
 - 
getNamepublic java.lang.String getName() Returns the name of the device- Returns:
- name of the device
 
 - 
setNamepublic void setName(java.lang.String name) Sets the name of the Device- Parameters:
- name- [in] the new name of the frame
 
 - 
baseTframepublic Transform3D baseTframe(FrameCPtr f, State state) Calculates the homogeneous transform from base to a frame f
 \robabx{b}{f}{\mathbf{T}}- Returns:
- the homogeneous transform \robabx{b}{f}{\mathbf{T}}
 
 - 
baseTendpublic Transform3D baseTend(State state) Calculates the homogeneous transform from base to the end frame
 \robabx{base}{end}{\mathbf{T}}- Returns:
- the homogeneous transform \robabx{base}{end}{\mathbf{T}}
 
 - 
worldTbasepublic Transform3D worldTbase(State state) Calculates the homogeneous transform from world to base \robabx{w}{b}{\mathbf{T}}
 - Returns:
- the homogeneous transform \robabx{w}{b}{\mathbf{T}}
 
 - 
baseJframepublic Jacobian baseJframe(FrameCPtr frame, State state) Calculates the jacobian matrix of a frame f described in the
 robot base frame ^{base}_{frame}\mathbf{J}_{\mathbf{q}}(\mathbf{q})
 - Parameters:
- frame- [in] Frame for which to calculate the Jacobian
- state- [in] State for which to calculate the Jacobian
 
- Returns:
- the   6*ndof  jacobian matrix:  
  {^{base}_{frame}}\mathbf{J}_{\mathbf{q}}(\mathbf{q}) 
 
 This method calculates the jacobian relating joint velocities ( \mathbf{\dot{q}} ) to the frame f velocity seen from base-frame
 ( \nu^{base}_{frame} )
 
 \nu^{base}_{frame} = {^{base}_{frame}}\mathbf{J}_\mathbf{q}(\mathbf{q})\mathbf{\dot{q}}
 
 
 The jacobian matrix {^{base}_n}\mathbf{J}_{\mathbf{q}}(\mathbf{q})
 is defined as:
 
 {^{base}_n}\mathbf{J}_{\mathbf{q}}(\mathbf{q}) = \frac{\partial ^{base}\mathbf{x}_n}{\partial \mathbf{q}}
 
 By default the method forwards to baseJframes().
 
 - 
baseJframespublic Jacobian baseJframes(FrameVector frames, State state) The Jacobian for a sequence of frames.
 
 A Jacobian is computed for each of the frames and the Jacobians are
 stacked on top of eachother.- Parameters:
- frames- [in] the frames to calculate the frames from
- state- [in] the state to calculate in
- Returns:
- the jacobian
 
 - 
baseJCendpublic JacobianCalculatorPtr baseJCend(State state) DeviceJacobian for the end frame.
 
 By default this method forwards to baseDJframe().
 - 
baseJCframepublic JacobianCalculatorPtr baseJCframe(FrameCPtr frame, State state) DeviceJacobian for a particular frame.
 
 By default this method forwards to baseDJframes().
 - 
getPropertyMappublic PropertyMap getPropertyMap() 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
registerInpublic void registerIn(State state) initialize this stateless data to a specific state- Parameters:
- state- [in] the state in which to register the data.
 
 Note: the data will be registered in the state structure of the state
 and any copies or other instances of the state will therefore also
 contain the added states.
 
 - 
registerInpublic void registerIn(StateStructurePtr state) register this stateless object in a statestructure.
 - 
unregisterpublic void unregister() unregisters all state data of this stateless object
 - 
getStateStructurepublic StateStructurePtr getStateStructure() Get the state structure.- Returns:
- the state structure.
 
 - 
isRegisteredpublic boolean isRegistered() Check if object has registered its state.- Returns:
- true if registered, false otherwise.
 
 
- 
 
-