Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## Re: [Playerstage-users] Turn in degrees

 Re: [Playerstage-users] Turn in degrees From: Brian Gerkey - 2004-07-14 20:05:21 ```On Wed, 14 Jul 2004, Víctor Mendoza M wrote: > I'm new doing c++ algorithms in player and stage, i want to turn 90, 180, > 270 degrees with a position robot, but i can't, i'm using pp.SetSpeed(speed, > turnrate) but the robot don't do de exactly 90 degrees, i see that the robot > only do less than 45 degrees! > > How can i made a 90 180 270 turns in degrees? hi Victor, The simulated mobile robot base in Stage doesn't support position control, so you'll have to write your own control loop, using velocity control. The basic idea is: while (abs(desired heading - current heading) > epsilon): read from server error = desired heading - current heading send corrective velocity as a function of error brian. -- Brian P. Gerkey gerkey@... Stanford AI Lab http://ai.stanford.edu/~gerkey ```

 [Playerstage-users] Turn in degrees From: - 2004-07-14 19:49:04 ```Hello! I'm new doing c++ algorithms in player and stage, i want to turn 90, 180, 270 degrees with a position robot, but i can't, i'm using pp.SetSpeed(speed, turnrate) but the robot don't do de exactly 90 degrees, i see that the robot only do less than 45 degrees! How can i made a 90 180 270 turns in degrees? _________________________________________________________________ MSN. Más Útil Cada Día http://www.msn.es/intmap/ ```
 Re: [Playerstage-users] Turn in degrees From: Brian Gerkey - 2004-07-14 20:05:21 ```On Wed, 14 Jul 2004, Víctor Mendoza M wrote: > I'm new doing c++ algorithms in player and stage, i want to turn 90, 180, > 270 degrees with a position robot, but i can't, i'm using pp.SetSpeed(speed, > turnrate) but the robot don't do de exactly 90 degrees, i see that the robot > only do less than 45 degrees! > > How can i made a 90 180 270 turns in degrees? hi Victor, The simulated mobile robot base in Stage doesn't support position control, so you'll have to write your own control loop, using velocity control. The basic idea is: while (abs(desired heading - current heading) > epsilon): read from server error = desired heading - current heading send corrective velocity as a function of error brian. -- Brian P. Gerkey gerkey@... Stanford AI Lab http://ai.stanford.edu/~gerkey ```