Re: yaw speed and forwad speed
Fred Labrosse <[email protected]> Tue, 4 Jun 2013 12:26:30 +0100
| Newsgroups | gmane.science.robotics.playerstage |
|---|---|
| Organization | Aberystwyth University |
| Message-ID | <3153999.7thcrGoK4Y@pc2ffl> |
On Tuesday 04 June 2013 04:15:50 light86 wrote: > hi i'm trying to change the direction of the robot while the robot is moving > this is my code > p2dProxy.SetSpeed(0.8,dtor(30)); > sleep(2); > > in the execution the direction is not 30 degrees > Please what is the solution > Thank you The function SetSpeed(), as its name indicates, sets the speed, not an absolute position or orientation. With the line above, you tell your robot to turn at a rate of 30 degrees per second and move at 0.8 metre per second. So if the robot can do these speeds, after 2 seconds it will have moved by 1.6 metres (note, along its curved path) and turned by 60 degrees. These are very high speeds and the robot is unlikely to be able to do that. Also, it takes a while for the robot to get to the desired speed and to stop (assuming that after 2 seconds you tell it to stop). Hope this helps. Fred > > > > -- > View this message in context: > http://player-stage-gazebo.10965.n7.nabble.com/yaw-speed-and-forwad-speed-t > p18856.html Sent from the playerstage-developers mailing list archive at > Nabble.com. > > ---------------------------------------------------------------------------- > -- How ServiceNow helps IT people transform IT departments: > 1. A cloud service to automate IT design, transition and operations > 2. Dashboards that offer high-level views of enterprise services > 3. A single system of record for all IT processes > http://p.sf.net/sfu/servicenow-d2d-j > _______________________________________________ > Playerstage-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/playerstage-developers ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j