Skip to content

Commit

Permalink
fixed a minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bigsuperZZZX committed Mar 17, 2023
1 parent 99cd96d commit 9d85475
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ namespace ego_planner
for (int i = 0; i < durations.size(); ++i)
t_seg_start(i + 1) = t_seg_start(i) + durations(i);
const double DURATION = durations.sum();
double t = 0.0, t_step = RES / max_vel_;
double t = 0.0, t_step = min(RES / max_vel_, durations.minCoeff() / max(cps_num_prePiece_, 1) / 1.5);
Eigen::Vector3d pt_last = traj.getPos(0.0);
// pts_check[0].push_back(pt_last);
int id_cps_curr = 0, id_piece_curr = 0;
Expand Down

1 comment on commit 9d85475

@shubham-shahh
Copy link

@shubham-shahh shubham-shahh commented on 9d85475 Aug 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what issue does this fix? what does 1.5 signify?

Please sign in to comment.