ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Question about turtle_tf transformlistener

asked 2012-02-01 04:37:30 -0600

Mike Gao gravatar image

Hi, recently I am learning tf package. I have read the tutorials, but have a small questions concerning the source code of transformlistener, which is: "vel_msg.angular = 4 * atan2(transform.getOrigin().y(), transform.getOrigin().x());" in the line 35. Why dose it need to multiply 4 here? For the aim of more quickly tracking? I know the scale value for keyboard control is 2, but it should be irrelevant to this, as this is calculated from the coordination. Appreciation for any help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-02-01 06:39:04 -0600

Lorenz gravatar image

I believe the 4 is just a random scaling factor. A higher value just leads to a quicker rotation but I don't think there is a specific reason for exactly choosing 4.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-02-01 04:37:30 -0600

Seen: 240 times

Last updated: Jun 15 '12