sk.robotics.robot classes

function robot_pos

^ 
Retrieve (and possibly reset) the current odometry position of the robot.

If the robot is connected to remote robot, this function returns the locally accumulated odometry. If other remotely connected objects are moving the robot meanwhile, those movements are not taken into account. Use robot_globalpos to determine the position of the remote robot.

Source:
robotdll/robotdll.h:1051
Author:
Version:
latest version
Params:
id robot object handle
reset use 0 to retrieve the position, and use 1 to retrieve the position and reset it to [0,0], 0
Returns:
a character string with three space-separated floating-point numbers: x y heading, heading is in radians
See Also:
robot_fd, robot_fdspeed, robot_fdx, robot_globalpos
Code:
public ROBOTDLL_API char * robot_pos ( short id ,
short reset )

(c) FMFI UK Bratislava, robotika.sk
Dokumentácia vygenerovaná pomocou ccdoc