MoveIt Studio Behavior  2.8.2
Core Behaviors for the MoveIt Studio Application
BT Namespace Reference

Functions

template<>
std::vector< std::string > convertFromString< std::vector< std::string > > (BT::StringView str)
 Template specialization of convertToString to split a string into a vector of strings. More...
 

Function Documentation

◆ convertFromString< std::vector< std::string > >()

template<>
std::vector<std::string> BT::convertFromString< std::vector< std::string > > ( BT::StringView  str)
inline

Template specialization of convertToString to split a string into a vector of strings.

Splits at semicolons (;), so an input of "first;second;third" is split into a vector containing ["first", "second", "third"]. This allows the ForEach<std::string> decorator to parse the input vector from the input data port as a single string, which makes it much easier to use this node within the objective editor.

Parameters
strInput string to convert.
Returns
Vector of strings.