diff --git a/rviz_default_plugins/src/rviz_default_plugins/displays/map/map_display.cpp b/rviz_default_plugins/src/rviz_default_plugins/displays/map/map_display.cpp index 36449d4dc..487e0e275 100644 --- a/rviz_default_plugins/src/rviz_default_plugins/displays/map/map_display.cpp +++ b/rviz_default_plugins/src/rviz_default_plugins/displays/map/map_display.cpp @@ -573,10 +573,11 @@ void MapDisplay::transformMap() Ogre::Vector3 position; Ogre::Quaternion orientation; - if (!context_->getFrameManager()->transform(frame_, transform_time, current_map_.info.origin, - position, orientation) && - !context_->getFrameManager()->transform(frame_, context_->getClock()->now(), - current_map_.info.origin, position, orientation)) + if (!context_->getFrameManager()->transform( + frame_, transform_time, current_map_.info.origin, position, orientation) && + !context_->getFrameManager()->transform( + frame_, rclcpp::Time(0, 0, context_->getClock()->get_clock_type()), + current_map_.info.origin, position, orientation)) { setMissingTransformToFixedFrame(frame_); scene_node_->setVisible(false);