-
Notifications
You must be signed in to change notification settings - Fork 726
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
ROS2: Port image_view #475
Conversation
I'm sure as you've seen in the github queue, there are an awful lot of tickets complaining about image viewer not letting them save, freezing, etc. I don't want to make you deal with these in the port, but if you happen to be testing by running stuff and you do fix them, that would be great |
I'll see what I can do and back-port anything I find. |
LMK when you want me to take a look |
@SteveMacenski - Could you possibly take a look at the build failure that's happening right now? I know there's something happening in the linking phase but I'm not sure why it is failing. |
@JWhitleyAStuff try fixing
First, then I'll take a look. CI sometimes has a habit of not failing well so if you had warnings or something odd, downstream weird things happen. if its still happening, ping me again |
I fixed this warning and I'm still getting the same two linker errors:
and
|
@SteveMacenski - I figured it out. I had a function declared in |
Ah ok! Errors are usually meaningful, but when I see them in CI and not locally my logic-sensor turns off and my wild-speculation-sensor turns on |
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.
No real substantive issues
@SteveMacenski - Thanks for the feedback. I'm still cleaning up a lot of stuff so it's not quite ready for a review just yet. I'll hit you back when it's working and I've linted everything. Thanks! |
5426cbc
to
f8c63ce
Compare
@SteveMacenski - OK, I think I got the majority of it working. I tested Also, FYI, I used this driver and, other than having a really low default FPS, it works fine: https://github.com/klintan/ros2_usb_camera |
I saw when i was cleaning up the filesystem someone added a usb capture to the publisher node. Maybe that should be pulled out again and in a new executable (like that) |
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.
what do you still need boost for?
LGTM. Any of the tickets you fixed, can you comment on their tickets saying resolved in ROS2? Keep track of the ROS2-needs |
https://stackoverflow.com/questions/23412978/c11-equivalent-to-boost-format Essentially, there is no Standard Library, direct replacement for |
That's OK for me. Just curious. Are you good for a review now? |
@SteveMacenski - Yeah, code should be ready for review, minus formatting (will be my next PR). When you say "That's OK for me", do you mean keeping Boost or using one of the other formatting methods? |
Keeping Boost. No need to make you do everything all at once ;-) If you're so inclined to do something non-boost, power to you, but I'm not pushing it. |
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.
Small things - mostly good
image_view/src/image_saver_node.cpp
Outdated
save_srv_ = this->create_service<std_srvs::srv::Empty>( | ||
"save", std::bind(&ImageSaverNode::service, this, _1, _2, _3)); | ||
|
||
// FIXME(unkown): This does not make services appear |
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.
Is this still a fix need?
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.
Instead of trying to "fix" this, I just removed the request_start_end
parameter. Having topics or services appear or not appear based on parameters is bad form. I just have both services available all the time and people can choose how to use the node (whether they use the save
service or the start
and end
services).
image_view/src/image_view.cpp
Outdated
|
||
/* | ||
TODO(jwhitleyastuff): Add ROS2 dynamic reconfigure stuff | ||
void reconfigureCb(image_view::ImageViewConfig &config, uint32_t level) |
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.
So dynamic reconfigure is never coming back. We have dynamic parameters, where RQT reconfigure can just tag new parameter values and you can register parameter callback on change ros-navigation/navigation2#1370
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.
Yeah, I forgot about this. I'll work on adding them.
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.
Done.
3390865
to
b00a277
Compare
@SteveMacenski - Sorry for the late entry. I was going back over your comment about there being several tickets regarding |
Port is far from complete but I wanted to create a WIP PR to let others know that it is being worked on.