-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
A few things are unclear to me, could you clarify the following points?
|
Just to make it closer to upstream, since it doesn't hurt anything to have it.
Ditto.
Ditto. I wasn't quite sure whether to keep OSRF in the copyright as well. I could go either way on that.
Hm, I'm not sure. How have we handled it before when we did a rebase and a force push? |
As the previous version of that message never existed in ROS 2 these rules will never apply.
As all the diagnostic code is commented out, I think it makes more sense to keep the diag variables commented out as well as they are not used.
It looks like this code now will be very close of passing the linters (hence the copyright format question).
I don't think we faced it before. As the last ROS1 release of this was beginning of 2017 so we already had all the upstream tags when we forked/ported it. |
All right, I've removed them again in 216c4c4.
Personally, I'd rather have them uncommented and a bit closer to upstream, as they really don't affect very much. But I won't hold up the whole PR for that, so if you really think I should comment them back out, I will.
I'm not sure whether it makes sense to run the linters on "ported" code like this anyway. I guess I could push for the
Oh, I see. I think I misunderstood your earlier point. Yeah, if we are pulling these in, we should definitely update "master" and push all of the tags there as well. As this PR goes in I'll do that. |
TL;DR: sounds good to me to keep the changes in for this PR, we can always revisit later.
I agree it will not impact the performance of the node, just didn't get the motivation as in my mind it made sense for unused code to be commented out.
Sorry for the confusion, my point was more that it seemed that being able to lint was the original motivation for changing the license header.
So I've been going back and forth on this and it's unclear to me how we should handle changelogs of upstream repo, as we generate our own changelogs each release (e.g. https://github.com/ros2/joystick_drivers/blob/2.1.0/joy/CHANGELOG.rst), and we will likely conflict in the future. |
Can you please post an updated diff when you get a chance for final review? |
Sure! Here you go:
|
Some comments by reading the diff between ROS 1 and ROS 2.
|
Done, except for in the method
Done now.
Done now.
It is necessary in ROS2, at least right now. The problem is that the RCUTILS_* and RCLCPP_* macros expand to more than one line, so the construct:
Is going to have problems. This actually seems like a bug to me, so I opened up ros2/rcutils#113 . I also opened up ros-drivers#126 to put brackets in upstream.
Fixed now.
Good call, fixed now.
No, I can't remember why I did that during the initial port. I've now removed all of that initialization, with the exception of I've updated the diffs as well: ros2 -> ros2-rebased: https://gist.github.com/clalancette/45291c03f1448e7a0c9be97c2fb29699 |
Then all instances of this should get brackets added isn't it ? e.g. https://gist.github.com/clalancette/266f9e6e3b072d73527cbb8939ef7bc1#file-ros1-ros2-diff-L393 |
Definitely. Done in cdd5350 |
Did you look at how the demos log in free functions? |
I changed to to pass the logger in 25b6586 |
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.
lgtm with new CI + manual testing
This can now be updated to use |
I've now done manual testing of this, and things seem to work (better now, in that Ctrl-C of the node actually kills it). I'm going to force push the rebase to this repository, then close out this PR. Thanks for the review. |
Oh, I'll also note that I did make the change referred to in #8 (comment) |
This is a rebase of the ROS2 version of joystick_drivers onto the upstream master to pull in a few fixes. While I was doing that, I also made some changes to make this fork closer to the upstream (such as restoring some files that we had earlier deleted). As this is a rebase, the GitHub diff won't work and this will be force pushed once approved. Instead, here are some diffs that may be more interesting to review: