Ask Your Question
0

what is the rolling_pts parameter in differential_drive?

asked 2015-08-10 06:52:37 -0500

miguel gravatar image

Hi everyone,

What does the rolling points parameter mean in the differential_drive package? Is is robot specific? and how do I obtain it for my robot?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-08-10 08:43:34 -0500

Airuno2L gravatar image

This isn't clear in the code, and took a little reading around, but rolling_pts is used in the pid_velocity.py file to set how many past velocity measurements are used to calculate the average velocity. For example, setting rolling_pts to 2 will make PID controller average the 2 latest velocity measurements to create what it considers the "current velocity".

The name is a little misleading, but now that I know what it does, it is called "rolling" because it is a rolling average. I assume this is done because only using the single latest velocity measurement, instead of an average, could be a bit noisy in some situations, so using the average smooths things out a bit.

p.s. the way I figured this all out was a reference to rolling_pts in this slightly related page.

edit flag offensive delete link more

Comments

Thank you so much! Makes sense now!

miguel gravatar imagemiguel ( 2015-08-10 09:15:08 -0500 )edit

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-08-10 06:52:37 -0500

Seen: 67 times

Last updated: Aug 10 '15