ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
A formula that give an angle from 0 to 2pi is:
f(x,y)=pi()-pi()/2(1+sign(x)) (1-sign(y^2))-pi()/4(2+sign(x))sign(y)
-sign(x*y)*atan((abs(x)-abs(y))/(abs(x)+abs(y)))
There is x=x2-x1 and y=y2-y1,and the formula is working
for any value of x and y.For x=y=0 the result is undefined.