Search in sources :

Example 1 with ImageURLCommand

use of com.neuronrobotics.sdk.commands.neuronrobotics.bowlercam.ImageURLCommand in project java-bowler by NeuronRobotics.

the class BowlerCamDevice method getImageServerURL.

public String getImageServerURL(int chan) {
    // Log.info("Requesting image server URL");
    while (urls.size() < (chan + 1) && isAvailable()) {
        urls.add(null);
    }
    if (urls.get(chan) != null)
        return urls.get(chan);
    BowlerDatagram b = send(new ImageURLCommand(chan));
    urls.set(chan, b.getData().asString());
    return urls.get(chan);
}
Also used : BowlerDatagram(com.neuronrobotics.sdk.common.BowlerDatagram) ImageURLCommand(com.neuronrobotics.sdk.commands.neuronrobotics.bowlercam.ImageURLCommand)

Aggregations

ImageURLCommand (com.neuronrobotics.sdk.commands.neuronrobotics.bowlercam.ImageURLCommand)1 BowlerDatagram (com.neuronrobotics.sdk.common.BowlerDatagram)1