Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError when using unknown severity levels (ros1_bridge) #29

Open
karl-schulz opened this issue Feb 13, 2021 · 1 comment
Open

KeyError when using unknown severity levels (ros1_bridge) #29

karl-schulz opened this issue Feb 13, 2021 · 1 comment

Comments

@karl-schulz
Copy link

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?

@arne48
Copy link
Member

arne48 commented Jul 29, 2021

Hello @karl-schulz,
thanks for investigating this issue and being willing to provide a fix.
I created a foxy-devel branch you can create a PR for.

Best,
Arne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants