Ask Your Question
0

Question about turtle_teleop_key

asked 2015-05-31 02:46:29 -0600

TTTaurus gravatar image

updated 2015-05-31 02:47:32 -0600

Hi. Can anyone help me and see this programing. http://code.metager.de/source/xref/ro... My question is What a_scale and l_scale stand for? And in Switch(c). Why value of angular and linear are all 1.0 rather than 2.0. Thank you very much!

edit retag flag offensive close merge delete

Comments

a_scale and l_scale are the magnitude of the velocity. When you increase the values the speed will increase as well. Also "a" stands for angular and "l" stands for linear scales.

MahsaP gravatar imageMahsaP ( 2015-06-03 17:38:14 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-05-31 04:15:23 -0600

updated 2015-05-31 04:15:51 -0600

nh_.param("scale_angular", a_scale_, a_scale_);
nh_.param("scale_linear", l_scale_, l_scale_);

They are used to change how much the robot moves by when the keys are pressed, the base velocity values are multiplied by this before the message is sent.

turtlesim::Velocity vel;
    vel.angular = a_scale_*angular_;
    vel.linear = l_scale_*linear_;
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-05-31 02:46:29 -0600

Seen: 3,513 times

Last updated: May 31 '15