Package org.robwork.sdurw_models
Class DHParameterSetPtr
- java.lang.Object
-
- org.robwork.sdurw_models.DHParameterSetPtr
-
public class DHParameterSetPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description DHParameterSetPtr()Default constructor yielding a NULL-pointer.DHParameterSetPtr(long cPtr, boolean cMemoryOwn)DHParameterSetPtr(DHParameterSet ptr)Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DHParameterSet__ref__()Dereferencing operator.doublea()a_{i-1} *doublealpha()\alpha_{i-1} *doubleb()doublebeta()DHParameterSetCPtrcptr()doubled()d_{i} *voiddelete()DHParameterSetderef()The pointer stored in the object.booleanequals(DHParameterSet p)DHParameterSetget(PropertyMap pmap)DHParameterSetget(Joint joint)static longgetCPtr(DHParameterSetPtr obj)DHParameterSetgetDeref()Member access operator.DHParameterSetVectorgetDHParameters(SerialDevicePtr device)Returns the DH-Parameters for a SerialDevice.
If no or only a partial DH representation exists only the list will be empty or
non-complete.
java.lang.StringgetType()the DH-convention typebooleanisNull()checks if the pointer is nullbooleanisParallel()booleanisShared()check if this Ptr has shared ownership or none
ownershipvoidset(DHParameterSet dhset, PropertyMap pmap)voidset(DHParameterSet dhset, FramePtr joint)doubletheta()$brief \theta_{i} *
-
-
-
Constructor Detail
-
DHParameterSetPtr
public DHParameterSetPtr(long cPtr, boolean cMemoryOwn)
-
DHParameterSetPtr
public DHParameterSetPtr()
Default constructor yielding a NULL-pointer.
-
DHParameterSetPtr
public DHParameterSetPtr(DHParameterSet ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(DHParameterSetPtr obj)
-
delete
public void delete()
-
deref
public DHParameterSet deref()
The pointer stored in the object.
-
__ref__
public DHParameterSet __ref__()
Dereferencing operator.
-
getDeref
public DHParameterSet getDeref()
Member access operator.
-
equals
public boolean equals(DHParameterSet p)
-
isShared
public 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.
-
isNull
public boolean isNull()
checks if the pointer is null- Returns:
- Returns true if the pointer is null
-
cptr
public DHParameterSetCPtr cptr()
-
alpha
public double alpha()
\alpha_{i-1} *
-
a
public double a()
a_{i-1} *
-
d
public double d()
d_{i} *
-
theta
public double theta()
$brief \theta_{i} *
-
b
public double b()
-
beta
public double beta()
-
isParallel
public boolean isParallel()
-
getType
public java.lang.String getType()
the DH-convention type
-
getDHParameters
public DHParameterSetVector getDHParameters(SerialDevicePtr device)
Returns the DH-Parameters for a SerialDevice.
If no or only a partial DH representation exists only the list will be empty or
non-complete.
- Parameters:
device- [in] SerialDevice for which to get the DH parameters- Returns:
- The set of DH parameters
-
get
public DHParameterSet get(PropertyMap pmap)
-
get
public DHParameterSet get(Joint joint)
-
set
public void set(DHParameterSet dhset, PropertyMap pmap)
-
set
public void set(DHParameterSet dhset, FramePtr joint)
-
-