Skip to content

Commit

Permalink
fix(autoware_behavior_velocity_virtual_traffic_light_module): fix unu…
Browse files Browse the repository at this point in the history
…sedFunction (autowarefoundation#8670)

fix:unusedFunction

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
  • Loading branch information
kobayu858 authored and a-maumau committed Sep 2, 2024
1 parent deb5a57 commit 0fa03a6
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,6 @@ using namespace std::literals::string_literals;

namespace autoware::behavior_velocity_planner
{
namespace
{
[[maybe_unused]] autoware::universe_utils::LinearRing3d createCircle(
const autoware::universe_utils::Point3d & p, const double radius, const size_t num_points = 50)
{
autoware::universe_utils::LinearRing3d ring; // clockwise and closed

for (size_t i = 0; i < num_points; ++i) {
const double theta = i * (2 * autoware::universe_utils::pi / num_points);
const double x = p.x() + radius * std::sin(theta);
const double y = p.y() + radius * std::cos(theta);
ring.emplace_back(x, y, p.z());
}

// Make closed
ring.emplace_back(p.x(), p.y() + radius, p.z());

return ring;
}
} // namespace

autoware::motion_utils::VirtualWalls VirtualTrafficLightModule::createVirtualWalls()
{
Expand Down

0 comments on commit 0fa03a6

Please sign in to comment.