Skip to content

Commit

Permalink
Modified the projection_time calculation (ros-navigation#2609)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naraharirahul authored Oct 15, 2021
1 parent f88c467 commit 8faa0f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ bool RegulatedPurePursuitController::isCollisionImminent(
pose_msg.header.frame_id = arc_pts_msg.header.frame_id;
pose_msg.header.stamp = arc_pts_msg.header.stamp;

const double projection_time = costmap_->getResolution() / linear_vel;
const double projection_time = costmap_->getResolution() / fabs(linear_vel);

geometry_msgs::msg::Pose2D curr_pose;
curr_pose.x = robot_pose.pose.position.x;
Expand Down

0 comments on commit 8faa0f0

Please sign in to comment.