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

Sort monitor that examines the workscene perceiver state and helps generate sort reports. More...

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

Public Member Functions

def __init__ (self, theParams, thePerceiver, theActivity, theReporters=None)
 Constructor for the perceiver.monitor class. More...
 
def getInternalState (self)
 Get internal state of the monitor. 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 PuzzleMonitor
def free (self)
 Destructor. More...
 
def info (self)
 Return the information structure used for saving or otherwise determining the tracker setup for reproducibility. 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...
 

Public Attributes

 reporters
 
- 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

Sort monitor that examines the workscene perceiver state and helps generate sort reports.

Parameters
[in]theParamsConfiguration parameters for the monitor.
[in]thePerceiverThe perceiver whose state is being monitored.
[in]theActivityThe activity recognizer whose output is being monitored.
[in]theReportersThe reporter to use for generating reports.

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 PuzzleMonitor.

Member Function Documentation

◆ getInternalState()

def getInternalState (   self)

Get internal state of the 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 PuzzleMonitor.

◆ process()

def process (   self,
  I 
)

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

Run the output through the reporters

Reimplemented from PuzzleMonitor.

Member Data Documentation

◆ reporters

reporters

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