Function auto_apms_behavior_tree::createAnyFromParameterValue

Function Documentation

BT::Expected<BT::Any> auto_apms_behavior_tree::createAnyFromParameterValue(const rclcpp::ParameterValue &val)

Convert a ROS 2 parameter value to a BT::Any object.

Since the type information of a parameter value is stored internally, it’s possible to create the corresponding BT::Any object dynamically.

Parameters:

val – ROS 2 parameter value.

Returns:

Expected object for BT::Any. Holds an error message if the type of val couldn’t be converted to a C++ type.