Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use time stamp of msg header, not box header #836

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jsk_rviz_plugins/src/bounding_box_display_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ namespace jsk_rviz_plugins
Ogre::Vector3 position;
Ogre::Quaternion orientation;
if(!this->context_->getFrameManager()->transform(
box.header, box.pose, position, orientation)) {
box.header.frame_id, msg->header.stamp, box.pose, position, orientation)) {
std::ostringstream oss;
oss << "Error transforming pose";
oss << " from frame '" << box.header.frame_id << "'";
Expand Down Expand Up @@ -279,7 +279,7 @@ namespace jsk_rviz_plugins
edge->clear();
Ogre::Vector3 position;
Ogre::Quaternion quaternion;
if(!this->context_->getFrameManager()->transform(box.header, box.pose,
if(!this->context_->getFrameManager()->transform(box.header.frame_id, msg->header.stamp, box.pose,
position,
quaternion)) {
std::ostringstream oss;
Expand Down Expand Up @@ -369,7 +369,7 @@ namespace jsk_rviz_plugins
Ogre::Vector3 position;
Ogre::Quaternion orientation;
if(!this->context_->getFrameManager()->getTransform(
box.header, position, orientation)) {
box.header.frame_id, msg->header.stamp, position, orientation)) {
ROS_DEBUG("Error transforming from frame '%s' to frame '%s'",
box.header.frame_id.c_str(), qPrintable(this->fixed_frame_));
return;
Expand Down
Loading