playerc_simulation_get_pose2d

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

playerc_simulation_get_pose2d

rbpRenato
Hello,

I'm trying to get position objects in world but it retur a error:

playerc_simulation_get_pose2d(sim, "box", &x, &y, &a);
printf("position2d: %.3f %.3f %.3f\n", x, y, a);

playerc error   : timed out waiting for server reply to request simulation:0:request:1
position: 0.000 0.000 0.000

but i can move the same box to other position with
playerc_simulation_set_pose2d(sim, "box", 10, 10, 0);

Anyone knows what is the problem?
Thanks