Re: "playerc_client_read()" not returning right positions (Rich Mattes)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: "playerc_client_read()" not returning right positions (Rich Mattes)

Kefei Zeng

>> Hi Everyone,
>>
>>
>> I'm trying to put together a simple program for Player and Stage.
>> Attached are the relevant files, include the C file itself that should
>> perform its task (display the robot's x-position). The problem is that
>> after I run the .cfg file and the position_tracker executable (there
>> were no problems linking or compiling the C file), the printf()
>> statement only prints out 0 as the x-position even if I drag the robot
> around with my mouse. Is something wrong with my C code such as
> playerc_client_read not being used properly? Thanks in advance.

>>

>>

>>------------------------------------------------------------------------------

>>

>>

>>

>>_______________________________________________

>>Playerstage-users mailing list

>>[hidden email]

>>https://lists.sourceforge.net/lists/listinfo/playerstage-users

>>
>Hi,
>
>Make sure that your robot's position model's localization type is set to
>"gps"[1].  The default is "odom", which only updates when the robot has
>a velocity.
>
>Rich
>
>[1] http://rtv.github.io/Stage/group__model__position.html


I just checked my robot's localization type. It was already set to "gps" to begin with.


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Playerstage-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/playerstage-users