-
Notifications
You must be signed in to change notification settings - Fork 55
Add rosidl_runtime_py package #34
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
Conversation
dirk-thomas
left a comment
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 <jacob@openrobotics.org>
* 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 <jacob@openrobotics.org>
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 |
dirk-thomas
left a comment
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:
ros2serviceandros2action.Replaces ros2/rclpy#285.