MoveIt Pro API
Core Behaviors for MoveIt Pro
Loading...
Searching...
No Matches
BT Namespace Reference

Functions

template<>
std_msgs::msg::String convertFromString< std_msgs::msg::String > (BT::StringView str)
 Template specialization of convertFromString to turn a string into a std_msgs::msg::String.
 
template<>
geometry_msgs::msg::Quaternion convertFromString< geometry_msgs::msg::Quaternion > (BT::StringView str)
 Parse a geometry_msgs::msg::Quaternion from the x;y;z;w port wire form.
 
template<>
geometry_msgs::msg::Vector3 convertFromString< geometry_msgs::msg::Vector3 > (BT::StringView str)
 Parse a geometry_msgs::msg::Vector3 from the x;y;z port wire form.
 
template<>
std::string toStr< geometry_msgs::msg::Quaternion > (const geometry_msgs::msg::Quaternion &quaternion)
 
template<>
std::string toStr< geometry_msgs::msg::Vector3 > (const geometry_msgs::msg::Vector3 &vector)
 
 BT_JSON_CONVERTER (std::vector< Any >, any_vec)
 
template<>
geometry_msgs::msg::Quaternion convertFromString< geometry_msgs::msg::Quaternion > (BT::StringView str)
 Parse a geometry_msgs::msg::Quaternion from the x;y;z;w port wire form.
 
template<>
geometry_msgs::msg::Vector3 convertFromString< geometry_msgs::msg::Vector3 > (BT::StringView str)
 Parse a geometry_msgs::msg::Vector3 from the x;y;z port wire form.
 
template<>
std::string toStr< geometry_msgs::msg::Quaternion > (const geometry_msgs::msg::Quaternion &quaternion)
 
template<>
std::string toStr< geometry_msgs::msg::Vector3 > (const geometry_msgs::msg::Vector3 &vector)
 

Function Documentation

◆ BT_JSON_CONVERTER()

BT::BT_JSON_CONVERTER ( std::vector< Any >  ,
any_vec   
)

◆ convertFromString< geometry_msgs::msg::Quaternion >() [1/2]

template<>
geometry_msgs::msg::Quaternion BT::convertFromString< geometry_msgs::msg::Quaternion > ( BT::StringView  str)

Parse a geometry_msgs::msg::Quaternion from the x;y;z;w port wire form.

Empty input yields the identity quaternion. The value is not normalized here — behaviors normalize at tick time. Kept string-compatible with the pre-migration std::vector<double> ports.

◆ convertFromString< geometry_msgs::msg::Quaternion >() [2/2]

template<>
geometry_msgs::msg::Quaternion BT::convertFromString< geometry_msgs::msg::Quaternion > ( BT::StringView  str)

Parse a geometry_msgs::msg::Quaternion from the x;y;z;w port wire form.

Empty input yields the identity quaternion. The value is not normalized here — behaviors normalize at tick time. Kept string-compatible with the pre-migration std::vector<double> ports.

◆ convertFromString< geometry_msgs::msg::Vector3 >() [1/2]

template<>
geometry_msgs::msg::Vector3 BT::convertFromString< geometry_msgs::msg::Vector3 > ( BT::StringView  str)

Parse a geometry_msgs::msg::Vector3 from the x;y;z port wire form.

Empty input yields a zero vector. Kept string-compatible with the pre-migration std::vector<double> position/translation ports.

◆ convertFromString< geometry_msgs::msg::Vector3 >() [2/2]

template<>
geometry_msgs::msg::Vector3 BT::convertFromString< geometry_msgs::msg::Vector3 > ( BT::StringView  str)

Parse a geometry_msgs::msg::Vector3 from the x;y;z port wire form.

Empty input yields a zero vector. Kept string-compatible with the pre-migration std::vector<double> position/translation ports.

◆ convertFromString< std_msgs::msg::String >()

template<>
std_msgs::msg::String BT::convertFromString< std_msgs::msg::String > ( BT::StringView  str)
inline

Template specialization of convertFromString to turn a string into a std_msgs::msg::String.

Parameters
strInput string to convert.
Returns
A std_msgs::msg::String object whose data matches the contents of the string input.

◆ toStr< geometry_msgs::msg::Quaternion >() [1/2]

template<>
std::string BT::toStr< geometry_msgs::msg::Quaternion > ( const geometry_msgs::msg::Quaternion &  quaternion)

◆ toStr< geometry_msgs::msg::Quaternion >() [2/2]

template<>
std::string BT::toStr< geometry_msgs::msg::Quaternion > ( const geometry_msgs::msg::Quaternion &  quaternion)

◆ toStr< geometry_msgs::msg::Vector3 >() [1/2]

template<>
std::string BT::toStr< geometry_msgs::msg::Vector3 > ( const geometry_msgs::msg::Vector3 &  vector)

◆ toStr< geometry_msgs::msg::Vector3 >() [2/2]

template<>
std::string BT::toStr< geometry_msgs::msg::Vector3 > ( const geometry_msgs::msg::Vector3 &  vector)