Skip to content

Commit

Permalink
delete unused dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
  • Loading branch information
danielsanchezaran committed Jun 19, 2024
1 parent 320d060 commit 6d14e84
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,8 @@
#include <geometry_msgs/msg/point.hpp>
#include <geometry_msgs/msg/pose.hpp>

#include <boost/geometry/algorithms/convex_hull.hpp>
#include <boost/geometry/algorithms/correct.hpp>
#include <boost/geometry/algorithms/distance.hpp>
#include <boost/optional.hpp>

#include <map>
#include <string>
#include <utility>
#include <vector>

namespace autoware::motion::control::autonomous_emergency_braking::utils
Expand Down
4 changes: 2 additions & 2 deletions control/autoware_autonomous_emergency_braking/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ void AEB::createObjectDataUsingPredictedObjects(
predicted_object.kinematics.initial_twist_with_covariance.twist.linear.y);

Check warning on line 634 in control/autoware_autonomous_emergency_braking/src/node.cpp

View check run for this annotation

Codecov / codecov/patch

control/autoware_autonomous_emergency_braking/src/node.cpp#L631-L634

Added lines #L631 - L634 were not covered by tests

const auto obj_yaw = tf2::getYaw(obj_pose.orientation);
const auto obj_idx = motion_utils::findNearestIndex(ego_path, obj_pose.position);
const auto obj_idx = autoware_motion_utils::findNearestIndex(ego_path, obj_pose.position);
const auto path_yaw = (current_ego_speed > 0.0)
? tf2::getYaw(ego_path.at(obj_idx).orientation)

Check warning on line 639 in control/autoware_autonomous_emergency_braking/src/node.cpp

View check run for this annotation

Codecov / codecov/patch

control/autoware_autonomous_emergency_braking/src/node.cpp#L637-L639

Added lines #L637 - L639 were not covered by tests
: tf2::getYaw(ego_path.at(obj_idx).orientation) + M_PI;
Expand Down Expand Up @@ -672,7 +672,7 @@ void AEB::createObjectDataUsingPredictedObjects(
const auto obj_position =
autoware_universe_utils::createPoint(collision_point.x(), collision_point.y(), 0.0);

Check warning on line 673 in control/autoware_autonomous_emergency_braking/src/node.cpp

View check run for this annotation

Codecov / codecov/patch

control/autoware_autonomous_emergency_braking/src/node.cpp#L673

Added line #L673 was not covered by tests
const double obj_arc_length =
motion_utils::calcSignedArcLength(ego_path, current_p, obj_position);
autoware_motion_utils::calcSignedArcLength(ego_path, current_p, obj_position);

Check warning on line 675 in control/autoware_autonomous_emergency_braking/src/node.cpp

View check run for this annotation

Codecov / codecov/patch

control/autoware_autonomous_emergency_braking/src/node.cpp#L675

Added line #L675 was not covered by tests
if (std::isnan(obj_arc_length)) continue;

// If the object is behind the ego, we need to use the backward long offset. The
Expand Down
13 changes: 13 additions & 0 deletions control/autoware_autonomous_emergency_braking/src/utils.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2024 TIER IV, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

0 comments on commit 6d14e84

Please sign in to comment.