Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how did you tune your PID controller? #10

Open
alexisdal opened this issue Aug 24, 2018 · 0 comments
Open

how did you tune your PID controller? #10

alexisdal opened this issue Aug 24, 2018 · 0 comments

Comments

@alexisdal
Copy link

thanks for your excellent book.

in
chefbot_bringup/scripts/pid_velocity.py

        self.Kp = rospy.get_param('~Kp',10)
        self.Ki = rospy.get_param('~Ki',10)
        self.Kd = rospy.get_param('~Kd',0.001)

however, in the book and the launch file
chefbot_bringup/launch/robot_standalone.launch

      <rosparam param="Kp">400</rosparam>
      <rosparam param="Ki">100</rosparam>
      <rosparam param="Kd">0</rosparam>

There is a significant difference between the defaults values in the python pid code and what you finally used. I am also guessing that the parameter ticks_meter (which depends on hardware encoder resolution * gear reduction) might influence the final Kp/Ki/Kd.
You must have somehow tuned your PID controller. But -- unless i missed it -- it says nothing about the procedure you used to tune it. I'm complete noob about PID.
Wikipedia does mention a manual procedure, but i could not implement it successfully with my own hard (in particular my ticks_meters value (that i did calibrate following its specific section in the book), is much lower.

Bottom line : how did you tune the Ki/Kp/Kd values of your pid controller?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant