Re: ptzProxy setSpeed problem

Rich Mattes <[email protected]> Thu, 22 Aug 2013 19:39:08 -0400
Newsgroups gmane.science.robotics.playerstage
Message-ID <[email protected]>
On 08/22/2013 11:37 AM, jem35 wrote:
> Hello !
>
> I'm controlling a ptz Camera with Player using the ptzProxy.
> I want to do a speed controlling. I succeed to control the pan and the tilt
> in speed but i can't do it with the zoom.
> For the moment, I can only control the zoom in Position. 
>
> My code is something like that : 
>
>     ptz->SelectControlMode(PLAYER_PTZ_VELOCITY_CONTROL);
>     ptz->SetSpeed(val1, val2, val3); 
>
> Is there anything that I'm doing wrong ? Is there min-max value ?
>
> Thank you.
>
>
You're probably not doing anything wrong, it depends on the driver
you're using.  Player drivers don't usually implement all of the
functionality exposed by the interfaces.  It might be the case that the
driver simply doesn't handle changing zoom with a velocity control, and
only takes absolute positions.  If the driver isn't documented, you'll
have to look at the code to be sure.

Rich

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk