Function auto_apms_behavior_tree::createParameterValueFromAny
Defined in File parameter.hpp
Function Documentation
-
BT::Expected<rclcpp::ParameterValue> auto_apms_behavior_tree::createParameterValueFromAny(const BT::Any &any, rclcpp::ParameterType type)
Convert a
BT::Anyobject to a ROS 2 parameter value.You may optionally specify the type of the parameter value to convert to using
type. If you want to deduce the type fromany, set this torclcpp::PARAMETER_NOT_SET.- Parameters:
any –
BT::Anyobject.type – Desired type of the parameter value. Set to
rclcpp::PARAMETER_NOT_SETif it is unkown (e.g. if the parameter hasn’t been set before).
- Returns:
Expected object for
rclcpp::ParameterValue. Holds an error message ifanycouldn’t be converted totype.