IMHO, you can use SimulationProxy, read the doc page. there is not much there, but i think it's enough.
on your config file, set localization to "gps" and localization_origin [ 0 0 0 ]

I dont know of the latter version of PS but for version 2.1.x, it should be something like this:

sp.SetPose2d( (char *)string(botname).c_str(),x,y, (o-DTOR(90)));

botname is the robot's name you set in config file. x, y, o are your desired robot's position.

I hope this help. I had quite a hard time to figure out this too before.

Cheers,
Abe

2011/6/22 Rômulo Cerqueira <romulo.cerqueira@ufba.br>
I didn't understand yet. How I can "teleport" the robot to a specific position?

2011/5/4 Levent Bayindir <levent.bayindir@gmail.com>
Hello Richard,

Is this the manual you are refering:

http://rtv.github.com/Stage/

To go there, i follow the "stage user/reference manual" link on the
Sourceforge project page.

I could not find any info about simulation interface there?


On Wed, May 4, 2011 at 11:03 PM, Richard Vaughan <vaughan@sfu.ca> wrote:
> That command sets the robot's estimate of its pose in its own
> coordinate system. To teleport the robot somewhere by magic
> (impossible on real robots) use the simulation interface (see the
> manual page).
>
> - rtv
>
> On Wed, May 4, 2011 at 12:47 PM, Levent Bayindir
> <levent.bayindir@gmail.com> wrote:
>> Hello,
>>
>> I need to initialize robot positions randomly at the beginning of the run.
>> I tried following command
>>
>> robot->position->SetPose(Stg::Pose(x, y, 0, robot->position->est_pose.a));
>>
>> but it seems that all robots are initialized at (0,0) instead of (x,y)
>> coordinates i have specified.
>> I checked the documents and the api docs but could not find a
>> solution. How can i do this?
>>
>> Thanks.
>>
>> ------------------------------------------------------------------------------
>> WhatsUp Gold - Download Free Network Management Software
>> The most intuitive, comprehensive, and cost-effective network
>> management toolset available today.  Delivers lowest initial
>> acquisition cost and overall TCO of any competing solution.
>> http://p.sf.net/sfu/whatsupgold-sd
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users



--
Rômulo Guedes Cerqueira

Master Student in Electrical Engineering at UFBA
Bachelor in Computer Science at UESC-BA
GNU/Linux User #451467


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users