Skip to content

Commit

Permalink
fix param update initial value
Browse files Browse the repository at this point in the history
Signed-off-by: mohammad alqudah <[email protected]>
  • Loading branch information
mkquda committed Jan 15, 2025
1 parent 9553e72 commit 2ae06dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ void LaneChangeModuleManager::updateModuleParams(const std::vector<rclcpp::Param
parameters, ns + "lane_changing_decel_factor", p->trajectory.lane_changing_decel_factor);
updateParam<double>(
parameters, ns + "th_prepare_curvature", p->trajectory.th_prepare_curvature);
int longitudinal_acc_sampling_num = 0;
int longitudinal_acc_sampling_num = p->trajectory.lon_acc_sampling_num;
updateParam<int>(parameters, ns + "lon_acc_sampling_num", longitudinal_acc_sampling_num);
if (longitudinal_acc_sampling_num > 0) {
p->trajectory.lon_acc_sampling_num = longitudinal_acc_sampling_num;
Expand All @@ -373,7 +373,7 @@ void LaneChangeModuleManager::updateModuleParams(const std::vector<rclcpp::Param
longitudinal_acc_sampling_num);
}

int lateral_acc_sampling_num = 0;
int lateral_acc_sampling_num = p->trajectory.lat_acc_sampling_num;
updateParam<int>(parameters, ns + "lat_acc_sampling_num", lateral_acc_sampling_num);
if (lateral_acc_sampling_num > 0) {
p->trajectory.lat_acc_sampling_num = lateral_acc_sampling_num;
Expand Down

0 comments on commit 2ae06dd

Please sign in to comment.