Skip to content

Commit 712d588

Browse files
committed
Addition: Added warning for unknown value in to_string function.
1 parent 2b1d3fa commit 712d588

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

joint_trajectory_controller/include/joint_trajectory_controller/interpolation_methods.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ const std::unordered_map<std::string, InterpolationMethod> InterpolationMethodMa
150150
return "splines";
151151
// Default
152152
default:
153+
RCLCPP_WARN(
154+
LOGGER,
155+
"Unknown interpolation method enum value was given. Returning default: "
156+
"UNKNOWN");
153157
return "UNKNOWN";
154158
}
155159
}

0 commit comments

Comments
 (0)