Skip to content

Modifies the use of __slots__ for get_fields_and_field_types method#854

Closed
Voldivh wants to merge 2 commits intoRobotWebTools:ros2from
Voldivh:voldivh/use_of_field_getter
Closed

Modifies the use of __slots__ for get_fields_and_field_types method#854
Voldivh wants to merge 2 commits intoRobotWebTools:ros2from
Voldivh:voldivh/use_of_field_getter

Conversation

@Voldivh
Copy link
Copy Markdown

@Voldivh Voldivh commented Apr 5, 2023

Public API Changes

None

Description

The attribute __slots__ from a message represents all the attributes from the python class for that message, not only the field names of each component from the message structure. So far, this shouldn't impose any issue, however, taking into account the upcoming modifications from this PR in the rosidl_python package, the current use of the attribute in the rosapi/objectutils.py file would be affected and therefore, break something.

This PR solves that issue by modifying the use of __slots__ for the appropriate method to retrieve the field names and types get_fields_and_field_types().

Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
@achim-k
Copy link
Copy Markdown
Contributor

achim-k commented Sep 26, 2023

@Voldivh is this PR still relevant? Tests currently do not fail for rolling / iron but maybe none of the existing tests covers that change. Would you mind rebasing such that all CI tests are run again?

@github-actions
Copy link
Copy Markdown

This PR has been marked as stale because there has been no activity in the past 6 months. Please add a comment to keep it open.

@github-actions github-actions bot added the stale label Mar 26, 2024
@github-actions github-actions bot closed this Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants