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

use image_transport to subscribe to image messages #523

Merged
merged 6 commits into from
May 7, 2021

Conversation

ketatam
Copy link
Contributor

@ketatam ketatam commented Apr 1, 2020

ImageDisplay and CameraDisplay now use image_transport to subscribe to image messages, so that it is possible to subscribe to different types of image messages (compressed, theora..).
CameraDisplay also uses image_transport to get the CameraInfoTopic.
This needs image_common to be added, see corresponding PR: ros2/ros2#884

fixes #207

Copy link
Member

@audrow audrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your changes look good to me. However, this PR depends on image_common, which is currently not passing CI (latest attempt) on the ros2 branch (the branch mentioned in your other PR: ros2/ros2#884). I would feel better about this new dependency if CI was passing on image_common's ros2 branch.

@Martin-Idel
Copy link
Contributor

Martin-Idel commented Aug 9, 2020

@audrow Regarding image_common I agree, this should first be in the general ros2.repos file. However, we need new CI - the latest attempt was 10 months ago. In ros2/ros2#884 there was a different CI attempt, but after that, I put in some effort to fix the CI failures, so Jenkins CI was green at one point. Maybe you could give CI another try?

@audrow audrow force-pushed the feature/reenable_image_transport branch from 284ff12 to 55160cd Compare August 10, 2020 23:22
@audrow
Copy link
Member

audrow commented Aug 10, 2020

Building for CI failed (Build Status) so I've tried rebasing and rerunning CI: Build Status.

@audrow
Copy link
Member

audrow commented Aug 13, 2020

I added the image_transport dependency to the rviz_default_plugins's package.xml, so that CI will build.

Here's the new run:
Build Status

@audrow
Copy link
Member

audrow commented Aug 14, 2020

Here's the full CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Copy link
Contributor

@Martin-Idel Martin-Idel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@audrow Thanks for taking a look. We're probably nearly there.

I don't have push rights to this repository, so I can't simply update this branch. I don't have a Windows machine right here to test, but the problem seems to be just symbol visibility (as always), so this should do the trick.

Also, it's necessary to include the new .hpp headers to get rid of warnings (that should fix mac CI).

@audrow
Copy link
Member

audrow commented Aug 17, 2020

Rerunning after applying changes:

  • macOS Build Status
  • Windows Build Status

@audrow audrow added the enhancement New feature or request label Aug 18, 2020
@Martin-Idel
Copy link
Contributor

Ouch, my bad. We have to put the macros to the header files, not the .cpp files. That should fix it. Sorry about that.

@audrow
Copy link
Member

audrow commented Aug 18, 2020

No worries, I should have caught it in reviewing your suggestions. Here's the new Windows run:

Windows Build Status

@audrow
Copy link
Member

audrow commented Aug 19, 2020

I'll run CI once more to make sure all OSs build:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Copy link
Member

@audrow audrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, after ros2/ros2#884 is merged in.

Maybe @mjcarroll wants to take a look before this is merged in.

@Martin-Idel
Copy link
Contributor

@ketatam ros2/ros2#884 has been merged, do you have some time rebasing this PR and seeing whether it builds? Otherwise I can try to do this over the holidays.

@vmanchal1
Copy link

Any updates on this? When can this be available to use?

@Martin-Idel
Copy link
Contributor

@mjcarroll @audrow

I tested this PR and it still seems to work. Since this is not my repository I cannot merge master into this PR (the conflict is trivial as it's only in the README).

So it should be enough to rebase onto master + new CI for this to get merged. Maybe we can make it happen :).

ketatam and others added 6 commits May 7, 2021 09:31
use image_transport in camera_display and image_display
use image_transport to get camera_info_topic
Signed-off-by: Audrow <audrow.nash@gmail.com>
Signed-off-by: Audrow Nash <audrow.nash@gmail.com>

Co-authored-by: Martin Idel <martin.idel@googlemail.com>
Signed-off-by: Audrow Nash <audrow.nash@gmail.com>

Co-authored-by: Martin Idel <martin.idel@googlemail.com>
Signed-off-by: Audrow Nash <audrow.nash@gmail.com>
@audrow audrow force-pushed the feature/reenable_image_transport branch from 3b2a554 to 9de7a97 Compare May 7, 2021 16:44
@audrow
Copy link
Member

audrow commented May 7, 2021

Thanks for the ping, @Martin-Idel. Here's CI after doing a rebase and fixing the merge conflict:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@mjcarroll mjcarroll merged commit 731f24d into ros2:ros2 May 7, 2021
@dwffls
Copy link

dwffls commented Dec 20, 2021

Could you show me what the steps would be to implement a compressed image to this visualizer?
Really want to write a PR for this but just don't know where to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Camera display makes unclear assumptions about camera info topic
6 participants