PTZ issues with Protocol Integration in Java

Hi,

we have a Java server that use Protocol Integration to communicate with a Milestone Corporate installation.

Our customer ask us to customize the zoom/pan/tilt step, in order to make smaller PTZ movement. We are using RecorderCommandService.ptzMoveRelative to do so; the method takes as parameters Double values, so we tried to pass values like 0.1 for zoom/tilt/pan, but apparently PTZ cameras moves as if we passed 1 values, instead of the smaller one 0.1 value. Is that a problem of customer’s cameras or is an API issues? There is any way to do PTZ steps smaller that 1?

Also, some cameras act in a strange way: when we use RecorderCommandService.ptzMoveRelative to zoom in and then zoom out, often the camera doesn’t come back to the exact same position it had before the PTZ commands. The same seems to happen on the Smart Client. Is that a problem of customer’s cameras or is an API issues?

Thanks for your help.

I wonder if there could be a “culture” issue: Could you try using , and . and see if they are the same. (comma and dot)

I think relative PTZ moves in cameras can often result in not arriving exactly where you expected, and I think the camera will be responsible. It could be that the move is based on timing and zoom in goes faster than zoom out or similar.

Thank you for your reply.

Even if in Italy we use comma as decimal separator, we always use the dot as decimal separator while programming, because it is the Java Standard.

So you think it must be a camera issue. Can this kind of issue be resolved in other way, for example using another API instead of RecorderCommandService.ptzMoveRelative?

I am thinking you should be able to give parameters like 0.1 on the second issue with zooming in and out and not arriving the same place I think it is most likely the way the camera works.

For some cameras (not all) there would be absolute positioning PTZ that might work differently.

I am a bit hesitant to tell you as a Java developer, but maybe you could see if the PTZandPreset (C#) sample works, it might tell you something about the capabilities and later you can use the same protocol methods as the sample does (sample uses c# classes but you will still see that the communiction with the servers are the same protocols).

Since the strange zooming behaviour also happens with Milestone Smart Client, do you know if there are some known issues with PTZ commands on camera that works with Axis M7011 encoder?