-
Notifications
You must be signed in to change notification settings - Fork 197
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
tf2_ros is not built for Python #99
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.
Thanks for pushing on this.
I had a few quick comments, but can't really review this as it has conflicts and is not in a mergeable state. You'll need to rebase against the latest ros2 branch to get it to be mergable.
720a436
to
a52eeda
Compare
Thanks for your comment. I've found that there are a lot of works to make tf2_ros(python) properly working as follows. Task 1. Make tf2.BufferCore(tf2_py) working correctly I'm trying to update this PR. Task 1 and 2 are finished and updated in this PR. It seems to need more time to finish Task 3 and 4. |
@tfoote I guess it is ready to review. |
@vinnamkim this pull request needs to be rebased against the latest |
Rebased it to the latest |
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.
The geometry2
and geometry_experimental
packages shouldn't be removed by this PR; if you are interested in doing that, please propose it in a separate PR.
For any new code you've added, please make sure there are no trailing whitespace; I saw that in a few places. For any old code, let's not make whitespace changes in this PR so we can concentrate on the code changes.
There is a potential circular dependency in this port since tf2_py
could benefit from using some functions from tf2_ros
. But currently in this port, tf2_ros
depends on tf2_py
. I think what I'd do instead is to have:
tf2_ros
-> C++ only library
tf2_py
-> depends on tf2_ros
tf2_ros_py
-> python library depending on tf2_py
.
@tfoote what do you think of that proposal?
@clalancette Thanks for your review. I updated this PR. Would you mind checking again please? |
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.
This is looking generally pretty good to me. I'll kick off CI so we can see how Windows breaks.
I'd also like to get @tfoote 's opinion on both the code presented here and my proposal to split this into multiple packages. Once we have consensus, we can revisit this.
@clalancette I missed |
Arg. Well, there are a couple of things here:
So points 2 and 3 mean that there is a bug, but point 1 means that this should compile now. So we'll worry about the |
I've rebased on the latest, and did some minor cleanup. We still need to find out what is going on on macOS and Windows here. I'm on vacation for the next week, so you won't hear much from me until after that. If nobody else gets to it, I'll pick this up when I'm back. |
The latest code I pushed should make it so that it compiles on both Windows and macOS. And now the tests pass. But I've been unable to actually make it lookup a transform with code like:
(in another terminal, I did Now I am truly out of time. We'll want to fix whatever is causing it not to be able to lookup transforms, and add a test for that, before merging. |
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: vinnamkim <vinnam.kim@gmail.com>
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've got a number of comments; most of them are pretty simple/straightforward, with the exception of error handling which I think can be done better.
Besides that, there are 3 follow-up issues that should be created:
- We should have a follow-up where we fixup the style in this code, including switching to
nullptr
. - We should have a follow-up where we split
tf2_ros
intotf2_ros
andtf2_ros_py
(see tf2_ros is not built for Python #99 (review)) - We should have a follow-up where we discuss https://github.com/ros2/geometry2/pull/99/files#diff-c7c674ae33e71f2cfe70fa723b501d4fR159
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
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.
This is looking good to me. I'm going to approve. I'll go ahead and create the follow-up issues and run CI, and assuming that is all happy, I'll merge this.
Can you tell me the status of this? We would like to use tf2_ros with python in our ros2 project but we are at this moment unable to import it properly. We use the following release :https://github.com/ros2/ros2/releases/download/release-dashing-20190806/ros2-dashing-20190806-linux-bionic-amd64.tar.bz2 |
This was merged into master, and will be part of the Eloquent release: https://index.ros.org//doc/ros2/Releases/Release-Eloquent-Elusor/ The changes were too invasive to backport into Dashing. |
Hi, I have successfully compiled but unable to import it. When I tried to import Seems python path is OK and I can see there is |
@RoboticsYY Please open an issue for the problem if there isn't one already. Comments on closed PRs are hard to find. |
This PR targeting #26 to handle the issue #87