Skip to content

Commit

Permalink
BUGFIX: Gridmap viz wont update
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Nov 4, 2024
1 parent ec67e8f commit 16769a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/GridmapNavSimul/gridmapSimulMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ CPose2D lastOdo, pose_start;
bool we_are_closing = false;
long decimation = 1;

mrpt::opengl::CSetOfObjects::Ptr gl_grid;
auto gl_grid = mrpt::opengl::CSetOfObjects::Create();

mrpt::opengl::CSetOfObjects::Ptr gl_robot;
mrpt::opengl::CPlanarLaserScan::Ptr gl_scan;
mrpt::opengl::CPointCloud::Ptr gl_path_GT;
Expand Down Expand Up @@ -652,7 +653,11 @@ gridmapSimulFrame::~gridmapSimulFrame()
//*)
}

void gridmapSimulFrame::update_grid_map_3d() { gl_grid = the_grid.getVisualization(); }
void gridmapSimulFrame::update_grid_map_3d()
{
gl_grid->clear();
gl_grid->insert(the_grid.getVisualization());
}

void gridmapSimulFrame::OnbtnQuitClick(wxCommandEvent& event)
{
Expand Down
1 change: 1 addition & 0 deletions doc/source/doxygen-docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Fix appstreamcli warnings in metadata XML files.
- BUG FIXES:
- mrpt::maps::CPointsMapXYZIRT::getPointRGB() now handles the case of no intensity without throwing, fixing the visualization of such clouds through mrpt::opengl::CPointCloudColoured::loadFromPointsMap().
- GridmapNavSimul: Loading a different gridmap won't update the map visualization.

# Version 2.14.4: Released Oct 19th, 2024
- BUG FIXES:
Expand Down

0 comments on commit 16769a3

Please sign in to comment.