11#include <geometry_msgs/Pose.h>
12#include <tf/transform_listener.h>
13#include <tf/transform_datatypes.h>
21 Pose(std::string poseFrameName =
"base_link", std::string referenceFrame =
"odom");
23 virtual void update()
override;
29 std::lock_guard<std::mutex> guard(
m_mutex_);
30 return this->
pose_.pose;
35 std::lock_guard<std::mutex> guard(
m_mutex_);
52 geometry_msgs::PoseStamped
pose_;
static std::shared_ptr< tf::TransformListener > tfListener_
std::string poseFrameName_
void waitTransformUpdate(ros::Rate r=ros::Rate(20))
geometry_msgs::PoseStamped toPoseStampedMsg()
std::string referenceFrame_
const std::string & getFrameId() const
geometry_msgs::PoseStamped pose_
geometry_msgs::Pose toPoseMsg()
virtual void update() override
static std::mutex listenerMutex_
const std::string & getReferenceFrame() const