Skip to content

Commit 0cb309e

Browse files
authored
fix(autoware_behavior_velocity_virtual_traffic_light_module): fix unusedFunction (autowarefoundation#8670)
fix:unusedFunction Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent ee600a7 commit 0cb309e

File tree

1 file changed

+0
-20
lines changed
  • planning/behavior_velocity_planner/autoware_behavior_velocity_virtual_traffic_light_module/src

1 file changed

+0
-20
lines changed

planning/behavior_velocity_planner/autoware_behavior_velocity_virtual_traffic_light_module/src/debug.cpp

-20
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,6 @@ using namespace std::literals::string_literals;
3030

3131
namespace autoware::behavior_velocity_planner
3232
{
33-
namespace
34-
{
35-
[[maybe_unused]] autoware::universe_utils::LinearRing3d createCircle(
36-
const autoware::universe_utils::Point3d & p, const double radius, const size_t num_points = 50)
37-
{
38-
autoware::universe_utils::LinearRing3d ring; // clockwise and closed
39-
40-
for (size_t i = 0; i < num_points; ++i) {
41-
const double theta = i * (2 * autoware::universe_utils::pi / num_points);
42-
const double x = p.x() + radius * std::sin(theta);
43-
const double y = p.y() + radius * std::cos(theta);
44-
ring.emplace_back(x, y, p.z());
45-
}
46-
47-
// Make closed
48-
ring.emplace_back(p.x(), p.y() + radius, p.z());
49-
50-
return ring;
51-
}
52-
} // namespace
5333

5434
autoware::motion_utils::VirtualWalls VirtualTrafficLightModule::createVirtualWalls()
5535
{

0 commit comments

Comments
 (0)