I suppose you are using the GarminGPS model. You can try to add the attribute 
updateFreq to your world file to get a higher rate:

<updateFreq>20</updateFreq>

The default frequence used is 1Hz. In the GarminGPS documentation only the 
default attributes of every model are documented. Besides these you can 
specify size, mass, color and updateFreq (line 149-164 in GarminGPS.cc)

Armin

GarminGPS documentation
http://playerstage.sourceforge.net/doc/Gazebo-manual-0.7.0-html/group__GarminGPS.html

GarminGPS.cc
http://playerstage.cvs.sourceforge.net/playerstage/code/gazebo/server/models/GarminGPS/GarminGPS.cc?revision=1.23&view=markup


Dave Wooden wrote:
> Question:
> How can I get Gazebo to report gps at a higher rate?
>
> My setup:
> Gazebo simulates a car.  Player gets the GPS position.  Through the
> java client, I can read the GPS position.  But I am unable to read
> GPS position in java faster than 1 frame per second.  That is, I get
> it as fast as I want, but the data only changes once a second.
>
> So, how can I get it to update faster?  I don't see in the
> documentation where I can tweak an appropriate variable (except the
> global attribute stepTime which I've left as default).  I'm not even
> sure if this is due to player or gazebo.
>
> Thanks a bunch.    I'm hoping this is something almost trivial.
>   gazebo 0.7.0
>   player 2.0.2
>   javaclient 2
>   mac os x.4
>
> -dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to