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

Add dict method for RosValues #42

Merged
merged 2 commits into from
Mar 3, 2022
Merged

Conversation

liambenson
Copy link
Contributor

Fixes: DATA-604

Description of Changes

Adds the dict method present on RosMessages to also exist on RosValues.

Test Plan

Added a unit test.

Copy link

@taehoon-embark taehoon-embark left a comment

Choose a reason for hiding this comment

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

LG2M

python/embag.cc Outdated
} else if (v->getType() == Embag::RosValue::Type::primitive_array) {
return (py::object) primitiveArrayToPyObject(v, types_to_unpack);
} else {
throw std::runtime_error("Somehow you have a RosValue who's type is primitive");
Copy link

@johnembark johnembark Mar 2, 2022

Choose a reason for hiding this comment

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

Nit: s/who\'s/whose/

Copy link

@johnembark johnembark left a comment

Choose a reason for hiding this comment

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

LGTM other than a small spelling nit!

@liambenson liambenson merged commit c0b2932 into master Mar 3, 2022
@liambenson liambenson deleted the liam/add_dict_for_rosvalue branch March 3, 2022 20:49
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.

3 participants