-
Notifications
You must be signed in to change notification settings - Fork 0
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
[lane_select]getClosestWaypointNumberの算出方法改良 #10
Comments
上記解決できてなさそうなので調査中 |
下記コールバックがほぼ毎回呼ばれており、 autoware_ai_planning/lane_planner/nodes/lane_select/lane_select_core.cpp Lines 620 to 637 in f4633fb
|
実装を見る限り「レーンが変化したらprevious_numberを-1にして初期化」したそう。 |
bugfix/nearest_pointにて作業。 |
経路がジャンプしてしまう件についてお力添えいただきありがとうございます。 修正していただいた以下の件ですが、waypointの順番通りに進むという観点では autoware_ai_planning/lane_planner/nodes/lane_select/lane_select_core.cpp Lines 818 to 831 in 88d74b6
|
トピック名の変更と計算方法の変更で問題が2個あるので、先に対処したいトピック目の変更を別issueで立てます |
概要
ドキュメントがないため一部推測。
該当箇所は下記
autoware_ai_planning/lane_planner/nodes/lane_select/lane_select_core.cpp
Line 728 in f4633fb
下記で「すでに通った場所」は最近接点の候補から除外している。
autoware_ai_planning/lane_planner/nodes/lane_select/lane_select_core.cpp
Line 746 in f4633fb
下記で一定より先のwaypointを候補から除外するような処理をしている。
ここで
現在速度*3
をintにキャストして区間としている理由は不明。autoware_ai_planning/lane_planner/nodes/lane_select/lane_select_core.cpp
Lines 747 to 752 in f4633fb
以上により前回のwaypoint(previous_number)から数え始め、一定区間内のwaypointを参照して一番近い点を求めている。
区間を絞っているのはおそらく経路が重なる点などでショートカットしないようにするため。
しかし区間サイズの決定方法が不明で、区間サイズが長いとショートカットする挙動になる。
目的
経路のジャンプを防ぐため。
提案内容
以下のような方法で各waypointと現在位置の距離を比較し、直近で「接近→離脱」に切り替わる部分をclosest_waypointとすれば例外なく線形に経路追跡できます。区間は今のままでも可。変えるなら合計距離が一定になるように確保するのが無難だと思います。
autoware_ai_planning/lane_planner/nodes/lane_select/lane_select_core.cpp
Lines 786 to 787 in f4633fb
↓変更後
タスク
The text was updated successfully, but these errors were encountered: