> Message: 5
> Date: Fri, 9 Nov 2012 06:03:58 -0800 (PST)
> From: Raf Berkvens <raf.berkvens@...>
> Subject: Re: [Playerstage-users] re set robot position in stage gui
> and position proxy reading mismatch
> To: playerstage-users@...
> Message-ID: <34660675.post@...>
> Content-Type: text/plain; charset=us-ascii
> Hi Karan
> You might need another robot.Read(); before you print the values after the
> Also, you might want to reset the odometry after a simulation reset. The
> Position2dProxy odometry will not be reset when the robot is put in a new
> location, as is done when the simulation location is reset. Compare this
> with moving the robot by hand to a new location - the position proxy will
> not know of this change and thus believe it is still at the last position.
> Kind regards
> Raf Berkvens
thank you for the tip i do reset the odometry now. however i am
experiencing some problems with the sonar proxy readings. the very
first simulation starts with all sonar proxy reading a value of -1.
however if i do a robot.Read() before starting the simulation it then
reads correctly for all the simulations.