|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectroomba.roombanetwork.services.image.ColorFinderService
public class ColorFinderService
Provides a color finder service to the Roomba Network. Will consume an image and will find a color blob within the image
| Field Summary |
|---|
| Fields inherited from interface roomba.roombanetwork.services.ServiceStatusProvider |
|---|
STATUS_ERROR, STATUS_OK |
| Constructor Summary | |
|---|---|
ColorFinderService(java.lang.String serviceName,
java.lang.String rnsHost,
int rnsPort,
Camera camera)
Constructor - creates the RNC and will start to grab images from the camera. |
|
| Method Summary | |
|---|---|
void |
addTrack(Track track)
|
java.lang.String |
getErrorMessage()
Returns the error message for the service if any |
RoombaNetworkClient |
getRNC()
Gets the Roomba Network Client |
int |
getStatus()
Returns the status code for the service |
void |
messageReceived(java.lang.String messageType,
java.lang.String[] messageComponents)
Processes a message received. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorFinderService(java.lang.String serviceName,
java.lang.String rnsHost,
int rnsPort,
Camera camera)
serviceName - Name of the ColorFinderServicernsHost - The hostname (or IP address) of the RNSrnsPort - The port of the RNS (default is 7777)camera - The camera to use| Method Detail |
|---|
public RoombaNetworkClient getRNC()
public int getStatus()
getStatus in interface ServiceStatusProviderpublic java.lang.String getErrorMessage()
getErrorMessage in interface ServiceStatusProvider
public void messageReceived(java.lang.String messageType,
java.lang.String[] messageComponents)
messageReceived in interface ClientListenermessageType - The message typemessageComponents - The components of the received messagepublic void addTrack(Track track)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||