Classes | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.generalrobotix.ui.item.GrxSimulationItem Class Reference
Inheritance diagram for com.generalrobotix.ui.item.GrxSimulationItem:
Inheritance graph
[legend]

Classes

class  ClockGenerator_impl
 implementation of ClockGenerator interface More...
 
class  ControllerAttribute
 

Public Member Functions

void continueSimulation ()
 
boolean create ()
 
void delete ()
 
void endOfSimulation ()
 
int gcd (int a, int b)
 
DynamicsSimulator getDynamicsSimulator (boolean update)
 
ValueEditType GetValueEditType (String key)
 
 GrxSimulationItem (String name, GrxPluginManager manager)
 
boolean initDynamicsSimulator ()
 
boolean isSimulating ()
 
int lcm (int a, int b)
 
float lcm (float a, float b)
 
boolean registerCORBA ()
 
void restoreProperties ()
 
void shutdown ()
 
boolean startSimulation (boolean isInteractive)
 
void stopSimulation ()
 
void unregisterCORBA ()
 
void waitStopSimulation () throws InterruptedException
 
- 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...
 

Static Public Attributes

static final String TITLE = "Simulation"
 

Private Member Functions

Thread _createSimulationThread ()
 
ControllerAttribute _getController (String localID)
 
ControllerAttribute _getControllerFromControllerName (String controllerName)
 
void _refreshControllers (List< String > refStrList)
 
boolean _setupController (GrxModelItem model, ControllerAttribute deactivatedController)
 
boolean extendTime ()
 
boolean initController ()
 
boolean simulateOneStep ()
 simulate one step More...
 

Private Attributes

List< ControllerAttributecontrollers_ = new ArrayList<ControllerAttribute>()
 
SensorStateHolder cStateH_ = new SensorStateHolder()
 
DynamicsSimulator currentDynamics_
 
GrxWorldStateItem currentWorld_
 
boolean isExecuting_ = false
 
boolean isIntegrate_ = true
 
boolean isInteractive_ = true
 
boolean isRealTime_ = false
 
boolean isSimulatingView_
 
boolean isSuspending_ = false
 
Object lock2_ = new Object()
 
Object lock3_ = new Object()
 
Object lock_ = new Object()
 
double logStepTime_ = 0.05
 
List< String > robotEntry_ = new ArrayList<String>()
 
Thread simThread_
 
int simThreadState_ = EXEC
 
double simTime_ = 0.0
 
double simulateTime_ = 0
 
WorldStateHolder stateH_ = new WorldStateHolder()
 
double stepTime_ = 0.001
 
double totalTime_ = 20
 
Grx3DView view3D
 
double viewSimulationStep_ =0
 
boolean viewSimulationUpdate_ = false
 
WorldStateEx wsx_ =null
 

Static Private Attributes

static ClockGenerator_impl clockGenerator_ = null
 
static final int EXEC = -1
 
static final String FORMAT1 = "%8.3f"
 
static final int INTERRUPT = 2
 
static final int interval_ = 10
 
static final int STOP = 1
 
static final int TIMEOVER = 0
 
static final int WAIT_COUNT_ = 4
 

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.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.GrxBaseItem
String clipValue_ = ""
 
File file_
 
- Protected Attributes inherited from com.generalrobotix.ui.GrxBasePlugin
Document doc_
 
Element element_
 
GrxPluginManager manager_
 
- 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"
 

Detailed Description

Definition at line 74 of file GrxSimulationItem.java.

Constructor & Destructor Documentation

◆ GrxSimulationItem()

com.generalrobotix.ui.item.GrxSimulationItem.GrxSimulationItem ( String  name,
GrxPluginManager  manager 
)
inline

Definition at line 106 of file GrxSimulationItem.java.

Member Function Documentation

◆ _createSimulationThread()

Thread com.generalrobotix.ui.item.GrxSimulationItem._createSimulationThread ( )
inlineprivate

Definition at line 297 of file GrxSimulationItem.java.

◆ _getController()

ControllerAttribute com.generalrobotix.ui.item.GrxSimulationItem._getController ( String  localID)
inlineprivate

Definition at line 775 of file GrxSimulationItem.java.

◆ _getControllerFromControllerName()

ControllerAttribute com.generalrobotix.ui.item.GrxSimulationItem._getControllerFromControllerName ( String  controllerName)
inlineprivate

Definition at line 786 of file GrxSimulationItem.java.

◆ _refreshControllers()

void com.generalrobotix.ui.item.GrxSimulationItem._refreshControllers ( List< String >  refStrList)
inlineprivate

Definition at line 798 of file GrxSimulationItem.java.

◆ _setupController()

boolean com.generalrobotix.ui.item.GrxSimulationItem._setupController ( GrxModelItem  model,
ControllerAttribute  deactivatedController 
)
inlineprivate

Definition at line 818 of file GrxSimulationItem.java.

◆ continueSimulation()

void com.generalrobotix.ui.item.GrxSimulationItem.continueSimulation ( )
inline

Definition at line 348 of file GrxSimulationItem.java.

◆ create()

boolean com.generalrobotix.ui.item.GrxSimulationItem.create ( )
inline

Definition at line 113 of file GrxSimulationItem.java.

◆ delete()

void com.generalrobotix.ui.item.GrxSimulationItem.delete ( )
inline

Definition at line 598 of file GrxSimulationItem.java.

◆ endOfSimulation()

void com.generalrobotix.ui.item.GrxSimulationItem.endOfSimulation ( )
inline

Definition at line 358 of file GrxSimulationItem.java.

◆ extendTime()

boolean com.generalrobotix.ui.item.GrxSimulationItem.extendTime ( )
inlineprivate

Definition at line 961 of file GrxSimulationItem.java.

◆ gcd()

int com.generalrobotix.ui.item.GrxSimulationItem.gcd ( int  a,
int  b 
)
inline

Definition at line 1027 of file GrxSimulationItem.java.

◆ getDynamicsSimulator()

DynamicsSimulator com.generalrobotix.ui.item.GrxSimulationItem.getDynamicsSimulator ( boolean  update)
inline

Definition at line 730 of file GrxSimulationItem.java.

◆ GetValueEditType()

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

Definition at line 1018 of file GrxSimulationItem.java.

◆ initController()

boolean com.generalrobotix.ui.item.GrxSimulationItem.initController ( )
inlineprivate

Definition at line 757 of file GrxSimulationItem.java.

◆ initDynamicsSimulator()

boolean com.generalrobotix.ui.item.GrxSimulationItem.initDynamicsSimulator ( )
inline

Definition at line 603 of file GrxSimulationItem.java.

◆ isSimulating()

boolean com.generalrobotix.ui.item.GrxSimulationItem.isSimulating ( )
inline

Definition at line 989 of file GrxSimulationItem.java.

◆ lcm() [1/2]

int com.generalrobotix.ui.item.GrxSimulationItem.lcm ( int  a,
int  b 
)
inline

Definition at line 1033 of file GrxSimulationItem.java.

◆ lcm() [2/2]

float com.generalrobotix.ui.item.GrxSimulationItem.lcm ( float  a,
float  b 
)
inline

Definition at line 1037 of file GrxSimulationItem.java.

◆ registerCORBA()

boolean com.generalrobotix.ui.item.GrxSimulationItem.registerCORBA ( )
inline

Definition at line 555 of file GrxSimulationItem.java.

◆ restoreProperties()

void com.generalrobotix.ui.item.GrxSimulationItem.restoreProperties ( )
inline

Definition at line 993 of file GrxSimulationItem.java.

◆ shutdown()

void com.generalrobotix.ui.item.GrxSimulationItem.shutdown ( )
inline

Definition at line 584 of file GrxSimulationItem.java.

◆ simulateOneStep()

boolean com.generalrobotix.ui.item.GrxSimulationItem.simulateOneStep ( )
inlineprivate

simulate one step

Returns
true if simulation should be continued, false otherwise

Definition at line 388 of file GrxSimulationItem.java.

◆ startSimulation()

boolean com.generalrobotix.ui.item.GrxSimulationItem.startSimulation ( boolean  isInteractive)
inline

Definition at line 142 of file GrxSimulationItem.java.

◆ stopSimulation()

void com.generalrobotix.ui.item.GrxSimulationItem.stopSimulation ( )
inline

Definition at line 353 of file GrxSimulationItem.java.

◆ unregisterCORBA()

void com.generalrobotix.ui.item.GrxSimulationItem.unregisterCORBA ( )
inline

Definition at line 572 of file GrxSimulationItem.java.

◆ waitStopSimulation()

void com.generalrobotix.ui.item.GrxSimulationItem.waitStopSimulation ( ) throws InterruptedException
inline

Definition at line 464 of file GrxSimulationItem.java.

Member Data Documentation

◆ clockGenerator_

ClockGenerator_impl com.generalrobotix.ui.item.GrxSimulationItem.clockGenerator_ = null
staticprivate

Definition at line 84 of file GrxSimulationItem.java.

◆ controllers_

List<ControllerAttribute> com.generalrobotix.ui.item.GrxSimulationItem.controllers_ = new ArrayList<ControllerAttribute>()
private

Definition at line 80 of file GrxSimulationItem.java.

◆ cStateH_

SensorStateHolder com.generalrobotix.ui.item.GrxSimulationItem.cStateH_ = new SensorStateHolder()
private

Definition at line 82 of file GrxSimulationItem.java.

◆ currentDynamics_

DynamicsSimulator com.generalrobotix.ui.item.GrxSimulationItem.currentDynamics_
private

Definition at line 79 of file GrxSimulationItem.java.

◆ currentWorld_

GrxWorldStateItem com.generalrobotix.ui.item.GrxSimulationItem.currentWorld_
private

Definition at line 78 of file GrxSimulationItem.java.

◆ EXEC

final int com.generalrobotix.ui.item.GrxSimulationItem.EXEC = -1
staticprivate

Definition at line 132 of file GrxSimulationItem.java.

◆ FORMAT1

final String com.generalrobotix.ui.item.GrxSimulationItem.FORMAT1 = "%8.3f"
staticprivate

Definition at line 76 of file GrxSimulationItem.java.

◆ INTERRUPT

final int com.generalrobotix.ui.item.GrxSimulationItem.INTERRUPT = 2
staticprivate

Definition at line 135 of file GrxSimulationItem.java.

◆ interval_

final int com.generalrobotix.ui.item.GrxSimulationItem.interval_ = 10
staticprivate

Definition at line 100 of file GrxSimulationItem.java.

◆ isExecuting_

boolean com.generalrobotix.ui.item.GrxSimulationItem.isExecuting_ = false
private

Definition at line 87 of file GrxSimulationItem.java.

◆ isIntegrate_

boolean com.generalrobotix.ui.item.GrxSimulationItem.isIntegrate_ = true
private

Definition at line 90 of file GrxSimulationItem.java.

◆ isInteractive_

boolean com.generalrobotix.ui.item.GrxSimulationItem.isInteractive_ = true
private

Definition at line 86 of file GrxSimulationItem.java.

◆ isRealTime_

boolean com.generalrobotix.ui.item.GrxSimulationItem.isRealTime_ = false
private

Definition at line 91 of file GrxSimulationItem.java.

◆ isSimulatingView_

boolean com.generalrobotix.ui.item.GrxSimulationItem.isSimulatingView_
private

Definition at line 95 of file GrxSimulationItem.java.

◆ isSuspending_

boolean com.generalrobotix.ui.item.GrxSimulationItem.isSuspending_ = false
private

Definition at line 88 of file GrxSimulationItem.java.

◆ lock2_

Object com.generalrobotix.ui.item.GrxSimulationItem.lock2_ = new Object()
private

Definition at line 104 of file GrxSimulationItem.java.

◆ lock3_

Object com.generalrobotix.ui.item.GrxSimulationItem.lock3_ = new Object()
private

Definition at line 138 of file GrxSimulationItem.java.

◆ lock_

Object com.generalrobotix.ui.item.GrxSimulationItem.lock_ = new Object()
private

Definition at line 137 of file GrxSimulationItem.java.

◆ logStepTime_

double com.generalrobotix.ui.item.GrxSimulationItem.logStepTime_ = 0.05
private

Definition at line 94 of file GrxSimulationItem.java.

◆ robotEntry_

List<String> com.generalrobotix.ui.item.GrxSimulationItem.robotEntry_ = new ArrayList<String>()
private

Definition at line 83 of file GrxSimulationItem.java.

◆ simThread_

Thread com.generalrobotix.ui.item.GrxSimulationItem.simThread_
private

Definition at line 99 of file GrxSimulationItem.java.

◆ simThreadState_

int com.generalrobotix.ui.item.GrxSimulationItem.simThreadState_ = EXEC
private

Definition at line 136 of file GrxSimulationItem.java.

◆ simTime_

double com.generalrobotix.ui.item.GrxSimulationItem.simTime_ = 0.0
private

Definition at line 130 of file GrxSimulationItem.java.

◆ simulateTime_

double com.generalrobotix.ui.item.GrxSimulationItem.simulateTime_ = 0
private

Definition at line 89 of file GrxSimulationItem.java.

◆ stateH_

WorldStateHolder com.generalrobotix.ui.item.GrxSimulationItem.stateH_ = new WorldStateHolder()
private

Definition at line 81 of file GrxSimulationItem.java.

◆ stepTime_

double com.generalrobotix.ui.item.GrxSimulationItem.stepTime_ = 0.001
private

Definition at line 92 of file GrxSimulationItem.java.

◆ STOP

final int com.generalrobotix.ui.item.GrxSimulationItem.STOP = 1
staticprivate

Definition at line 134 of file GrxSimulationItem.java.

◆ TIMEOVER

final int com.generalrobotix.ui.item.GrxSimulationItem.TIMEOVER = 0
staticprivate

Definition at line 133 of file GrxSimulationItem.java.

◆ TITLE

final String com.generalrobotix.ui.item.GrxSimulationItem.TITLE = "Simulation"
static

Definition at line 75 of file GrxSimulationItem.java.

◆ totalTime_

double com.generalrobotix.ui.item.GrxSimulationItem.totalTime_ = 20
private

Definition at line 93 of file GrxSimulationItem.java.

◆ view3D

Grx3DView com.generalrobotix.ui.item.GrxSimulationItem.view3D
private

Definition at line 101 of file GrxSimulationItem.java.

◆ viewSimulationStep_

double com.generalrobotix.ui.item.GrxSimulationItem.viewSimulationStep_ =0
private

Definition at line 96 of file GrxSimulationItem.java.

◆ viewSimulationUpdate_

boolean com.generalrobotix.ui.item.GrxSimulationItem.viewSimulationUpdate_ = false
private

Definition at line 139 of file GrxSimulationItem.java.

◆ WAIT_COUNT_

final int com.generalrobotix.ui.item.GrxSimulationItem.WAIT_COUNT_ = 4
staticprivate

Definition at line 77 of file GrxSimulationItem.java.

◆ wsx_

WorldStateEx com.generalrobotix.ui.item.GrxSimulationItem.wsx_ =null
private

Definition at line 140 of file GrxSimulationItem.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 Thu Sep 8 2022 02:24:07