Skip to content

KeyError when using unknown severity levels (ros1_bridge) #29

@karl-schulz

Description

@karl-schulz

Hi!

When using the ROS1 bridge, the log messages get passed to ROS2 with different severity levels (1 instead of 10, 2 instead of 20, etc...). This causes a KeyError and an AssertionError in rqt_console/message_data_model.py:

KeyError:

data = Message.SEVERITY_LABELS[data]

AssertionError:

assert msg.severity in MessageDataModel.severity_colors, \

I fixed it locally for me - should I create pull request? Otherwise, rqt_console is basically not usable with a ROS1 bridge. Probably there are also other failure cases, as the gaps between severity levels in ROS2 were probably on purpose to let space for custom levels.

Thanks!
Karl

PS: Where is rqt_console for Foxy maintained?

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