Skip to content

Commit de00c17

Browse files
authored
Add log info for the type of joint limits being used (#2186)
1 parent 9cda965 commit de00c17

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hardware_interface/src/resource_manager.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,15 @@ class ResourceStorage
693693
if (hw_info.soft_limits.find(joint_name) != hw_info.soft_limits.end())
694694
{
695695
soft_limits = {hw_info.soft_limits.at(joint_name)};
696+
RCLCPP_INFO(
697+
get_logger(), "Using SoftJointLimiter for joint '%s' in hardware '%s' : '%s'",
698+
joint_name.c_str(), hw_info.name.c_str(), soft_limits[0].to_string().c_str());
699+
}
700+
else
701+
{
702+
RCLCPP_INFO(
703+
get_logger(), "Using JointLimiter for joint '%s' in hardware '%s' : '%s'",
704+
joint_name.c_str(), hw_info.name.c_str(), limits.to_string().c_str());
696705
}
697706
std::unique_ptr<
698707
joint_limits::JointLimiterInterface<joint_limits::JointControlInterfacesData>>

0 commit comments

Comments
 (0)