Package org.robwork.sdurw_sensor
Class Sensor
- java.lang.Object
-
- org.robwork.sdurw_sensor.Sensor
-
- Direct Known Subclasses:
Camera,FTSensor,Scanner,TactileArray
public class Sensor extends java.lang.Objecta generel hardware sensor interface. The sensor should interface
to a statefull instance of either a real world sensor or a simulated
sensor. The sensor interface acts as a realistic handle to controlling
some specific instance of a sensor.
-
-
Constructor Summary
Constructors Constructor Description Sensor(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()static longgetCPtr(Sensor obj)java.lang.StringgetDescription()returns a description of this sensorjava.lang.StringgetName()returns the name of this sensorPropertyMapgetPropertyMap()gets the propertymap of this sensorSensorModelPtrgetSensorModel()The frame to which the sensor is attached.
The frame can be NULL.voidsetSensorModel(SensorModelPtr smodel)Sets the frame to which the sensor should be attached
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(Sensor obj)
-
delete
public void delete()
-
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
-
getSensorModel
public SensorModelPtr getSensorModel()
The frame to which the sensor is attached.
The frame can be NULL.
-
setSensorModel
public void setSensorModel(SensorModelPtr smodel)
Sets the frame to which the sensor should be attached
- Parameters:
smodel-
-
getPropertyMap
public PropertyMap getPropertyMap()
gets the propertymap of this sensor
-
-