BowlerKernel
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice Class Reference
Inheritance diagram for com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice:
Collaboration graph
[legend]

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< ItemMarkergetBlobs ()
 
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< ByteListgetRevisions ()
 
ArrayList< String > getNamespaces ()
 
boolean hasNamespace (String string)
 
void startHeartBeat ()
 
void startHeartBeat (long msHeartBeatTime)
 
void stopHeartBeat ()
 
void setThreadedUpstreamPackets (boolean up)
 
ArrayList< RpcEncapsulationgetRpcList (String namespace)
 
void loadRpcList ()
 
boolean isKeepAlive ()
 
void setKeepAlive (boolean keepAlive)
 
long getLastPacketTime ()
 
void setLastPacketTime (long lastPacketTime)
 
String getScriptingName ()
 
void setScriptingName (String scriptingName)
 
ArrayList< IDeviceConnectionEventListenergetDisconnectListeners ()
 

Private Member Functions

void fireIWebcamImageListenerEvent (int camera, BufferedImage im)
 

Private Attributes

ByteList tmp = new ByteList()
 
ArrayList< IWebcamImageListenerimageListeners = new ArrayList<IWebcamImageListener>()
 
ArrayList< highSpeedAutoCapturecaptures = new ArrayList<highSpeedAutoCapture> ()
 
ArrayList< BufferedImage > images = new ArrayList<BufferedImage>()
 
ArrayList< String > urls = new ArrayList<String> ()
 
ArrayList< ItemMarkermark = new ArrayList<ItemMarker> ()
 
boolean gotLastMark = false
 

Additional Inherited Members

- Protected Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractDevice
void fireDisconnectEvent ()
 
void fireConnectEvent ()
 

Detailed Description

The Class BowlerCamDevice.

Definition at line 28 of file BowlerCamDevice.java.

Member Function Documentation

◆ addWebcamImageListener()

void com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.addWebcamImageListener ( IWebcamImageListener  l)

Adds the webcam image listener.

Parameters
lthe l

Definition at line 58 of file BowlerCamDevice.java.

References com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.imageListeners.

◆ ByteArrayToImage()

BufferedImage com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.ByteArrayToImage ( byte[]  array) throws IOException

Byte array to image.

Parameters
arraythe array
Returns
the buffered image
Exceptions
IOExceptionSignals that an I/O exception has occurred.

Definition at line 424 of file BowlerCamDevice.java.

Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.onAsyncResponse().

◆ fireIWebcamImageListenerEvent()

void com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.fireIWebcamImageListenerEvent ( int  camera,
BufferedImage  im 
)
private

◆ getBlobs()

ArrayList<ItemMarker> com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getBlobs ( )

◆ getHighSpeedImage()

BufferedImage com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getHighSpeedImage ( int  cam) throws MalformedURLException, IOException

◆ getImage()

BufferedImage com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getImage ( int  chan)

Gets the image.

Parameters
chanthe chan
Returns
the image

Definition at line 246 of file BowlerCamDevice.java.

References com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.images.

◆ getImageServerURL()

String com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.getImageServerURL ( int  chan)

◆ onAllResponse()

void com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.onAllResponse ( BowlerDatagram  data)

On all response.

Parameters
datathe data

Reimplemented from com.neuronrobotics.sdk.common.BowlerAbstractDevice.

Definition at line 78 of file BowlerCamDevice.java.

◆ onAsyncResponse()

void com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.onAsyncResponse ( BowlerDatagram  data)

◆ resize()

BufferedImage com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.resize ( BufferedImage  image,
double  scale 
)

Resize.

Parameters
imagethe image
scalethe scale
Returns
the buffered image

Definition at line 403 of file BowlerCamDevice.java.

Referenced by com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.highSpeedAutoCapture.run().

◆ startHighSpeedAutoCapture()

void com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.startHighSpeedAutoCapture ( int  cam,
double  scale,
int  fps 
)

Start high speed auto capture.

Parameters
camthe cam
scalethe scale
fpsthe 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().

Here is the call graph for this function:

◆ stopAutoCapture()

void com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.stopAutoCapture ( int  cam)

◆ updateFilter()

boolean com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.updateFilter ( Color  c,
int  threshhold,
boolean  within,
int  minBlobSize,
int  maxBlobSize 
)

Update filter.

Parameters
cthe c
threshholdthe threshhold
withinthe within
minBlobSizethe min blob size
maxBlobSizethe max blob size
Returns
true, if successful

Definition at line 287 of file BowlerCamDevice.java.

References com.neuronrobotics.sdk.common.BowlerAbstractDevice.send().

Here is the call graph for this function:

◆ updateImage()

boolean com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.updateImage ( int  chan,
double  scale 
)

Update image.

Parameters
chanthe chan
scalethe scale
Returns
true, if successful

Definition at line 218 of file BowlerCamDevice.java.

References com.neuronrobotics.sdk.common.BowlerAbstractDevice.send().

Here is the call graph for this function:

Member Data Documentation

◆ captures

ArrayList<highSpeedAutoCapture> com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.captures = new ArrayList<highSpeedAutoCapture> ()
private

◆ gotLastMark

boolean com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.gotLastMark = false
private

◆ imageListeners

ArrayList<IWebcamImageListener> com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.imageListeners = new ArrayList<IWebcamImageListener>()
private

◆ images

ArrayList<BufferedImage> com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.images = new ArrayList<BufferedImage>()
private

◆ mark

ArrayList<ItemMarker> com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.mark = new ArrayList<ItemMarker> ()
private

◆ tmp

ByteList com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.tmp = new ByteList()
private

◆ urls

ArrayList<String> com.neuronrobotics.sdk.bowlercam.device.BowlerCamDevice.urls = new ArrayList<String> ()
private

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