Skip to content

rviz display crash when layer is not available #161

@bmagyar

Description

@bmagyar

GridMap throws exceptions when lookup of things fail but these are not caught in the rviz display which in return crashes rviz altogether.

terminate called after throwing an instance of 'std::out_of_range'
  what():  GridMap::at(...) : No map layer 'elevation' available.

To reproduce:

  • add new display
  • set "Height Layer" to something invalid
  • change "Height Transformer" to "Flat"
  • start publishing gridmaps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions