[Playerstage-users] Why the GoTo function of position2dProxy doesn't work?

 [Playerstage-users] Why the GoTo function of position2dProxy doesn't work? From: 沉渔涧 - 2011-06-19 01:58:57 Attachments: Message as HTML ```I wrote the code as following, I hope the robot goes to the coordinate (10, 10, 0) with speed 3m/s, in fact the velocity passed into GoTo function doesn't work, the velocity is always (0.4, 0, 0) : player_pose2d_t velocity; velocity.px = 3; velocity.py = 0; velocity.pa = 0; player_pose2d_t destination; destination.px = 10; destination.py = 10; destination.pa = 0; myp2dProxy.GoTo(velocity, destination); ```

 [Playerstage-users] Why the GoTo function of position2dProxy doesn't work? From: 沉渔涧 - 2011-06-19 01:58:57 Attachments: Message as HTML ```I wrote the code as following, I hope the robot goes to the coordinate (10, 10, 0) with speed 3m/s, in fact the velocity passed into GoTo function doesn't work, the velocity is always (0.4, 0, 0) : player_pose2d_t velocity; velocity.px = 3; velocity.py = 0; velocity.pa = 0; player_pose2d_t destination; destination.px = 10; destination.py = 10; destination.pa = 0; myp2dProxy.GoTo(velocity, destination); ```
 Re: [Playerstage-users] Why the GoTo function of position2dProxy doesn't work? From: Rich Mattes - 2011-06-20 02:55:31 Attachments: Message as HTML ```On 06/18/2011 09:58 PM, ??? wrote: > I wrote the code as following, I hope the robot goes to the coordinate > (10, 10, 0) with speed 3m/s, in fact the velocity passed into GoTo > function doesn't work, the velocity is always (0.4, 0, 0) : > > player_pose2d_t velocity; > velocity.px = 3; > velocity.py = 0; > velocity.pa ; = 0; > > player_pose2d_t destination; > destination.px = 10; > destination.py = 10; > destination.pa ; = 0; > > myp2dProxy.GoTo(velocity, destination); > Without knowing which drivers you're using, this question is impossible to answer. The driver may be ignoring the speed in the position command, or the driver may have a maximum speed set somewhere else. Rich ```
 Re: [Playerstage-users] Why the GoTo function of position2dProxy doesn't work? From: Hunter Allen - 2011-06-20 14:56:35 ```Well, the answer that's evident to me is the order of your parameters. The GoTo() function takes the destination followed by the velocity. Here is the class: http://playerstage.sourceforge.net/doc/Player-2.0.0/player/classPlayerCc_1_1Position2dProxy.html Hope I could be of help! -Hunter A. -- View this message in context: http://old.nabble.com/Why-the-GoTo-function-of-position2dProxy-doesn%27t-work--tp31877754p31886426.html Sent from the playerstage-users mailing list archive at Nabble.com. ```