-
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
feat: consider another way of inserting safe velocity #17
feat: consider another way of inserting safe velocity #17
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy
found issue(s) with the introduced code (1/1)
@@ -42,8 +42,7 @@ int insertSafeVelocityToPath( | |||
SafeMotion calculateSafeMotion(const Velocity & v, const double ttc); | |||
|
|||
double calculateInsertVelocity( | |||
const double min_allowed_vel, const double safe_vel, const double min_vel, | |||
const double original_vel); | |||
const double min_allowed_vel, const double safe_vel, const double original_vel); | |||
|
|||
} // namespace occlusion_spot_utils |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nested namespaces can be concatenated
} // namespace occlusion_spot_utils | |
} |
@@ -321,11 +321,22 @@ | |||
*/ | |||
PossibleCollisionInfo pc; | |||
const double ttc = std::abs(arc_coord_occlusion_with_offset.distance / param.pedestrian_vel); | |||
SafeMotion sm = calculateSafeMotion(param.v, ttc); | |||
double distance_to_stop = arc_coord_occlusion_with_offset.length - sm.stop_dist; | |||
SafeMotion sm; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uninitialized record type: sm
SafeMotion sm; | |
SafeMotion sm{}; |
// lower bound min = 0 | ||
ASSERT_EQ(calculateInsertVelocity(inf, inf, 0, inf), inf); | ||
} | ||
|
||
TEST(insertSafeVelocityToPath, replace_original_at_too_close_case) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class insertSafeVelocityToPath_replace_original_at_too_close_case_Test
defines a copy constructor and a copy assignment operator but does not define a destructor, a move constructor or a move assignment operator
Signed-off-by: tanaka3 <ttatcoder@outlook.jp>
Signed-off-by: tanaka3 <ttatcoder@outlook.jp>
eaaa37d
to
a7fc273
Compare
Description
もともと速度計画に影響のない場所への停止点埋め込みはしないように検知エリアで限定していたが、この速度計画に影響のない値は以下を前提としており、うまく実現するのは難しい。そこでpass judgeというフラグを用いて速度計画に影響がある部分のみを検知エリアとするのか、そもそも経路から横距離何メートル以内の死角はすべて見るようにするのかのフラグの追加
もともとは急ブレーキを踏んで止まれる速度、止まれる距離を埋め込むこととしていたが、こちらは以下の理由により死角の位置にほぼ停止速度を埋め込み死角がなくなるまで減速を解除しないようにするかどうかのフラグを追加
その他
軽いrefactor
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.