astuff / avt_vimba_camera

ROS1/2 Driver for AVT cameras using VIMBA SDK.
Other
21 stars 43 forks source link

why I only get the grayscale image? #20

Closed yulan0215 closed 2 years ago

yulan0215 commented 4 years ago

I have a camera: avt-camera GT6600C(Mono camera). When I ran avt_vimba_camera when I ran mono_camera_nodelet.launch in this path, it is grayscale image even if I ran ROSRUN_NAMESPACE=camera rosrun image_proc image_proc, it made no sense. Can u tell me what is the problem?

yulan0215 commented 4 years ago

I would like to ask one more question: I logged the launch file: mono_camera.launch and it showed the RGB image but the problem is that it can only show half view of the image. Can anyone give me the idea how to solve this problem? I used the camera is GT6600C anf it is the mono camera. Thanks!

icolwell-as commented 4 years ago
  1. Where are you seeing the grayscale image? in RViz only, or is it also grayscale when you run rosrun rqt_image_view rqt_image_view?
  2. What version of ROS are you running?

I would like to ask one more question: I logged the launch file: mono_camera.launch and it showed the RGB image but the problem is that it can only show half view of the image. Can anyone give me the idea how to solve this problem? I used the camera is GT6600C anf it is the mono camera. Thanks!

What do you mean you "logged" the image? saved it in a rosbag?

yulan0215 commented 4 years ago
  1. Where are you seeing the grayscale image? in RViz only, or is it also grayscale when you run rosrun rqt_image_view rqt_image_view?
  2. What version of ROS are you running?

I would like to ask one more question: I logged the launch file: mono_camera.launch and it showed the RGB image but the problem is that it can only show half view of the image. Can anyone give me the idea how to solve this problem? I used the camera is GT6600C anf it is the mono camera. Thanks!

What do you mean you "logged" the image? saved it in a rosbag?

I ran the version ROS melodic and both Rviz and rqt_image_view I could not see the RGB. But when I ran the mono_camera.launch file it can only show half view but it is colorful image. Do you know what is the problem? Thank you very much!

yulan0215 commented 4 years ago
  1. Where are you seeing the grayscale image? in RViz only, or is it also grayscale when you run rosrun rqt_image_view rqt_image_view?
  2. What version of ROS are you running?

I would like to ask one more question: I logged the launch file: mono_camera.launch and it showed the RGB image but the problem is that it can only show half view of the image. Can anyone give me the idea how to solve this problem? I used the camera is GT6600C anf it is the mono camera. Thanks!

What do you mean you "logged" the image? saved it in a rosbag?

I ran the version ROS melodic and both Rviz and rqt_image_view I could not see the RGB. But when I ran the mono_camera.launch file it can only show half view but it is colorful image. Do you know what is the problem? Thank you very much!

But when I launch the nodelet.launch file, it shows the full VoF, but it is grayscale image.

icolwell-as commented 4 years ago

I recommend double-checking all the parameters in the launch file are appropriate for your camera. I can't find a "GT6600C" Camera on the AVT product page, but the 6400 has the following specs: 6480 (H) × 4860 (V) resolution 3.82 fps max frame rate BayerRG8, BayerRG12, BayerRG12Packed formats.

Make sure the launch file matches those settings (but maybe pick a framerate of 1 Hz at first). Also maybe try to set the x_offset and y_offset to zero, that's the only difference I can see between the "mono_camera.launch" and "mono_camera_nodelet.launch" files.

yulan0215 commented 4 years ago

I recommend double-checking all the parameters in the launch file are appropriate for your camera. I can't find a "GT6600C" Camera on the AVT product page, but the 6400 has the following specs: 6480 (H) × 4860 (V) resolution 3.82 fps max frame rate BayerRG8, BayerRG12, BayerRG12Packed formats.

Make sure the launch file matches those settings (but maybe pick a framerate of 1 Hz at first). Also maybe try to set the x_offset and y_offset to zero, that's the only difference I can see between the "mono_camera.launch" and "mono_camera_nodelet.launch" files.

I modified some parameters but it made no sense, I did the calibration in ROS and I got the result: my camera was regarded as the narrow stereo camera, I guess that is the problem why I can only get half of the image view. I used the stereo camera launch file but the problem is: it could not get the camera. Could you please give me some ideas? Thank you very much~

yulan0215 commented 4 years ago

I recommend double-checking all the parameters in the launch file are appropriate for your camera. I can't find a "GT6600C" Camera on the AVT product page, but the 6400 has the following specs: 6480 (H) × 4860 (V) resolution 3.82 fps max frame rate BayerRG8, BayerRG12, BayerRG12Packed formats.

Make sure the launch file matches those settings (but maybe pick a framerate of 1 Hz at first). Also maybe try to set the x_offset and y_offset to zero, that's the only difference I can see between the "mono_camera.launch" and "mono_camera_nodelet.launch" files.

I am wondering whether it is the problem of the frame id? I checked it is : In this case, I guess it may be the problem but I don not know how to modify....Could you give me some ideas? Thank you very much

icolwell-as commented 4 years ago

I used the stereo camera launch file but the problem is: it could not get the camera.

Do you have a single camera or two cameras in a stereo camera setup? If you are just trying to get images from a single camera use the "mono_camera.launch" file.

yulan0215 commented 4 years ago

I used the stereo camera launch file but the problem is: it could not get the camera.

Do you have a single camera or two cameras in a stereo camera setup? If you are just trying to get images from a single camera use the "mono_camera.launch" file. I have one camera, but the problem is that when I logged the camera via "mono_camera.launch" file, it can only showed the left side view, and when I did the calibration, it showed my camera is the narrow stereo camera, I don not know how to solve it , do you have any ideas? I found that the frame id of the mono_camera.launch file is the left_optical, I don not know whether it is this problem?

yulan0215 commented 4 years ago

I used the stereo camera launch file but the problem is: it could not get the camera.

Do you have a single camera or two cameras in a stereo camera setup? If you are just trying to get images from a single camera use the "mono_camera.launch" file.

When I launched the launch.file it showed: [ WARN] [1595356174.925484315]: The input topic '/camera/image_raw' is not yet advertised [ WARN] [1595356174.928610185]: The input topic '/camera/camera_info' is not yet advertised [ WARN] [1595356178.312691631]: [/camera]: Feature PixelFormat is available now. [ WARN] [1595356178.354878434]: [/camera]: Could not get feature IrisAutoTarget Error: Not found. [ WARN] [1595356178.355536879]: [/camera]: Could not get feature IrisMode Error: Not found. [ WARN] [1595356178.356593402]: [/camera]: Could not get feature IrisVideoLevelMax Error: Not found. [ WARN] [1595356178.356977521]: [/camera]: Could not get feature IrisVideoLevelMin Error: Not found. [ WARN] [1595356178.370544140]: Camera calibration file /opt/ros/melodic/share/avt_vimba_camera/calibrations/calibration_50-0503343290.yaml not found.

yulan0215 commented 4 years ago

I used the stereo camera launch file but the problem is: it could not get the camera.

Do you have a single camera or two cameras in a stereo camera setup? If you are just trying to get images from a single camera use the "mono_camera.launch" file.

The frame_id in this launch file is :left_optical(default).

icolwell-as commented 2 years ago

Closing due to age. @yulan0215, please re-open if you are still having difficulty.