Specialized Template Function BT::convertFromString< geometry_msgs::msg::PoseStamped >

Function Documentation

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

Converts a string to a PoseStamped message.

The string format should be “x;y;z;roll;pitch;yaw;frame_id” where:

  • x, y, z: Position coordinates.

  • roll, pitch, yaw: Rotation around axes XYZ.

  • frame_id: Coordinate frame ID (string).

Parameters:

str – The string to convert.

Throws:

BT::RuntimeError – Throws if the input is invalid or cannot be parsed.

Returns:

geometry_msgs::msg::PoseStamped The converted PoseStamped message.