Re: Issue with playerc_position2d_set_cmd_pose_with_vel

Rich Mattes <[email protected]> Wed, 12 Feb 2014 21:52:55 -0500
Newsgroups gmane.science.robotics.playerstage
Message-ID <[email protected]>
On 02/12/2014 10:39 AM, zipcode wrote:
> So the problems is that I'm trying to use this function in mi amigoboot.
> I understand that with this function,*
> playerc_position2d_set_cmd_pose_with_vel(pos,vel,state)* you can move to a
> given point x and y with an given speed. But I'm not able to do it the right
> way.
> What I do is:
>
> player_pose2d_t position,velocity;
> position.px=5;
> position.py=2;
> position.pa=DTOR(90);
> velocity.px=2;
> velocity.py=1;
> playerc_position2d_set_cmd_pose_with_vel(position2d,position,velocity,1);
>
> After this the amigobot goes to the given x and y but the it doesn't
> increase the speed.
> It's goes at the same speed as this function
> playerc_position2d_set_cmd_pose(5,2,DTOR(90),1);
>
> What I'm doing wrong
>
>
>
>

It looks like the maximum forward velocity defaults to 0.5 m/sec unless 
you override it in the config file[1].  Have you done that?

Rich

[1] 
http://playerstage.sourceforge.net/doc/Player-svn/player/group__driver__p2os.html

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk