-
Notifications
You must be signed in to change notification settings - Fork 251
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 support for parsing middle module name from type #128
Conversation
Allows support for message types generated from both msg and idl files. Signed-off-by: David Hodo <[email protected]>
Thanks for the patch. I think that probably definitely has to be addressed. However, when running |
Signed-off-by: Karsten Knese <[email protected]>
I just opened https://github.com/davidhodo/rosbag2/pull/1 to address the concerns of failing tests. I am not sure however how easily we can backport this to dashing, because as is it's currently breaking API. |
test fixups and default behavior
Thanks for those fixes. It works fine for me with your changes. I merged the pull request. Understood on the API change. It would be nice to get it in the next patch release since we're working with some outsides groups that also need the fixes. I'll see if I can figure out a way to do it without changing the API, but I'm not sure it's possible. |
Running a first round of CI: I think in order to remain API compatible we should maintain the function In order to bring this to a patch release, we should ideally merge this PR today as we ship the first patch release tomorrow. |
It does. I'll take a stab at it shortly. |
Signed-off-by: David Hodo <[email protected]>
See what you think of those changes. On OSX I had to build with colcon build --cmake-args -DCMAKE_CXX_FLAGS="-Wno-error=deprecated-declarations" to prevent the deprecated functions calls in the tests from showing up as errors. I assume we should keep tests in there for the legacy versions until they are removed. |
Signed-off-by: Karsten Knese <[email protected]>
Not a problem. Thanks for adding that. I wasn't sure the best way to fix it. Also, I noticed you added a default value of msg if there are only two parts. Do you know of a case where that is possible or are you just being cautious? I'm trying to fix a similar issue in ros2cli and am assuming that types always have 3 parts. |
Not sure I completely understood. Whenever trying to access the typesupport only by specifying e.g. |
Got it. Thanks. |
* Add support for parsing middle module name from type Allows support for message types generated from both msg and idl files. Signed-off-by: David Hodo <[email protected]> * test fixups and default behavior Signed-off-by: Karsten Knese <[email protected]> * deprecate legacy type extraction and add new Signed-off-by: David Hodo <[email protected]> * use pragma to avoid deprecation in test Signed-off-by: Karsten Knese <[email protected]>
Allows support for message types generated from both msg and idl files. Attempts to solve #127. I'm making the assumption that all type names are of the form package_name/middle_module (i.e. idl or msg)/type.