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);
}
Aggregations