First time here? Check out the FAQ!


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

Display problem with gscam

asked Apr 2 '14

RosFaceNoob gravatar image

updated Apr 2 '14

Hi everybody,

I am trying to install gscam http://wiki.ros.org/gscam ans I have many problems . First, when I did the command rosrun gscam gscam I had the warning
"Camera calibration file .ros/camera_info/camera.yaml not found."
So I find a camera.yaml and add it. Now I have the warning
"[camera] does not match name ~ in file .ros/camera_info/camera.yaml"
I think I have to add the camera name in the file but I can't find it with lsusb. If someone knows how to find it, it will really help me.

And as it is only a warning, I think I still can run the command. I have something like :

and my webcam is turned on but when I tried to display it with "rosrun image_view image_view image:=/gscam/image_raw" a small blank window pops up, but without any picture or video from my camera.
So I did a "rostopic hz --window=1000 /gscam/image_raw" to see what is published, but there are no messages published by the node.

When I list the topic, I have all topics published by gscam .
/camera/camera_info
/camera/image_raw
/camera/image_raw/compressed
/camera/image_raw/compressed/parameter_descriptions
/camera/image_raw/compressed/parameter_updates
/camera/image_raw/compressedDepth
/camera/image_raw/compressedDepth/parameter_descriptions
/camera/image_raw/compressedDepth/parameter_updates
/camera/image_raw/theora
/camera/image_raw/theora/parameter_descriptions
/camera/image_raw/theora/parameter_updates
/rosout /rosout_agg

And "rosrun rqt_graph rqt_graph" shows me the /gscam_publisher node and the /image_view nodeb and they are not linked.

I don't know what to do. Can somedody help me please?
Thank you

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered Apr 2 '14

demmeln gravatar image

updated Apr 2 '14

You should not add some random camera.yaml file, but one that is the result from calibrating your camera. Nevertheless the publishing of images should still work, even if the calibration parameters are likely quite wrong.

Start the driver, and execute rostopic list in another terminal. Edit your question and include the exact output of that command.

EDIT:

From the output you can see that the topic names of image view and gscam do not match. You should run image_view with the following arguments:

rosrun image_view image_view image:=/camera/image_raw
Preview: (hide)

Question Tools

1 follower

Stats

Asked: Apr 2 '14

Seen: 1,015 times

Last updated: Apr 02 '14