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

Displaying image from raspicam_node in RViz #90

Open
pitosalas opened this issue Nov 25, 2019 · 4 comments
Open

Displaying image from raspicam_node in RViz #90

pitosalas opened this issue Nov 25, 2019 · 4 comments

Comments

@pitosalas
Copy link

(this was also posted in answerrs.ros.org)

  • Turtlebot3 from Robotis
  • Ubuntu 18.04
  • ROS Melodic
  • Raspi Camera installed

I have the raspbery pi camera set up well enough so that when I run rqt_image_view I see the image. Oddly the topic is something like /raspicam_node/image/compressed_mouse_left . No idea what mouse_left means in this context.

Rostopic List shows:

/raspicam_node
/raspicam_node/camera_info
/raspicam_node/image/compressed
/raspicam_node/parameter_descriptions
/raspicam_node/parameter_updates

When I specify node=/raspicam_node/image I get the closest.
(Note that rqt_image shows the image fine and mentions a weird topic: "/raspicam_node/image/compressed_mouse_left" which doesn't work in Riz.)

The closest I get Rviz to work with the camera is when i specify topic raspicam_node/image.

Then in the RVIz box I see:

Camera:
Status: Warn
Image: No Image Received
Camera Info: received
Topic: OK

And the image area in RVIz is just black! What am I missing?

@cemoke
Copy link

cemoke commented Mar 17, 2020

I have exactly same issue regarding "Oddly the topic is something like /raspicam_node/image/compressed_mouse_left . No idea what mouse_left means in this context." however, I am not able to see the image published in rqt_image_viewer. I also have the same configuration but using my robot instead of turtlebot.

Ubuntu 18.04
ROS Melodic
Raspi Camera installed

@marcostrullato
Copy link

Same situation here...

@MoffKalast
Copy link
Contributor

From what I know RViz isn't capable of displaying CompressedImage topics. You should be able to view them using rqt_image_view, or change the boolean in the raspicam_node launch file to enable publishing raw images. Those should be viewable in RViz.

@nikodemj9
Copy link

RViz should be able to show the compressed topic, it just doesn't like when there is no raw topic.
You need to add "Image" display, fill the "Image Topic" parameter with "/raspicam_node/image" and after that change transport hint to "compressed". I believe that should work.

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

No branches or pull requests

5 participants