Package edu.tufts.hrilab.vision
Class VideoSendComponent
java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.vision.VideoSendComponent
-
Field Summary
Fields inherited from class edu.tufts.hrilab.diarc.DiarcComponent
executionLoopCycleTime, log, shouldRunExecutionLoop
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.apache.commons.cli.Option>
Command line options available in sub-class.protected void
This is where any code that needs to be called repeatedly in a dedicated thread should live.byte[]
getFrame()
An example of a remote call that fetches data from the server.protected void
init()
Perform any component initialization.protected void
Implements the local shutdown mechanism that derived classes need to implement to cleanly shutdownprotected void
parseArgs
(org.apache.commons.cli.CommandLine cmdLine) Parse additional command-line argumentsMethods inherited from class edu.tufts.hrilab.diarc.DiarcComponent
createInstance, createInstance, createInstance, createInstance, getMyGroupConstraints, getMyGroups, getMyService, getMyServices, main, shutdown, shutdownComponent
-
Constructor Details
-
VideoSendComponent
public VideoSendComponent()VideoSendComponent constructor.
-
-
Method Details
-
init
protected void init()Description copied from class:DiarcComponent
Perform any component initialization. This should not be used for setting local fields to default values as was the case in DIARC. This method is called after the constructor, and after parseArgs. Setting default values should be done in field declaration or in the constructor.- Overrides:
init
in classDiarcComponent
-
executionLoop
protected void executionLoop()Description copied from class:DiarcComponent
This is where any code that needs to be called repeatedly in a dedicated thread should live. It is not called by default and you must set shouldRunExecutionLoop to true in your constructor.- Overrides:
executionLoop
in classDiarcComponent
-
additionalUsageInfo
Description copied from class:DiarcComponent
Command line options available in sub-class. This should be paired with a parseArgs implementation.- Overrides:
additionalUsageInfo
in classDiarcComponent
- Returns:
-
parseArgs
protected void parseArgs(org.apache.commons.cli.CommandLine cmdLine) Parse additional command-line arguments- Overrides:
parseArgs
in classDiarcComponent
-
getFrame
public byte[] getFrame()An example of a remote call that fetches data from the server. Note that this remote call is used both by other servers and the server visualization -- e.g., there is no special interface that needs to be implemented for GUI-related methods.- Returns:
- server name, followed by an incrementing counter (initially seeded to a random value, so that the output of the two servers is different)
-
getImageSize
-
localshutdown
protected void localshutdown()Implements the local shutdown mechanism that derived classes need to implement to cleanly shutdown
-