-
Notifications
You must be signed in to change notification settings - Fork 658
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
refactor(lane_change): separate path-related function to utils/path #9633
base: main
Are you sure you want to change the base?
refactor(lane_change): separate path-related function to utils/path #9633
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
0ac30be
to
43e731e
Compare
43e731e
to
007cef7
Compare
@@ -60,15 +61,9 @@ using geometry_msgs::msg::Pose; | |||
using geometry_msgs::msg::Twist; | |||
using path_safety_checker::CollisionCheckDebugMap; | |||
using tier4_planning_msgs::msg::PathWithLaneId; | |||
|
|||
rclcpp::Logger get_logger(); |
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.
do you need to declare it in the header?
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.
I want dont want to re-use the logger in utils/path, so this have to be in the header.
const CommonDataPtr & common_data_ptr, const lanelet::ConstLanelets & target_lanes, | ||
const Pose & lane_changing_start_pose, const double target_lane_length, | ||
const double lane_changing_length, const double lane_changing_velocity, | ||
const double buffer_for_next_lane_change) |
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.
I think you can get target_lanes
, target_lane_length
and buffer_for_next_lane_change
from common_data_ptr
Just to reduce number of inputs
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.
since it is only used in the old calcTerminalLaneChange
, as discussed yesterday, I remove the function together with the calcTerminalLaneChange
function.
Signed-off-by: Zulfaqar Azmi <[email protected]>
007cef7
to
df1ff38
Compare
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Description
Move candidate path generator/constructor-related function to
utils/path.hpp/cpp
.If we planning on adding new path generation functions, utils.hpp/cpp file might be overcrowded. So for maintainability purpose, it is better to isolate these functions.
Related links
Parent Issue:
How was this PR tested?
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.