IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
Public Member Functions | List of all members
PuzzleMonitor Class Reference

Puzzle monitor that examines hand/glove state and puzzle state, or equivalent information as measured by a perceiver. More...

Inheritance diagram for PuzzleMonitor:
Inheritance graph
[legend]
Collaboration diagram for PuzzleMonitor:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, theParams, thePerceiver, theActivity, theReporter=None)
 Constructor for the perceiver.monitor class. More...
 
def free (self)
 Destructor. More...
 
def info (self)
 Return the information structure used for saving or otherwise determining the tracker setup for reproducibility. More...
 
def measure (self, I)
 Run activity detection process to generate activity state measurement. More...
 
def process (self, I)
 Run perceive + activity recognize pipeline for one step/image measurement. More...
 
- Public Member Functions inherited from Monitor
def adapt (self)
 Adapt parts of the process based on measurements and corrections. More...
 
def correct (self)
 Correct the estimated state based on measured and predicted. More...
 
def displayDebug (self, dbState=None)
 Display the debug state. More...
 
def displayState (self, dState=None)
 Display the perceiver state and activity state per configuration specification. More...
 
def emptyState (self)
 Returns an empty activity state structure. More...
 
def getState (self)
 Returns the current activity state structure. More...
 
def predict (self)
 Predict next measurement, if applicable. More...
 
def setState (self, nstate)
 Sets the state of the tracker. More...
 

Additional Inherited Members

- Public Attributes inherited from Monitor
 activity
 Activity detection/recognition instance. More...
 
 params
 
 perceiver
 Perceiver instance. More...
 
 reporter
 Takes activity outcomes and creates report out. More...
 

Detailed Description

Puzzle monitor that examines hand/glove state and puzzle state, or equivalent information as measured by a perceiver.

A generic sub-class of Monitor intended to demonstrate how to implement with a richer output signal due to the layers. It might serve well for a diverse set of implementations as the role of the monitor may be to shepherd information around. Some cases of specialized processing may require creating a sub-class.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  theParams,
  thePerceiver,
  theActivity,
  theReporter = None 
)

Constructor for the perceiver.monitor class.

Parameters
[in]theParamsOption set of paramters.
[in]thePerceiverPerceiver instance (or possibly not).
[in]theActivityActivity detector/recognizer.
[in]theReporterReporting mechanism for activity outputs.

Reimplemented from Monitor.

Member Function Documentation

◆ free()

def free (   self)

Destructor.

Just in case other stuff needs to be done.

Reimplemented from Monitor.

◆ info()

def info (   self)

Return the information structure used for saving or otherwise determining the tracker setup for reproducibility.

Parameters
[out]tinfoThe tracking configuration information structure.

Reimplemented from Monitor.

◆ measure()

def measure (   self,
  I 
)

Run activity detection process to generate activity state measurement.

If perceiver has no measurement/observation, then does nothing.

Parameters
[in]IImage to process. Depending on implementation, might be optional.

Reimplemented from Monitor.

◆ process()

def process (   self,
  I 
)

Run perceive + activity recognize pipeline for one step/image measurement.

Reimplemented from Monitor.


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