Skip to content

Commit

Permalink
Default to Image frame_id if the Quad Frame is not set #4
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw committed Sep 26, 2018
1 parent bc2c992 commit 78f2b4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mesh_display_custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,11 @@ void MeshDisplayCustom::constructQuads(const sensor_msgs::Image::ConstPtr& image
geometry_msgs::Pose mesh_origin;

// TODO(lucasw) get pose from tf
const std::string frame = tf_frame_property_->getFrameStd();
std::string frame = tf_frame_property_->getFrameStd();
if (frame == "")
{
frame = image->header.frame_id;
}
// Lookup transform into fixed frame
Ogre::Vector3 position;
Ogre::Quaternion orientation;
Expand Down

0 comments on commit 78f2b4d

Please sign in to comment.