I am using p3dx and would like to have a simple function like rotate(theta), which would rotate the robot by theta degrees in place. I used the GoTo(x,y,yaw) function in Position2dProxy class to do it, where x and y are the current x,y poses of the robot and yaw = currentyaw + theta.

I get the following error when I do it

playerc warning   : warning : Failed to dispatch data message: subtype 1
address: 16777343:6665:position2d:0
terminate called after throwing an instance of 'PlayerCc::PlayerError'

Why this error?

Any similar function already implemented by somebody? Can you please post it?