Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(autoware_behavior_velocity_virtual_traffic_light_module): fix unusedFunction #8670

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading