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

curvature calulation equation difference with paper #4

Open
hoppss opened this issue Aug 20, 2020 · 4 comments
Open

curvature calulation equation difference with paper #4

hoppss opened this issue Aug 20, 2020 · 4 comments

Comments

@hoppss
Copy link

hoppss commented Aug 20, 2020

auto_dock.cpp
while (!controller_.backup(0.0, -dock_yaw)

controller.cpp
double k = -1.0 / r * (k2_ * (delta - a) + (1 + (k1_ / 1 + ((k1_ * theta) * (k1_ * theta)))) * sin(delta));

hi,
I find the curvature calculation function is different with paper, is it a error ?
Another error, preorient a yaw in base_link, it should be dock_yaw , rather than -dock_yaw.
`

@mikeferguson
Copy link

mikeferguson commented Jan 4, 2021

I haven't looked at the yaw aspect, but I can confirm - there are missing parenthesis in the computation of the curvature (adding them almost certainly requires a retuning - but probably fixes some issues).

@erelson
Copy link
Collaborator

erelson commented Jan 5, 2021

Thanks for the ticket! I verified that at least the controller.cpp equation is something that we've fixed in internally (that codebase has diverged quite a bit from the open source version and the original paper).

Not sure about the auto dock portion. Offhand, I'd probably use RViz to visualize the dock pose arrow while a research robot goes to dock. I'll keep that in the back of my mind to eventually verify. Feel free to let us know if you have more direct evidence handy!

Empirically, docking currently works fine as is, as far as I know. My intention is to try and get a PR open with the controller.cpp fix, referencing this issue, but no eta on merging. As noted above, retuning and testing would presumably need to be done, but is not a priority. Someday it would get tested and merged...

@CumaOzavci
Copy link

@hoppss, @mikeferguson, @erelson can you share the paper you are talking about?

@mikeferguson
Copy link

mikeferguson commented Feb 8, 2021

There is a comment in controller.h: Implements something loosely based on "A Smooth Control Law for Graceful Motion of Differential Wheeled Mobile Robots in 2D Environments" by Park and Kuipers, ICRA 2011". You can find a copy here.

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

4 participants