tf2_bullet/include/tf2_bullet/tf2_bullet.hpp
inline
geometry_msgs::msg::PointStamped toMsg(const tf2::Stamped<btVector3> & in)
{
  geometry_msgs::msg::PointStamped msg;
  msg.header.stamp = tf2_ros::toMsg(in.stamp_);
  msg.header.frame_id = in.frame_id_;
  msg.point.x = in[0];
  msg.point.y = in[1];
  msg.point.z = in[2];
  return msg;
}
/** \brief Convert a stamped Bullet Vector3 type to a PointStamped message.
 * This function is a specialization of the toMsg template defined in tf2/convert.h
 * \param in The timestamped Bullet btVector3 to convert.
 * \return The vector converted to a PointStamped message.
 */
\brief Convert a stamped Bullet Vector3 type to a PointStamped message.
This function is a specialization of the toMsg template defined in tf2/convert.h
\param in The timestamped Bullet btVector3 to convert.
\return The vector converted to a PointStamped message.
\ brief Convert a stamped Bullet Vector3 type to a PointStamped message . This function is a specialization of the toMsg template defined in tf2 / convert . h \ param in The timestamped Bullet btVector3 to convert . \ return The vector converted to a PointStamped message .
inline
geometry_msgs::msg::PointStamped toMsg(const tf2::Stamped<btVector3> & in)
{
  geometry_msgs::msg::PointStamped msg;
  msg.header.stamp = tf2_ros::toMsg(in.stamp_);
  msg.header.frame_id = in.frame_id_;
  msg.point.x = in[0];
  msg.point.y = in[1];
  msg.point.z = in[2];
  return msg;
}
inline geometry_msgs :: msg :: PointStamped toMsg ( const tf2 :: Stamped < btVector3 > & in ) { geometry_msgs :: msg :: PointStamped msg ; msg . header . stamp = tf2_ros :: toMsg ( in . stamp_ ) ; msg . header . frame_id = in . frame_id_ ; msg . point . x = in [ 0 ] ; msg . point . y = in [ 1 ] ; msg . point . z = in [ 2 ] ; return msg ; }
\brief Convert a stamped Bullet Vector3 type to a PointStamped message.
\ brief Convert a stamped Bullet Vector3 type to a PointStamped message .