Skip to content

Commit

Permalink
fix(autoware_freespace_planning_algorithms): fix unusedScopedObject b…
Browse files Browse the repository at this point in the history
…ug (#7562)

Signed-off-by: Ryuta Kambe <[email protected]>
  • Loading branch information
veqcc authored Jun 20, 2024
1 parent 7638fa1 commit 978d07d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ geometry_msgs::msg::Pose local2global(
double PlannerWaypoints::compute_length() const
{
if (waypoints.empty()) {
std::runtime_error("cannot compute cost because waypoint has size 0");
throw std::runtime_error("cannot compute cost because waypoint has size 0");
}
double total_cost = 0.0;
for (size_t i = 0; i < waypoints.size() - 1; ++i) {
Expand Down

0 comments on commit 978d07d

Please sign in to comment.