Package org.robwork.sdurw_sensor
Class FTSensorModelCPtr
- java.lang.Object
-
- org.robwork.sdurw_sensor.FTSensorModelCPtr
-
public class FTSensorModelCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description FTSensorModelCPtr()
Default constructor yielding a NULL-pointer.FTSensorModelCPtr(long cPtr, boolean cMemoryOwn)
FTSensorModelCPtr(FTSensorModel 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 FTSensorModel
__ref__()
Dereferencing operator.void
delete()
FTSensorModel
deref()
The pointer stored in the object.boolean
equals(FTSensorModel p)
static long
getCPtr(FTSensorModelCPtr obj)
FTSensorModel
getDeref()
Member access operator.java.lang.String
getDescription()
returns a description of this sensorVector3D
getForce(State state)
gets the force in N that is acting on the origin.Frame
getFrame()
The frame to which the sensor is attached.
The frame can be NULL.Vector3D
getMaxForce()
gets the maximum force in Newton that this sensor can measure on any of its
axis.Vector3D
getMaxTorque()
gets the maximum torque in Newton Meter (N m)that this sensor can measure on any
of its axis.Wrench6D
getMaxWrench()
get maximum wrench (force and torque) characteristicsjava.lang.String
getName()
returns the name of this sensorVector3D
getTorque(State state)
gets the torgue in Nm that is acting on the origin.Transform3D
getTransform()
the transform from the sensor frame to the point of origin.Wrench6D
getWrench(State state)
gets the force in N that is acting on the origin.boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownership
-
-
-
Constructor Detail
-
FTSensorModelCPtr
public FTSensorModelCPtr(long cPtr, boolean cMemoryOwn)
-
FTSensorModelCPtr
public FTSensorModelCPtr()
Default constructor yielding a NULL-pointer.
-
FTSensorModelCPtr
public FTSensorModelCPtr(FTSensorModel ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(FTSensorModelCPtr obj)
-
delete
public void delete()
-
deref
public FTSensorModel deref()
The pointer stored in the object.
-
__ref__
public FTSensorModel __ref__()
Dereferencing operator.
-
getDeref
public FTSensorModel getDeref()
Member access operator.
-
equals
public boolean equals(FTSensorModel 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
-
getMaxWrench
public Wrench6D getMaxWrench()
get maximum wrench (force and torque) characteristics- Returns:
-
getMaxForce
public Vector3D getMaxForce()
gets the maximum force in Newton that this sensor can measure on any of its
axis.- Returns:
- max force in Newton.
-
getMaxTorque
public Vector3D getMaxTorque()
gets the maximum torque in Newton Meter (N m)that this sensor can measure on any
of its axis.- Returns:
- max torque in Newton Meter(N m).
-
getWrench
public Wrench6D getWrench(State state)
gets the force in N that is acting on the origin. The
force is described in relation to the origin.- Returns:
- force acting on origin.
-
getForce
public Vector3D getForce(State state)
gets the force in N that is acting on the origin. The
force is described in relation to the origin.- Returns:
- force acting on origin.
-
getTorque
public Vector3D getTorque(State state)
gets the torgue in Nm that is acting on the origin. The
torque is described in relation to the origin.- Returns:
- torque acting on origin.
-
getTransform
public Transform3D getTransform()
the transform from the sensor frame to the point of origin.- Returns:
- transform from sensor frame to point of origin.
-
getName
public java.lang.String getName()
returns the name of this sensor- Returns:
- name of sensor
-
getDescription
public java.lang.String getDescription()
returns a description of this sensor- Returns:
- reference to this sensors description
-
getFrame
public Frame getFrame()
The frame to which the sensor is attached.
The frame can be NULL.
-
-