ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

do rviz need urdf file for viewing camera feed?

asked 2016-01-24 20:04:33 -0500

Azharudeen gravatar image

I am trying to create a stereo camera, I know that the feed can be viewed in rviz using image display type.But other than that i want to know how can we succesfully view camera feed using camera display type

  • i was successful in calibrating and publishing the image_info topic
  • but when try to view the camera using camera type i get warning status saying no image was received but i successfully gets the image via the image display type here i have attached image
  • so my suspicion is if I am missing something on the Fixed_frame or target_frame or something like that
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-01-24 21:53:51 -0500

ahendrix gravatar image

The Image display shows a raw image, without aligning it to any of the other sensor data in rviz, so it doesn't require any of the tf frames to be correct.

The Camera display shows the image data overlaid with the other data that is visible in rviz, which means that it requires the tf transformations from your fixed_frame to the frame listed in the image message header to be correct. (If you check the terminal where you ran rviz, you will likely see TF errors informing you about this).

If you don't have any other sensors or tf frames set up, you can set your fixed_frame to be the same as your camera frame, and then you should be able to see an image in the Camera view.

(Setting up TF is a topic unto itself. You can use a URDF and robot_state_publisher to publish the TF tree for your robot, or you can use the TF static transform publisher for simpler robots)

edit flag offensive delete link more


thanks ahendix i got the image once i have published tf and then seting the header.frame_id of both image and image_info to the world frame

Azharudeen gravatar image Azharudeen  ( 2016-01-24 22:32:54 -0500 )edit

Question Tools

1 follower


Asked: 2016-01-24 20:04:33 -0500

Seen: 573 times

Last updated: Jan 24 '16