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

Commit bb123aa

Browse files
committed
fix build error
1 parent b242f8f commit bb123aa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

obstacle_stop_planner_refine/include/obstacle_stop_planner/adaptive_cruise_control.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929

3030
namespace obstacle_stop_planner
3131
{
32+
using autoware_utils::Point2d;
33+
using autoware_utils::Point3d;
34+
using autoware_utils::Polygon2d;
35+
using autoware_utils::Polygon3d;
36+
3237
class AdaptiveCruiseController
3338
{
3439
public:

obstacle_stop_planner_refine/src/adaptive_cruise_control.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ std::tuple<bool, double> AdaptiveCruiseController::estimatePointVelocityFromPcl(
298298
prev_collision_point_valid_ = true;
299299
return std::forward_as_tuple(false, old_velocity);
300300
}
301-
const double p_dist = autoware_utils::calcDistance2d(nearest_collision_point, prev_collision_point_);
301+
const double p_dist = boost::geometry::distance(nearest_collision_point, prev_collision_point_);
302302
const auto p_diff = nearest_collision_point - prev_collision_point_;
303303
const double p_yaw = std::atan2(p_diff.x(), p_diff.y());
304304
const double p_vel = p_dist / p_dt;

0 commit comments

Comments
 (0)