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

Added support for empty messages #960

Merged
merged 2 commits into from
Apr 22, 2024
Merged

Conversation

jbendes
Copy link
Contributor

@jbendes jbendes commented Apr 4, 2024

This commit adds support for zcm messages that are empty. Before the messages would just be dropped and not displayed in PlotJuggler. Now they will show up at the correct timestamp with no contents and a numeric value of 0 for each message that exists

@facontidavide
Copy link
Owner

please apply the correct formatting using pre-commit

@facontidavide
Copy link
Owner

also, are you sure that this is a good idea? how do we distinguish between "zero as null" and actual zeros?

@jbendes
Copy link
Contributor Author

jbendes commented Apr 4, 2024

How do I do that?

@jbendes
Copy link
Contributor Author

jbendes commented Apr 4, 2024

That actually can't be a thing. A message in zcm is like a c-struct. There are always fields inside the message that have values. The message itself can't have a value. Does that make sense?

@jbendes
Copy link
Contributor Author

jbendes commented Apr 4, 2024

@facontidavide done!

@facontidavide facontidavide merged commit e659ad0 into facontidavide:main Apr 22, 2024
14 checks passed
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

Successfully merging this pull request may close these issues.

2 participants