Package org.robwork.sdurw_task
Class GraspTaskPtr
- java.lang.Object
-
- org.robwork.sdurw_task.GraspTaskPtr
-
public class GraspTaskPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description GraspTaskPtr()
Default constructor yielding a NULL-pointer.GraspTaskPtr(long cPtr, boolean cMemoryOwn)
GraspTaskPtr(GraspTask 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 GraspTask
__ref__()
Dereferencing operator.GraspTaskPtr
clone()
void
delete()
GraspTask
deref()
The pointer stored in the object.boolean
equals(GraspTask p)
static long
getCPtr(GraspTaskPtr obj)
GraspTask
getDeref()
Member access operator.java.lang.String
getGraspControllerID()
java.lang.String
getGripperID()
java.lang.String
getTCPID()
boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipGraspTaskPtr
load(java.lang.String name)
GraspTaskPtr
load(SWIGTYPE_p_std__istringstream inputStream)
void
saveRWTask(GraspTaskPtr task, java.lang.String name)
void
saveText(GraspTaskPtr task, java.lang.String name)
void
saveUIBK(GraspTaskPtr task, java.lang.String name)
void
setGraspControllerID(java.lang.String id)
void
setGripperID(java.lang.String id)
void
setTCPID(java.lang.String id)
TaskSE3Ptr
toCartesianTask()
java.lang.String
toString(GraspResult.TestStatus status)
-
-
-
Constructor Detail
-
GraspTaskPtr
public GraspTaskPtr(long cPtr, boolean cMemoryOwn)
-
GraspTaskPtr
public GraspTaskPtr()
Default constructor yielding a NULL-pointer.
-
GraspTaskPtr
public GraspTaskPtr(GraspTask ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(GraspTaskPtr obj)
-
delete
public void delete()
-
deref
public GraspTask deref()
The pointer stored in the object.
-
__ref__
public GraspTask __ref__()
Dereferencing operator.
-
getDeref
public GraspTask getDeref()
Member access operator.
-
equals
public boolean equals(GraspTask 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
-
toCartesianTask
public TaskSE3Ptr toCartesianTask()
-
getGripperID
public java.lang.String getGripperID()
-
getTCPID
public java.lang.String getTCPID()
-
getGraspControllerID
public java.lang.String getGraspControllerID()
-
setGripperID
public void setGripperID(java.lang.String id)
-
setTCPID
public void setTCPID(java.lang.String id)
-
setGraspControllerID
public void setGraspControllerID(java.lang.String id)
-
toString
public java.lang.String toString(GraspResult.TestStatus status)
-
saveUIBK
public void saveUIBK(GraspTaskPtr task, java.lang.String name)
-
saveRWTask
public void saveRWTask(GraspTaskPtr task, java.lang.String name)
-
saveText
public void saveText(GraspTaskPtr task, java.lang.String name)
-
load
public GraspTaskPtr load(java.lang.String name)
-
load
public GraspTaskPtr load(SWIGTYPE_p_std__istringstream inputStream)
-
clone
public GraspTaskPtr clone()
-
-