sk.robotics.rlcs.agents.image
Class ImageServerAgent
java.lang.Object
sk.robotics.rlcs.agentspace.Agent
sk.robotics.rlcs.agents.image.ImageServerAgent
- All Implemented Interfaces:
- java.lang.Runnable
public class ImageServerAgent
- extends Agent
Agent which listens for clients, who want to receive images.
This agent listens for connections, and for each new connection,
starts through Scheduler a new instance of ImageStreamAgent,
which then sends to the client images from space, whenever
given image containing block is triggered.
This can be also used in cooperation with PHP to stream MJPEG through HTTP.
This agent should be triggered periodically. It does not listen all the time,
but just periodically checks for pending connections, and accepts them.
Method Summary |
protected void |
cleanup()
Cleanup method, called just before the agent thread finishes. |
protected void |
senseSelectAct()
|
Methods inherited from class sk.robotics.rlcs.agentspace.Agent |
exit, getConfig, getIdleTime, getWorkerThreadGroup, isAlive, kill, log, log, log, log, log, run, senseSelectAct, setLogLevel, setPeriodicTrigger, setPeriodicTrigger, sleep, start, startup, toString, trigger, trigger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ImageServerAgent
public ImageServerAgent(ImageServerAgent.Cfg cfg)
senseSelectAct
protected void senseSelectAct()
- Overrides:
senseSelectAct
in class Agent
cleanup
protected void cleanup()
- Description copied from class:
Agent
- Cleanup method, called just before the agent thread finishes.
Can be overriden to cleanup any allocated resources.
- Overrides:
cleanup
in class Agent