« Return to Thread: Problem with setting robot's position

Re: Problem with setting robot's position

by Simone Gaiera :: Rate this Message:

| View in Thread

sorry for the three post but there was error 500 so i try to post three time...


the problem is even worse...
now with - degree the robot starts in 0 and decrease always the value -0.01 -0.04 -0.06 so with degree -10 we have -degree from the robot so ideally I think is correct.
whith degree it do the same but whe have +0.01 +0.04 +0.07...

the problem is that when start is 0 when it turn 90 degree the value is about 0.8 but in stage the value is dtor(-90) that is -1.57

when the robot return in the initial its value is 1.2 and not dtor(90) and when he turned in 90 degree again its value is 1.8 and so on...
I'm sayng only that is too different from stage...

Rich Mattes-2 wrote:
> -----Original Message-----
> From: Simone Gaiera [mailto:simogaie88@gmail.com]
> Sent: Thursday, July 28, 2011 4:10 AM
> To: playerstage-users@lists.sourceforge.net
> Subject: Re: [Playerstage-users] Problem with setting robot's position
>
>
> Hi Rich I have a neew huge problem...
> Now i was testing the theta...in Stage theta is 0 (if the robot looks
> at the
> right) and 3.14 is the rotation is -degree and -3.14 if the rotation is
> degree...
> In the real robot using that code
>
> while(TRUE){
> roomba500.Read();
> t=pp.GetYaw();
> speed=0.050;
> turnrate=dtor(-degree);
> pp.SetSpeed(speed,turnrate);
> printf("t:%f \n",t);
>
> }
>
> with - degree the robot starts in 0 and decrease always the value up to
> minus infinity
> whith degree it do the same but increase the value.
>
> there is a way to fix or I had to rewrite my code using that data?
> thanks I really appreciate your help...
>

Are you trying to say that the roomba is reporting a positive turn
displacement when you command a negative turn rate?


------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users

 « Return to Thread: Problem with setting robot's position