Function auto_apms_behavior_tree::createAnyFromParameterValue
Defined in File parameter.hpp
Function Documentation
-
BT::Expected<BT::Any> auto_apms_behavior_tree::createAnyFromParameterValue(const rclcpp::ParameterValue &val)
Convert a ROS 2 parameter value to a
BT::Anyobject.Since the type information of a parameter value is stored internally, it’s possible to create the corresponding
BT::Anyobject dynamically.- Parameters:
val – ROS 2 parameter value.
- Returns:
Expected object for
BT::Any. Holds an error message if the type ofvalcouldn’t be converted to a C++ type.