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

[global_planner/orientation_filter] Add a mode deciding Forward/Backward automatically #1136

Open
ssr-yuki opened this issue Jul 6, 2021 · 0 comments

Comments

@ssr-yuki
Copy link

ssr-yuki commented Jul 6, 2021

Hi. I would like to propose a new orientation mode of global_planner.

Generally, we cannot determine whether Forward mode or Backward mode is optimal until we know a planned path, and the selected mode sometimes yields wasted rotational motion as a result.

To tackle this problem, I have implemented AUTOMATIC mode that selects optimal one (Forward or Backward) with simple algorithms: this mode just selects a mode minimizing (\alpha + \beta), the total rotation angle to align. \alpha and \beta are rotation angles at the initial position and the goal position, respectively (see the following figure).

Can I send a PR of this? Any comments are welcome. You can see the implemented codes here. Thank you.

global_planner_pr

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