You need to call isDataReady() on the device before actually attempting to
get any data out of it.

With regards to the error message that you get, it seems that you've
discovered a Javaclient bug. Are you using the latest SVN version? If not,
could you please try with that, and report back either here or on the
java-player-{users,[EMAIL PROTECTED] mailing lists ?

I will look through the code right now to see if there's something I might
have missed.

Update: I just checked the latest Javaclient2 SVN and Stage CVS and it works
fine, so it *might* be a Gazebo problem. 

Best,
Radu. 

On Mon, Jul 17, 2006 at 03:34:04PM -0400, Bethany R.Leffler wrote:
> Thank you very much. I see in the documentation where I am supposed to
> be able to do this.  However, it doesn't seem to be working.  
> 
> I'm using a Java client calling simulation.get2DPose("car1") and
> getting a warning in player that says:
> 
> "warning : decoding failed on message to 31:0 with type 2"
> 
> then when I call simulation.getData() or sim.isPose2DReady() it returns
> null.
> 
> What am I doing wrong?
> 
> Bethany
> 
> On Mon, 17 Jul 2006 10:36:09 -0700
>  Richard vaughan <[EMAIL PROTECTED]> wrote:
> > 
> > On 17-Jul-06, at 9:21 AM, Bethany R.Leffler wrote:
> > 
> > > If that's the case, is there any way to access the position of an
> > > object in gazebo?  Position2D and Position3D just return 0,0 as the
> > > position no matter where the object is.
> > 
> > 
> > Look at the "simulation" interface in the documentation. It lets you
> >  
> > find and set the true pose of objects. Usually it's used just for  
> > ground-truth, as it's not generally possible to do for real robots.
> > 
> > Richard/
> > 
> > 
> > > Bethany
> > >
> > > On Sat, 15 Jul 2006 08:22:20 -0700
> > >  "Nate Koenig" <[EMAIL PROTECTED]> wrote:
> > >> The first problem is that you can't specify two plugins for a
> > single
> > >> driver. The second problem is that Gazebo does not yet include a
> > GPS
> > >> Interface. You can add a GPS interface by getting Gazebo CVS, and
> > >> adding a new interface in the player subdirectory.
> > >>
> > >> -nate
> > >>
> > >> On 7/14/06, Bethany R.Leffler <[EMAIL PROTECTED]> wrote:
> > >>> I am trying to get data from a GarminGPS device on a CarChassis
> > >> that is
> > >>> running in Gazebo using player.
> > >>>
> > >>> My config file for player is:
> > >>> driver(
> > >>>    name "gazebo"
> > >>>    provides ["simulation:0"]
> > >>>    plugin "libgazeboplugin"
> > >>>    server_id "default"
> > >>> )
> > >>> driver(
> > >>>   name "gazebo"
> > >>>   plugin "libgarmingps"
> > >>>   provides ["gps:0"]
> > >>>   plugin "libgazeboplugin"
> > >>>   gz_id "car1_gps"
> > >>> )
> > >>>
> > >>> When I run player with this file I get the following error:
> > >>> Gazebo driver creating 1 device
> > >>> 6665.13.0 is error:  Gazebo driver doesn't support interface type
> > >> 13
> > >>> error: Initialization faled for driver "gazebo"
> > >>> error: failed to parse config file player.cfg
> > >>>
> > >>> Can anyone help me?
> > >>>
> > >>> Bethany Leffler

-- 
| Radu Bogdan Rusu | http://rbrusu.com
| http://www9.cs.tum.edu/people/rusu/
| Intelligent Autonomous Systems
| Technische Universitaet Muenchen

-------------------------------------------------------------------------
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