-
Notifications
You must be signed in to change notification settings - Fork 13
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
bandwidth is the same #10
Comments
The command that you are using looks wrong you need to remap the topic name not the name of the node. ros2 run image_transport_tutorials my_subscriber --ros-args -p image_transport:=compressed -r /image/compressed:=/camera/image/compressed or try image_view ros2 run image_view image_view --ros-args -p image_transport:=compressed -r /image/compressed:=/camera/image/compressed |
The tutorial doesn't actually support the "image_transport" parameter - since we never define a TransportHints - see #13 for a change that actually does this. The easiest way to confirm the transport is correct is to do a "node info" and see what topic is subscribed - with the changes in my PR, you get the compressed topic, instead of the regular "camera/image" topic (which is uncompressed):
You can also confirm bandwidth difference using the "topic bw" command, so the topics themselves are correct, the issue is that without TransportHints, we aren't subscribing to the correct topic:
|
Hi Thanks for your explaination. Do you mean that I do not need to set image_transport parameter? I tried "topic bw" and I got the following:
I believe that it means my publisher is working well. I also checked using "ros2 run rqt_image_view rqt_image_view", and I can successfully get original and compressed images. Then I tried the following comand to subscribe the video:
And I can get the original images. But if I use this command
I cannot receive any image. |
Remapping /camera/image to the compressed topic isn't going to work (the encoding is different) - the image_transport parameter is the right thing to do - but we need to merge #13 and then things will work (as the code exists right now, it doesn't actually support compressed transport to be selected). |
Thank you! |
Hi
Thank you so much for your tutorial.
I used the following commands to run the publisher and subscriber:
I can successfully get the video. However, there is no difference in bandwidth. The bandwidth is always around 25 MB/s.
Is there anything else I should do to get the compressed video? Or there is anything wrong I did/
Thanks in advance for any help!
The text was updated successfully, but these errors were encountered: