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

Display problem with gscam

asked 2014-04-02 03:19:10 -0600

RosFaceNoob gravatar image

updated 2014-04-02 04:01:17 -0600

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-04-02 03:51:57 -0600

demmeln gravatar image

updated 2014-04-02 04:03:46 -0600

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
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-04-02 03:19:10 -0600

Seen: 1,015 times

Last updated: Apr 02 '14