From 32f622e4b84256aec4c3a36edfaf2019b24074ad Mon Sep 17 00:00:00 2001 From: Shane Loretz Date: Thu, 1 Sep 2022 13:53:08 -0700 Subject: [PATCH] Make Axes display use latest transform (#892) Signed-off-by: Shane Loretz Signed-off-by: Shane Loretz (cherry picked from commit 8dc9f8a5f6f39ba0fc9ec784e6d8f93e70d3a9fa) --- .../src/rviz_default_plugins/displays/axes/axes_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rviz_default_plugins/src/rviz_default_plugins/displays/axes/axes_display.cpp b/rviz_default_plugins/src/rviz_default_plugins/displays/axes/axes_display.cpp index eb0623d33..efd0bd440 100644 --- a/rviz_default_plugins/src/rviz_default_plugins/displays/axes/axes_display.cpp +++ b/rviz_default_plugins/src/rviz_default_plugins/displays/axes/axes_display.cpp @@ -102,7 +102,7 @@ void AxesDisplay::update(float dt, float ros_dt) Ogre::Vector3 position; Ogre::Quaternion orientation; if (context_->getFrameManager()->getTransform( - frame, context_->getClock()->now(), position, orientation)) + frame, position, orientation)) { axes_->getSceneNode()->setVisible(true); axes_->setPosition(position);