1 #ifndef TRANSFORM_VARIANCE_H 2 #define TRANSFORM_VARIANCE_H 4 #include <geometry_msgs/PoseWithCovarianceStamped.h> 23 : transform(q, tvec), variance(var){};
70 inline geometry_msgs::PoseWithCovarianceStamped
toPose(
72 geometry_msgs::PoseWithCovarianceStamped msg;
73 msg.header.stamp = in.
stamp_;
76 toMsg(in.transform, msg.pose.pose);
78 std::fill(msg.pose.covariance.begin(), msg.pose.covariance.end(), 0);
80 for (
int i = 0; i <= 5; i++) {
81 msg.pose.covariance[i * 6 + i] = in.variance;
88 geometry_msgs::TransformStamped msg;
89 msg.header.stamp = in.
stamp_;
91 msg.transform =
toMsg(in.transform);
void fromMsg(const A &, B &b)