Skip to content

Commit

Permalink
WIP: workaround for map display glitch (issue ros-visualization#1826)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGrupp committed May 13, 2024
1 parent b820db8 commit 0d1c3f3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/rviz/default_plugin/map_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,9 @@ void Swatch::updateData()

MapDisplay::MapDisplay() : Display(), loaded_(false), resolution_(0.0f), width_(0), height_(0)
{
// HACK: Using a direct connection triggers a segfault on NVIDIA hardware (#1793) when rendering
// TODO: Using a direct connection triggers a segfault on NVIDIA hardware (#1793) when rendering
// *and* having performed a depth rendering before (e.g. due to raycasting for selections)
// A queued connection delays the update of renderables after the current VisualizationManager::onUpdate() call
connect(this, &MapDisplay::mapUpdated, this, &MapDisplay::showMap, Qt::QueuedConnection);
connect(this, &MapDisplay::mapUpdated, this, &MapDisplay::showMap);
topic_property_ = new RosTopicProperty(
"Topic", "", QString::fromStdString(ros::message_traits::datatype<nav_msgs::OccupancyGrid>()),
"nav_msgs::OccupancyGrid topic to subscribe to.", this, &MapDisplay::updateTopic);
Expand Down

0 comments on commit 0d1c3f3

Please sign in to comment.