Skip to content

Commit

Permalink
Merge pull request #932 from NikolausDemmel/fix/map-display-transform…
Browse files Browse the repository at this point in the history
…-map

Don't attempt to `transformMap` until one is actually received.
  • Loading branch information
wjwwood committed Oct 17, 2015
2 parents f54c6ad + c144aec commit f8bf2db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rviz/default_plugin/map_display.cpp
Expand Up @@ -668,6 +668,11 @@ void MapDisplay::updatePalette()

void MapDisplay::transformMap()
{
if (!loaded_)
{
return;
}

Ogre::Vector3 position;
Ogre::Quaternion orientation;
if (!context_->getFrameManager()->transform(frame_, ros::Time(), current_map_.info.origin, position, orientation))
Expand Down

0 comments on commit f8bf2db

Please sign in to comment.