|
BowlerKernel
|


Classes | |
| class | highSpeedAutoCapture |
| class | ImageReader |
Public Member Functions | |
| void | addWebcamImageListener (IWebcamImageListener l) |
| void | onAllResponse (BowlerDatagram data) |
| BufferedImage | getHighSpeedImage (int cam) throws MalformedURLException, IOException |
| void | onAsyncResponse (BowlerDatagram data) |
| boolean | updateImage (int chan, double scale) |
| String | getImageServerURL (int chan) |
| BufferedImage | getImage (int chan) |
| void | startHighSpeedAutoCapture (int cam, double scale, int fps) |
| void | stopAutoCapture (int cam) |
| boolean | updateFilter (Color c, int threshhold, boolean within, int minBlobSize, int maxBlobSize) |
| ArrayList< ItemMarker > | getBlobs () |
| BufferedImage | resize (BufferedImage image, double scale) |
| BufferedImage | ByteArrayToImage (byte[] array) throws IOException |
Public Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractDevice | |
| boolean | isAvailable () throws InvalidConnectionException |
| void | addConnectionEventListener (final IDeviceConnectionEventListener l) |
| void | removeConnectionEventListener (IDeviceConnectionEventListener l) |
| void | setConnection (BowlerAbstractConnection connection) |
| boolean | connect () throws InvalidConnectionException |
| void | disconnect () |
| BowlerAbstractConnection | getConnection () |
| void | setAddress (MACAddress address) |
| MACAddress | getAddress () |
| BowlerDatagram | send (BowlerAbstractCommand command) throws NoConnectionAvailableException, InvalidResponseException |
| BowlerDatagram | send (BowlerAbstractCommand command, int retry) throws NoConnectionAvailableException, InvalidResponseException |
| Object[] | send (String namespace, BowlerMethod method, String rpcString, Object[] arguments, int retry) throws DeviceConnectionException |
| Object[] | send (String namespace, BowlerMethod method, String rpcString, Object[] arguments) throws DeviceConnectionException |
| boolean | ping () |
| boolean | ping (boolean switchParser) |
| ArrayList< ByteList > | getRevisions () |
| ArrayList< String > | getNamespaces () |
| boolean | hasNamespace (String string) |
| void | startHeartBeat () |
| void | startHeartBeat (long msHeartBeatTime) |
| void | stopHeartBeat () |
| void | setThreadedUpstreamPackets (boolean up) |
| ArrayList< RpcEncapsulation > | getRpcList (String namespace) |
| void | loadRpcList () |
| boolean | isKeepAlive () |
| void | setKeepAlive (boolean keepAlive) |
| long | getLastPacketTime () |
| void | setLastPacketTime (long lastPacketTime) |
| String | getScriptingName () |
| void | setScriptingName (String scriptingName) |
| ArrayList< IDeviceConnectionEventListener > | getDisconnectListeners () |
Private Member Functions | |
| void | fireIWebcamImageListenerEvent (int camera, BufferedImage im) |
Private Attributes | |
| ByteList | tmp = new ByteList() |
| ArrayList< IWebcamImageListener > | imageListeners = new ArrayList<IWebcamImageListener>() |
| ArrayList< highSpeedAutoCapture > | captures = new ArrayList<highSpeedAutoCapture> () |
| ArrayList< BufferedImage > | images = new ArrayList<BufferedImage>() |
| ArrayList< String > | urls = new ArrayList<String> () |
| ArrayList< ItemMarker > | mark = new ArrayList<ItemMarker> () |
| boolean | gotLastMark = false |
Additional Inherited Members | |
Protected Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractDevice | |
| void | fireDisconnectEvent () |
| void | fireConnectEvent () |
The Class BowlerCamDevice.
Definition at line 28 of file BowlerCamDevice.java.
| void com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.addWebcamImageListener | ( | IWebcamImageListener | l | ) |
Adds the webcam image listener.
| l | the l |
Definition at line 58 of file BowlerCamDevice.java.
References com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.imageListeners.
| BufferedImage com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.ByteArrayToImage | ( | byte[] | array | ) | throws IOException |
Byte array to image.
| array | the array |
| IOException | Signals that an I/O exception has occurred. |
Definition at line 424 of file BowlerCamDevice.java.
Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.onAsyncResponse().
|
private |
Fire i webcam image listener event.
| camera | the camera |
| im | the im |
Definition at line 69 of file BowlerCamDevice.java.
References com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.imageListeners.
Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.onAsyncResponse(), and com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.highSpeedAutoCapture.run().
| ArrayList<ItemMarker> com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getBlobs | ( | ) |
Gets the blobs.
Definition at line 302 of file BowlerCamDevice.java.
References com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.gotLastMark, com.neuronrobotics.sdk.common.BowlerAbstractDevice.isAvailable(), com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.mark, and com.neuronrobotics.sdk.common.BowlerAbstractDevice.send().

| BufferedImage com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getHighSpeedImage | ( | int | cam | ) | throws MalformedURLException, IOException |
Gets the high speed image.
| cam | the cam |
| MalformedURLException | the malformed url exception |
| IOException | Signals that an I/O exception has occurred. |
Definition at line 91 of file BowlerCamDevice.java.
References com.neuronrobotics.sdk.common.Log.error(), com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getImageServerURL(), com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.images, com.neuronrobotics.sdk.common.Log.info(), com.neuronrobotics.sdk.common.BowlerAbstractDevice.isAvailable(), com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.ImageReader.isDone(), com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.urls, and com.neuronrobotics.sdk.util.ThreadUtil.wait().
Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.highSpeedAutoCapture.run().

| BufferedImage com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getImage | ( | int | chan | ) |
Gets the image.
| chan | the chan |
Definition at line 246 of file BowlerCamDevice.java.
References com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.images.
| String com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getImageServerURL | ( | int | chan | ) |
Gets the image server url.
| chan | the chan |
Definition at line 228 of file BowlerCamDevice.java.
References com.neuronrobotics.sdk.common.ByteList.asString(), com.neuronrobotics.sdk.common.BowlerDatagram.getData(), com.neuronrobotics.sdk.common.BowlerAbstractDevice.isAvailable(), com.neuronrobotics.sdk.common.BowlerAbstractDevice.send(), and com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.urls.
Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getHighSpeedImage().

| void com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.onAllResponse | ( | BowlerDatagram | data | ) |
On all response.
| data | the data |
Reimplemented from com.neuronrobotics.sdk.common.BowlerAbstractDevice.
Definition at line 78 of file BowlerCamDevice.java.
| void com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.onAsyncResponse | ( | BowlerDatagram | data | ) |
On async response.
| data | the data |
Implements com.neuronrobotics.sdk.common.IBowlerDatagramListener.
Definition at line 166 of file BowlerCamDevice.java.
References com.neuronrobotics.sdk.common.ByteList.add(), com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.ByteArrayToImage(), com.neuronrobotics.sdk.common.ByteList.clear(), com.neuronrobotics.sdk.common.ByteList.convertToInt(), com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.fireIWebcamImageListenerEvent(), com.neuronrobotics.sdk.common.ByteList.getBytes(), com.neuronrobotics.sdk.common.BowlerDatagram.getData(), com.neuronrobotics.sdk.common.BowlerDatagram.getRPC(), com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.gotLastMark, com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.images, com.neuronrobotics.sdk.common.Log.info(), com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.mark, com.neuronrobotics.sdk.common.ByteList.popList(), com.neuronrobotics.sdk.common.ByteList.size(), and com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.tmp.

| BufferedImage com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.resize | ( | BufferedImage | image, |
| double | scale | ||
| ) |
Resize.
| image | the image |
| scale | the scale |
Definition at line 403 of file BowlerCamDevice.java.
Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.highSpeedAutoCapture.run().
| void com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.startHighSpeedAutoCapture | ( | int | cam, |
| double | scale, | ||
| int | fps | ||
| ) |
Start high speed auto capture.
| cam | the cam |
| scale | the scale |
| fps | the fps |
Definition at line 257 of file BowlerCamDevice.java.
References com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.captures, com.neuronrobotics.sdk.common.BowlerAbstractDevice.isAvailable(), and com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.stopAutoCapture().

| void com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.stopAutoCapture | ( | int | cam | ) |
Stop auto capture.
| cam | the cam |
Definition at line 270 of file BowlerCamDevice.java.
References com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.captures.
Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.startHighSpeedAutoCapture().
| boolean com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.updateFilter | ( | Color | c, |
| int | threshhold, | ||
| boolean | within, | ||
| int | minBlobSize, | ||
| int | maxBlobSize | ||
| ) |
Update filter.
| c | the c |
| threshhold | the threshhold |
| within | the within |
| minBlobSize | the min blob size |
| maxBlobSize | the max blob size |
Definition at line 287 of file BowlerCamDevice.java.
References com.neuronrobotics.sdk.common.BowlerAbstractDevice.send().

| boolean com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.updateImage | ( | int | chan, |
| double | scale | ||
| ) |
Update image.
| chan | the chan |
| scale | the scale |
Definition at line 218 of file BowlerCamDevice.java.
References com.neuronrobotics.sdk.common.BowlerAbstractDevice.send().

|
private |
The captures.
Definition at line 38 of file BowlerCamDevice.java.
Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.startHighSpeedAutoCapture(), and com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.stopAutoCapture().
|
private |
The got last mark.
Definition at line 50 of file BowlerCamDevice.java.
Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getBlobs(), and com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.onAsyncResponse().
|
private |
The image listeners.
Definition at line 35 of file BowlerCamDevice.java.
Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.addWebcamImageListener(), and com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.fireIWebcamImageListenerEvent().
|
private |
The images.
Definition at line 41 of file BowlerCamDevice.java.
Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getHighSpeedImage(), com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getImage(), com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.onAsyncResponse(), and com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.ImageReader.run().
|
private |
The mark.
Definition at line 47 of file BowlerCamDevice.java.
Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getBlobs(), and com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.onAsyncResponse().
The tmp.
Definition at line 31 of file BowlerCamDevice.java.
Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.onAsyncResponse().
|
private |
The urls.
Definition at line 44 of file BowlerCamDevice.java.
Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getHighSpeedImage(), com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getImageServerURL(), and com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.ImageReader.run().