ros2 / rviz

ROS 3D Robot Visualizer
BSD 3-Clause Clear License
298 stars 212 forks source link

RViz Map display does not show costmap update topics correctly #1027

Closed ahopsu closed 1 year ago

ahopsu commented 1 year ago

If a costmap is published in the "main" topic, everything seems fine. RvizCostmap21

However, when publishing costmap in the "update" topic, RViz does not for some reason draw the data correctly. It seems, that the 1st value in the data list covers the whole first column, the 2nd value the whole second column, and the 3rd value the whole third column. 4th, 5th, 6th, 7th, 8th and 9th values seem to be ignored completely (their corresponding cells should be all filled with value 98). RvizCostmap22

Changing the 2nd value from 0 to 99. Again, the whole second column is set to 99, when it should be [99, 98, 98]. RvizCostmap23

It is clearly visible, that changing all the 4th, 5th, 6th, 7th, 8th and 9th values from 98 to 0 does not have any effect. RvizCostmap24

If only one value in the data list is given, it covers again the whole first column, and the two other columns are set every time to some random values RvizCostmap25 RvizCostmap26 RvizCostmap27

ahopsu commented 1 year ago

ROS2 Galactic was used

ahopsu commented 1 year ago

Noticed now, that this has been fixed for Rolling (https://github.com/ros2/rviz/commit/efa6b89b16ce6581d9d749da4fa70d1b17566670).

And apparently this fix won't be included in Galactic anymore, as its EOL has been already reached.