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

Camera Display is not working [closed]

asked 2017-04-26 12:30:23 -0500

frizzle gravatar image

Hi everyone,

I know this question has been asked quite a few times, but none of the answers seemed to help me.
I have quite a few bagfiles containing images. Unfortunately, the CameraInfo message wasn't recorded, so I had to write a subscriber to the image and then a publisher, which publishes the image and the camera info. All is fine, I can rostopic echo both topics and they are published fine. But unfortunately, I still can't see it in rviz. For camera info it says No CameraInfo received on [/camera/camera_info]. Topic may not exist., which is exactly my camera info topic, that is being published. And for the image it says No image received even though I can clearly see it using an image display.
In my publisher I'm using the image_transport and camera_info_manager and in my callback function I do:

ci->header.stamp = msg->header.stamp;
ci->header.frame_id = msg->header.frame_id;
image_pub.public(msg, ci);

so they should be sychronized, right?
Any idea how to solve this is highly appreciated!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by frizzle
close date 2017-05-05 10:49:53.123820

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-05-05 10:46:33 -0500

frizzle gravatar image

Turns out I had to use the same frame id for the camera and camera info as for the the global fixed frame in rviz. I stumbled upon the answer when reading through this question.
Maybe it helps someone.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-04-26 12:30:23 -0500

Seen: 918 times

Last updated: May 05 '17