Skip to content
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

Dynamically redefine the image topic #16

Open
AndyZe opened this issue Oct 4, 2018 · 6 comments
Open

Dynamically redefine the image topic #16

AndyZe opened this issue Oct 4, 2018 · 6 comments

Comments

@AndyZe
Copy link

AndyZe commented Oct 4, 2018

I'm interested in programmatically defining the image topic so I can switch between multiple cameras. Please advise if you would welcome a PR to do that, and if you would prefer it to be accomplished via ROS service or a dynamically configurable parameter (or maybe some other way)...

I think I would prefer to do it via ROS service.

@dirk-thomas
Copy link
Contributor

A service sounds like the better idea to me. A PR would certainly be welcome 🙇‍♂️

@gstavrinos
Copy link

Which service type would be the preferred one for such functionality?

@AndyZe
Copy link
Author

AndyZe commented Oct 17, 2018

You can check out the PR here: https://github.com/ros-visualization/rqt_image_view/pull/17/files

I did a string request, empty response. Hopefully that works for you, @gstavrinos.

@gstavrinos
Copy link

Looking good @AndyZe! Check your PRs for a quick fix. There is still a problem though, described in the commit message.

Cheers,

George

@AndyZe
Copy link
Author

AndyZe commented Oct 19, 2018

Cool, I tested your PR it works well. In my opinion, the other problem that you mentioned (clashing when rosrun-ing multiple instances) is a minor concern. If you wanted multiple, separate image views, why not use image_view? rqt_image_view is specifically intended to run from the GUI, I think.

Thanks!

@gstavrinos
Copy link

I hope so. Maybe Dirk or some other ROS master can tell us their opinion on the matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants