Skip to content

Commit

Permalink
Fix flickering visualization (#578)
Browse files Browse the repository at this point in the history
* Added Documentation for fix flickering visualization

Signed-off-by: Vladyslav Hrynchak <[email protected]>

* Fix documentation

Signed-off-by: Vladyslav Hrynchak <[email protected]>

* Updated documentation

Signed-off-by: Vladyslav Hrynchak <[email protected]>

---------

Signed-off-by: Vladyslav Hrynchak <[email protected]>
  • Loading branch information
VladyslavHrynchak200204 authored Aug 2, 2024
1 parent 5d4f8cf commit d742cef
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
11 changes: 11 additions & 0 deletions configuration/packages/configuring-costmaps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ Costmap2D ROS Parameters
Description
Topic of map from map_server or SLAM.

:map_vis_z:

============== =======
Type Default
-------------- -------
double 0.0
============== =======

Description
The height of map, allows to avoid rviz visualization flickering at -0.008

:observation_sources:

============== =======
Expand Down
23 changes: 22 additions & 1 deletion migration/Jazzy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,25 @@ Working demo of the tool:

.. image:: images/rviz_costmap_cost_tool.gif

.. attention:: If the costmap service is unavailable, then the tool will not be able to fetch and display the cost values.
.. attention:: If the costmap service is unavailable, then the tool will not be able to fetch and display the cost values.

Fix flickering visualization
****************************

In `PR #4561 <https://github.com/ros-navigation/navigation2/pull/4561>`_ a ``map_vis_z`` parameter has been introduced to Costmap2DROS to help modify the map slightly below the default plane, aiming to eliminate rviz visualization flickering issues.

Default Value:

- map_vis_z: 0.0

Minimum Value Without Flickering:

- map_vis_z: -0.008

Before:

.. image:: images/fix_flickering_visualization_before.png

After:

.. image:: images/fix_flickering_visualization_after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d742cef

Please sign in to comment.