-
Notifications
You must be signed in to change notification settings - Fork 45
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 rosidl_runtime_py package #34
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of the code seems to be copied from other repos. Please provide exact links to the copied snippets to allow evaluating that they are the same. I think some of them might also have changed since this PR was created and need to be updated.
Migrated utility functions for working with Python ROS messages from the package `ros2topic`. Conversion implementation taken from: https://github.com/ros2/ros2cli/blob/978fc8807cb1f70b5f9c2b085e7b6fa74d191d0e/ros2topic/ros2topic/verb/echo.py Set message implementation taken from https://github.com/ros2/ros2cli/blob/978fc8807cb1f70b5f9c2b085e7b6fa74d191d0e/ros2topic/ros2topic/api/__init__.py#L93-L119 Signed-off-by: Jacob Perron <[email protected]>
* Add docstrings and annotations. * Rename 'msg' -> 'message' * Add more tests * Remove default value from getattr in convert function * Remove custom SetFieldError exception Signed-off-by: Jacob Perron <[email protected]>
f51ca06
to
4171c5a
Compare
I've gone back and grabbed the latest code from Conversion implementation taken from: Set message implementation taken from: |
The subsequent replacement in ros2cli: ros2/ros2cli#209 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to merge without squashing to keep the two commits separate.
Migrated utility functions for working with Python ROS messages from the package
ros2topic
.The intention is to reuse these functions in other CLI tools:
ros2service
andros2action
.Replaces ros2/rclpy#285.