Skip to content

Commit

Permalink
[DynRecMgr]: hotfix to remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
matemat13 committed Nov 1, 2023
1 parent c45643d commit 319009e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/mrs_lib/dynamic_reconfigure_mgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,14 @@ class DynamicReconfigureMgr
else
ROS_INFO_STREAM("[" << m_node_name << "]: parameter '" << name << "':\t" << val);
}

// helper methods for automatic parameter value parsing
template <typename T>
inline bool try_cast(boost::any& val, T*& out)
{
return (out = boost::any_cast<T>(&val));
};
}

template <typename T>
inline bool try_compare(boost::any& val, T*& to_what)
{
Expand All @@ -250,7 +252,7 @@ class DynamicReconfigureMgr
ROS_WARN_STREAM("[" << m_node_name << "]: DynamicReconfigure value type has changed - this should not happen!");
return false;
}
};
}
};
//}

Expand Down

0 comments on commit 319009e

Please sign in to comment.