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

Print out message mapping for fields_2_to_1 rule #365

Merged
merged 3 commits into from
Jun 27, 2022

Conversation

quarkytale
Copy link
Contributor

As reported in #353, mapping rules from ros2 fields to ros1 fields aren't being printed out.
Apparently, the mapping dictionary structure wasn't being populated nor the fields_2_to_1 tag was being checked in the string pairs data.

@gbiggs
Copy link
Member

gbiggs commented Jun 8, 2022

Do you think this can be unit tested?

@quarkytale
Copy link
Contributor Author

Do you think this can be unit tested?

I'm not well versed with unit tests, but we'll need to pass the custom messages and mapping rules to validate. Adding GTest would suitable I guess?

@quarkytale
Copy link
Contributor Author

CI_Packaging_Linux
Build Status

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got one thing that I think we need to change.

In terms of tests, I do think we should add tests for this somewhere, but I also think it should be a separate effort. As far as I can tell, there are no tests for the MappingRules currently.

ros1_bridge/__init__.py Outdated Show resolved Hide resolved
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable to me. I'll request one more CI with this change in place, and then assuming that is happy feel free to merge.

@quarkytale
Copy link
Contributor Author

Thanks a lot, Chris!
CI_Packaging_Linux:
Build Status

@quarkytale quarkytale merged commit 1488b12 into master Jun 27, 2022
@delete-merged-branch delete-merged-branch bot deleted the quarkytale/mapping_rule branch June 27, 2022 22:35
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.

None yet

3 participants