Public Member Functions | Public Attributes | Static Public Attributes | Static Protected Attributes | Private Member Functions | Private Attributes | List of all members
com.generalrobotix.ui.item.GrxSensorItem Class Reference

sensor More...

Inheritance diagram for com.generalrobotix.ui.item.GrxSensorItem:
Inheritance graph
[legend]

Public Member Functions

GrxSensorItem clone ()
 Override clone method. More...
 
int compareTo (Object o)
 
Camera_impl getCamera ()
 
ValueEditType GetValueEditType (String key)
 
 GrxSensorItem (String name, GrxPluginManager manager, GrxModelItem model, SensorInfo info)
 constructor More...
 
boolean isCamera ()
 
boolean isVisible ()
 
boolean propertyChanged (String property, String value)
 check validity of new value of property and update if valid More...
 
void setFocused (boolean b)
 set/unset fucus on this item More...
 
void setVisibleArea (boolean b)
 make visible area visible/invisible More...
 
void type (String type)
 
void updateShapeOfVisibleArea (double[] distances)
 update shape of visible area(only used for RangeSensor) More...
 
- Public Member Functions inherited from com.generalrobotix.ui.item.GrxShapeTransformItem
void addPrimitiveShape (String name)
 
void addShape (Matrix4d segmentT)
 
void addShape (String fPath)
 create and add a new shape as a child More...
 
Matrix4d getTransform ()
 
 GrxShapeTransformItem (String name, GrxPluginManager manager, GrxModelItem model)
 
void rename (String newName)
 
double[] rotation ()
 
boolean rotation (String value)
 set new rotation from string More...
 
boolean rotation (double[] rot)
 
void transform (double[] w)
 
double[] translation ()
 
boolean translation (String value)
 set new translation from string More...
 
boolean translation (double[] pos)
 set new translation to TransformGroup More...
 
- Public Member Functions inherited from com.generalrobotix.ui.item.GrxTransformItem
 GrxTransformItem (String name, GrxPluginManager manager, GrxModelItem model)
 
void addChild (GrxTransformItem child)
 add a child More...
 
void removeChild (GrxTransformItem child)
 remove a child from children More...
 
void delete ()
 delete this item and children More...
 
GrxModelItem model ()
 get model item to which this item belongs More...
 
void setFocused (boolean b)
 
void gatherSensors (String type, List< GrxSensorItem > sensors)
 
Vector3d transformV3 (Vector3d v)
 
Switch getBBSwitch ()
 
- Public Member Functions inherited from com.generalrobotix.ui.GrxBaseItem
File chooseSaveFile ()
 
GrxBaseItem clone ()
 Override clone method. More...
 
boolean create ()
 
void delete ()
 delete this item More...
 
File getDefaultDir ()
 get default directory More...
 
String getFileExtention ()
 get file extension More...
 
Object getValue ()
 
boolean load (File file)
 
void paste (String clipVal)
 paste object More...
 
void setValue (Object o)
 
- Public Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
void addObserver (GrxObserver v)
 
GrxBasePlugin clone ()
 Override clone method. More...
 
void deleteObserver (GrxObserver v)
 
boolean equals (Object obj)
 check whether obj equals to this More...
 
Element getElement ()
 get element More...
 
Image getIcon ()
 get icon More...
 
Vector< Action > getMenu ()
 get menu More...
 
String[] getMenuPath ()
 get menu path More...
 
final String getName ()
 get name More...
 
ArrayList< GrxObservergetObserver ()
 
String getOldName ()
 
Vector< MenuManager > getSubMenu ()
 get subMenu More...
 
String getURL (boolean expand)
 
ValueEditType GetValueEditType (String key)
 Return editing type of the key item. More...
 
boolean isExclusive ()
 check whether this is exclusive or not More...
 
boolean isSelected ()
 check whether this is selected or not More...
 
void notifyObservers (Object...arg)
 
boolean propertyChanged (String property, String value)
 check validity of new value of property and update if valid More...
 
boolean registerCORBA ()
 
void rename (String newName)
 rename this item More...
 
void restoreProperties ()
 restore properties. Called by menu item "restore Properties" More...
 
void setDocument (Document doc)
 set document More...
 
void setElement (Element element)
 set element More...
 
void setExclusive (boolean b)
 set exclusive flag More...
 
void setFocused (boolean b)
 set/unset focus on this plugin More...
 
void setMenuItem (Action a)
 add a menu item More...
 
void setName (String name)
 set name More...
 
Object setProperty (String key, String value)
 set property value associated with a keyword More...
 
void setSelected (boolean b)
 set selected flag More...
 
void setSubMenu (MenuManager m)
 add a submenu More...
 
void setURL (String url)
 set URL property More...
 
void shutdown ()
 
Element storeProperties ()
 store properties More...
 
final String toString ()
 convert to String. Currently, name is returned. More...
 
void unregisterCORBA ()
 
- Public Member Functions inherited from com.generalrobotix.ui.util.GrxConfigBundle
final Double getDbl (String key, Double defaultVal)
 get double value associated to key More...
 
Double getDbl (String value)
 
final double[] getDblAry (String key, double[] defaultVal)
 get double array associated to key More...
 
double[] getDblAry (String value)
 get array of double from String More...
 
final Float getFlt (String key, Float defaultVal)
 get float value associated to key More...
 
final Float getFlt (String value)
 
final float[] getFltAry (String key, float[] defaultVal)
 get float array associated to key More...
 
float[] getFltAry (String value)
 
final Integer getInt (String key, Integer defaultVal)
 get integer value associated to key More...
 
final int[] getIntAry (String key)
 get integer array associated to key More...
 
final Short getShort (String key, Short defaultVal)
 get short value associated to key More...
 
Short getShort (String value)
 
final String getStr (String key)
 get value associated to keyword More...
 
final String getStr (String key, String defaultVal)
 get value associated to key More...
 
 GrxConfigBundle ()
 constructor More...
 
 GrxConfigBundle (String fname) throws IOException
 construct from a file More...
 
final boolean isFalse (String key)
 check whether value associated to key includes a word "false" More...
 
final boolean isFalse (String key, boolean defaultVal)
 check whether value associated to key includes a word "false" More...
 
final boolean isTrue (String key)
 check whether value associated to key includes a word "true" More...
 
final boolean isTrue (String key, boolean defaultVal)
 check whether value associated to key includes a word "true" More...
 
void load (String fname) throws IOException
 load config from a file More...
 
final void setBool (String key, boolean value)
 
final void setDbl (String key, double value)
 associate double value to key More...
 
final void setDbl (String key, double value, int digits)
 associate double value to key More...
 
final void setDblAry (String key, double[] value, int digits)
 associate double array to key More...
 
final void setDblAry (String key, double[] value)
 associate double array to key More...
 
final void setFlt (String key, float value)
 associate float value to key More...
 
final void setFltAry (String key, float[] value)
 associate float array to key More...
 
final void setInt (String key, int value)
 associate int value to key More...
 
final void setShort (String key, short value)
 associate short value to key More...
 
void store (String fname, String comments) throws IOException
 store this config More...
 

Public Attributes

int id_
 
String type_
 
- Public Attributes inherited from com.generalrobotix.ui.item.GrxTransformItem
BranchGroup bg_
 
Vector< GrxTransformItemchildren_
 
GrxTransformItem parent_
 
TransformGroup tg_
 

Static Public Attributes

static final String[] sensorType = { "Vision", "RateGyro" , "Acceleration" , "Force" , "Range" }
 

Static Protected Attributes

static final String[] cameraTypeComboItem_ = new String[] { "NONE", "COLOR" , "MONO" , "DEPTH" , "COLOR_DEPTH" , "MONO_DEPTH" }
 
static final String[] sensorTypeComboItem_ = sensorType
 
- Static Protected Attributes inherited from com.generalrobotix.ui.GrxBaseItem
static final String[] jointTypeComboItem_ = new String[] { "fixed", "rotate", "free", "slide" }
 
static final String[] methodComboItem_ = new String[] { "EULER", "RUNGE_KUTTA" }
 
static final String[] modeComboItem_ = new String[] { "Torque", "HighGain" }
 
- Static Protected Attributes inherited from com.generalrobotix.ui.GrxBasePlugin
static final String[] booleanComboItem_ = new String[] {"true", "false" }
 
static final String INDENT4 = " "
 
static final String ITEM_TAG = "item"
 
static final String PROPERTY_TAG = "property"
 
static final String VIEW_TAG = "view"
 

Private Member Functions

Shape3D _createShapeOfVisibleArea ()
 create shape of visible area More...
 
Point3f[] _distances2points (double[] distances)
 convert array of distance into array of 3D point More...
 
void _removeSensorSpecificProperties ()
 
void cameraType (String cameraType)
 
int getOrder (String type)
 get sensor type as integer value More...
 

Private Attributes

Camera_impl camera_ = null
 
String specFile_
 
float[] specValues_
 
Switch switchVisibleArea_ = null
 

Additional Inherited Members

- Static Public Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
static Object getField (Class<?extends GrxBasePlugin > cls, String field, Object defaultValue)
 get field More...
 
- Protected Member Functions inherited from com.generalrobotix.ui.item.GrxShapeTransformItem
void addTransformedShapeIndex (TransformedShapeIndex transformedShapeIndex)
 
void buildShapeTransforms (double[][] inlinedShapeTransformMatrices)
 
void initMenu ()
 
- Protected Member Functions inherited from com.generalrobotix.ui.item.GrxTransformItem
void resizeBoundingBox ()
 
- Protected Member Functions inherited from com.generalrobotix.ui.GrxBaseItem
 GrxBaseItem (String name, GrxPluginManager manager)
 constructor More...
 
void setDefaultDirectory (String dir)
 
void setFileExtension (String ext)
 
- Protected Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
 GrxBasePlugin (String name, GrxPluginManager manager)
 constructor More...
 
void setIcon (String iconName)
 set icon More...
 
void setMenuPath (String[] path)
 set menu path More...
 
boolean syncExec (Runnable r)
 Transfer SWT UI thread. More...
 
- Protected Attributes inherited from com.generalrobotix.ui.item.GrxTransformItem
GrxModelItem model_
 
- Protected Attributes inherited from com.generalrobotix.ui.GrxBaseItem
String clipValue_ = ""
 
File file_
 
- Protected Attributes inherited from com.generalrobotix.ui.GrxBasePlugin
Document doc_
 
Element element_
 
GrxPluginManager manager_
 

Detailed Description

sensor

Definition at line 41 of file GrxSensorItem.java.

Constructor & Destructor Documentation

com.generalrobotix.ui.item.GrxSensorItem.GrxSensorItem ( String  name,
GrxPluginManager  manager,
GrxModelItem  model,
SensorInfo  info 
)
inline

constructor

Parameters
infoSensorInfo retrieved through ModelLoader
parentLinklink to which this sensor is attached

Definition at line 60 of file GrxSensorItem.java.

Member Function Documentation

Shape3D com.generalrobotix.ui.item.GrxSensorItem._createShapeOfVisibleArea ( )
inlineprivate

create shape of visible area

Returns
shape

Definition at line 423 of file GrxSensorItem.java.

Point3f [] com.generalrobotix.ui.item.GrxSensorItem._distances2points ( double[]  distances)
inlineprivate

convert array of distance into array of 3D point

Parameters
distancesarray of distance
Returns
array of 3D point

Definition at line 376 of file GrxSensorItem.java.

void com.generalrobotix.ui.item.GrxSensorItem._removeSensorSpecificProperties ( )
inlineprivate

Definition at line 335 of file GrxSensorItem.java.

void com.generalrobotix.ui.item.GrxSensorItem.cameraType ( String  cameraType)
inlineprivate

Definition at line 542 of file GrxSensorItem.java.

GrxSensorItem com.generalrobotix.ui.item.GrxSensorItem.clone ( )
inline

Override clone method.

Returns
GrxSensorItem

Definition at line 362 of file GrxSensorItem.java.

int com.generalrobotix.ui.item.GrxSensorItem.compareTo ( Object  o)
inline

Definition at line 165 of file GrxSensorItem.java.

Camera_impl com.generalrobotix.ui.item.GrxSensorItem.getCamera ( )
inline

Definition at line 535 of file GrxSensorItem.java.

int com.generalrobotix.ui.item.GrxSensorItem.getOrder ( String  type)
inlineprivate

get sensor type as integer value

Parameters
typesensor type
Returns

Definition at line 183 of file GrxSensorItem.java.

ValueEditType com.generalrobotix.ui.item.GrxSensorItem.GetValueEditType ( String  key)
inline

Definition at line 567 of file GrxSensorItem.java.

boolean com.generalrobotix.ui.item.GrxSensorItem.isCamera ( )
inline

Definition at line 528 of file GrxSensorItem.java.

boolean com.generalrobotix.ui.item.GrxSensorItem.isVisible ( )
inline

Definition at line 511 of file GrxSensorItem.java.

boolean com.generalrobotix.ui.item.GrxSensorItem.propertyChanged ( String  property,
String  value 
)
inline

check validity of new value of property and update if valid

Parameters
propertyname of property
valuevalue of property
Returns
true if checked(even if value is not used), false otherwise

Definition at line 218 of file GrxSensorItem.java.

void com.generalrobotix.ui.item.GrxSensorItem.setFocused ( boolean  b)
inline

set/unset fucus on this item

When this item is focused, some geometries are displayed

Parameters
btrue to fucus, false to unfocus

Definition at line 521 of file GrxSensorItem.java.

void com.generalrobotix.ui.item.GrxSensorItem.setVisibleArea ( boolean  b)
inline

make visible area visible/invisible

Parameters
btrue to make visible, false otherwise

Definition at line 505 of file GrxSensorItem.java.

void com.generalrobotix.ui.item.GrxSensorItem.type ( String  type)
inline

Definition at line 248 of file GrxSensorItem.java.

void com.generalrobotix.ui.item.GrxSensorItem.updateShapeOfVisibleArea ( double[]  distances)
inline

update shape of visible area(only used for RangeSensor)

Parameters
distancesarray of distances

Definition at line 407 of file GrxSensorItem.java.

Member Data Documentation

Camera_impl com.generalrobotix.ui.item.GrxSensorItem.camera_ = null
private

Definition at line 48 of file GrxSensorItem.java.

final String [] com.generalrobotix.ui.item.GrxSensorItem.cameraTypeComboItem_ = new String[] { "NONE", "COLOR" , "MONO" , "DEPTH" , "COLOR_DEPTH" , "MONO_DEPTH" }
staticprotected

Definition at line 53 of file GrxSensorItem.java.

int com.generalrobotix.ui.item.GrxSensorItem.id_

Definition at line 43 of file GrxSensorItem.java.

final String [] com.generalrobotix.ui.item.GrxSensorItem.sensorType = { "Vision", "RateGyro" , "Acceleration" , "Force" , "Range" }
static

Definition at line 51 of file GrxSensorItem.java.

final String [] com.generalrobotix.ui.item.GrxSensorItem.sensorTypeComboItem_ = sensorType
staticprotected

Definition at line 52 of file GrxSensorItem.java.

String com.generalrobotix.ui.item.GrxSensorItem.specFile_
private

Definition at line 45 of file GrxSensorItem.java.

float [] com.generalrobotix.ui.item.GrxSensorItem.specValues_
private

Definition at line 44 of file GrxSensorItem.java.

Switch com.generalrobotix.ui.item.GrxSensorItem.switchVisibleArea_ = null
private

Definition at line 49 of file GrxSensorItem.java.

String com.generalrobotix.ui.item.GrxSensorItem.type_

Definition at line 42 of file GrxSensorItem.java.


The documentation for this class was generated from the following file:


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:44