Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
KeisukeShima committed Mar 18, 2021
1 parent c5f25fe commit d389366
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@

namespace obstacle_stop_planner
{
using autoware_utils::Point2d;
using autoware_utils::Point3d;
using autoware_utils::Polygon2d;
using autoware_utils::Polygon3d;

class AdaptiveCruiseController
{
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ std::tuple<bool, double> AdaptiveCruiseController::estimatePointVelocityFromPcl(
prev_collision_point_valid_ = true;
return std::forward_as_tuple(false, old_velocity);
}
const double p_dist = autoware_utils::calcDistance2d(nearest_collision_point, prev_collision_point_);
const double p_dist = boost::geometry::distance(nearest_collision_point, prev_collision_point_);
const auto p_diff = nearest_collision_point - prev_collision_point_;
const double p_yaw = std::atan2(p_diff.x(), p_diff.y());
const double p_vel = p_dist / p_dt;
Expand Down

0 comments on commit d389366

Please sign in to comment.