Hello,
Are you trying to use the Position3D interface to set the global
location of each robot? If this is the case, then you should set the
starting location of each robot via the world file.
-nate
On 4/1/07, Antidio <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am trying to simulate different robots with Gazebo. I am using the
> ClientProxy Position3D for each of the robots. My problem is that the
> position initialization (SetOdometry) with Position3D does not work well. I
> simulate the same code with Stage and Position2D and it works fine (the
> robot initialize their odometry with the values that I indicate).
>
> Part of the code is:
>
> robot = new
> PlayerClient("localhost",PLAYER_PORTNUM+params.robot_params.robot_id-1);
> robot->SetDataMode(PLAYER_DATAMODE_PULL);
> robot->SetReplaceRule(false, -1, PLAYER_MSGTYPE_DATA, 1);
>
> #ifdef STAGE
> pp = new Position2dProxy(robot,0);
> #endif
> #ifdef GAZEBO
> pp = new Position3dProxy(robot,0);
> #endif
>
> pp->ResetOdometry();
> params1=params;
> #ifdef STAGE
> pp->SetOdometry(params.longitude, params.latitude,
> params.orientation);
> #endif
> #ifdef GAZEBO
> pp->SetOdometry(params.longitude, params.latitude, 0.234, 0.0, 0.0,
> params.orientation);
> #endif
>
> However, in both cases I can read the current position of the robots
> without any problem and when the robots move I read the correct values. But
> as I said before with Position3D and Gazebo all the robots start their
> position at the point (0,0,0) instead at the values I would like to.
>
> Any ideas?, do I miss something?
>
> Thanks in advance, Antidio.
> --
> View this message in context:
> http://www.nabble.com/SetOdometry-does-not-seem--to-work-in-Gazebo-tf3503187.html#a9783831
> Sent from the playerstage-gazebo mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> 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
>
-------------------------------------------------------------------------
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