質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

VMware

VMwareとは、 ハードウェアで動作するOS上で仮想マシンを作成、実行するソフトウェアです。 Windows上でUNIX系OSを動作させたり、他のOS上で別の仮想OSを動作することが可能です。

Q&A

0回答

2564閲覧

ROS(melodic)でカメラが映らない

Kazumori102

総合スコア45

Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

VMware

VMwareとは、 ハードウェアで動作するOS上で仮想マシンを作成、実行するソフトウェアです。 Windows上でUNIX系OSを動作させたり、他のOS上で別の仮想OSを動作することが可能です。

0グッド

0クリップ

投稿2019/09/18 08:21

編集2020/02/22 20:45

前提・実現したいこと

詳説ROSロボットプログラミングを参考にROSについて学習中で、5.2.4 rqt_image_view の項をやってカメラの映像を見てみようとしています。

他の参考
https://qiita.com/srs/items/416aa78f2c679ddb7c52
https://qiita.com/proton_lattice/items/aa805b28700575ba5ed3

発生している問題・エラーメッセージ

rqtを見てみても/image_rawには画像が出ません。トピックは出ているのですが。
UVC_camera

[ INFO] [1568793389.909100288]: using default calibration URL [ INFO] [1568793389.910021566]: camera calibration URL: file:///home/<username>/.ros/camera_info/camera.yaml [ INFO] [1568793389.910183304]: Unable to open camera calibration file [/home/<username>/.ros/camera_info/camera.yaml] [ WARN] [1568793389.910300627]: Camera calibration file /home/<username>/.ros/camera_info/camera.yaml not found. opening /dev/video0 pixfmt 0 = 'YUYV' desc = 'YUYV 4:2:2' discrete: 1280x720: 1/8 discrete: 800x600: 1/15 1/8 discrete: 640x480: 1/30 1/20 1/15 1/8 discrete: 640x360: 1/30 1/20 1/15 1/8 discrete: 352x288: 1/30 1/20 1/15 1/8 discrete: 320x240: 1/30 1/20 1/15 1/8 discrete: 176x144: 1/30 1/20 1/15 1/8 discrete: 160x120: 1/30 1/20 1/15 1/8 pixfmt 1 = 'MJPG' desc = 'Motion-JPEG' discrete: 1280x960: 1/12 discrete: 1280x720: 1/30 1/24 1/20 1/16 discrete: 800x600: 1/30 1/24 1/20 1/16 discrete: 640x480: 1/30 1/24 1/20 1/16 discrete: 640x360: 1/30 1/20 1/15 1/8 discrete: 352x288: 1/30 1/24 1/20 1/15 discrete: 320x240: 1/30 1/20 1/15 1/8 discrete: 176x144: 1/30 1/20 1/15 1/8 discrete: 160x120: 1/30 1/24 1/20 1/16 int (Brightness, 0, id = 980900): -255 to 255 (1) int (Contrast, 0, id = 980901): 0 to 30 (1) int (Saturation, 0, id = 980902): 0 to 127 (1) int (Hue, 0, id = 980903): -16000 to 16000 (1) bool (White Balance Temperature, Auto, 0, id = 98090c): 0 to 1 (1) int (Gamma, 0, id = 980910): 20 to 250 (1) menu (Power Line Frequency, 0, id = 980918): 0 to 2 (1) 0: Disabled 1: 50 Hz 2: 60 Hz int (White Balance Temperature, 16, id = 98091a): 2500 to 7000 (1) int (Sharpness, 0, id = 98091b): 0 to 64 (1) int (Backlight Compensation, 0, id = 98091c): 0 to 2 (1) select timeout in grab select timeout in grab ~以下ずっと「select timeout in grab」~

そしていずれ停止してしまいます。

/camera_info /image_raw /image_raw/compressed /image_raw/compressed/parameter_descriptions /image_raw/compressed/parameter_updates /image_raw/compressedDepth /image_raw/compressedDepth/parameter_descriptions /image_raw/compressedDepth/parameter_updates /image_raw/theora /image_raw/theora/parameter_descriptions /image_raw/theora/parameter_updates /rosout /rosout_agg

image_view image_view image:=/image_raw でも映りませんでした。

[ INFO] [1568793687.887652756]: Using transport "raw" (image_raw:2530): GLib-GObject-CRITICAL **: 17:01:28.289: g_object_unref: assertion 'G_IS_OBJECT (object)' failed (image_raw:2530): GLib-GObject-CRITICAL **: 17:01:31.689: g_object_unref: assertion 'G_IS_OBJECT (object)' failed (image_raw:2530): GLib-GObject-CRITICAL **: 17:01:31.787: g_object_unref: assertion 'G_IS_OBJECT (object)' failed (image_raw:2530): GLib-GObject-CRITICAL **: 17:01:31.887: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

次に検索すると、melodicからはUVC_camereはlibuvc_cameraになったとのことで、やってみましたが、ダメ。

[ INFO] [1568794261.154347953]: Opening camera with vendor=0x0, product=0x0, serial="", index=0 unsupported descriptor subtype VS_COLORFORMAT unsupported descriptor subtype VS_COLORFORMAT attempt to claim already-claimed interface 1 [ WARN] [1568794261.353302793]: Unable to set scanning_mode to 1 [ WARN] [1568794261.372469533]: Unable to set auto_exposure to 8 [ WARN] [1568794261.391401888]: Unable to set auto_exposure_priority to 0 [ WARN] [1568794261.410521375]: Unable to set exposure_absolute to 1 [ WARN] [1568794261.428388115]: Unable to set auto_focus to 1 [ WARN] [1568794261.448439861]: Unable to set focus_absolute to 32707 [ WARN] [1568794261.467470024]: Unable to set pantilt to 648000, 32707

もちろんimage_view image_view image:=/image_raw でも映りませんでした。

usb_camera もダメ。

[ INFO] [1568794727.633194427]: using default calibration URL [ INFO] [1568794727.634216324]: camera calibration URL: file:///home/<username>/.ros/camera_info/head_camera.yaml [ INFO] [1568794727.634361061]: Unable to open camera calibration file [/home/<username>/.ros/camera_info/head_camera.yaml] [ WARN] [1568794727.634445342]: Camera calibration file /home/<username>/.ros/camera_info/head_camera.yaml not found. [ INFO] [1568794727.634529056]: Starting 'head_camera' (/dev/video0) at 640x480 via mmap (mjpeg) at 30 FPS [ WARN] [1568794727.803228690]: unknown control 'focus_auto' [mjpeg @ 0x556d0a293d00] Found EOI before any SOF, ignoring [mjpeg @ 0x556d0a293d00] No JPEG data found in image [ERROR] [1568794728.915511835]: Error while decoding frame. [mjpeg @ 0x556d0a293d00] overread 8 [mjpeg @ 0x556d0a293d00] EOI missing, emulating [swscaler @ 0x556d0a2a1360] deprecated pixel format used, make sure you did set range correctly [mjpeg @ 0x556d0a293d00] overread 8 [mjpeg @ 0x556d0a293d00] EOI missing, emulating ・・・

何がいけないんでしょう。VMware toolsはしっかり入れているはずなのですが。

補足情報(FW/ツールのバージョンなど)

OS:win10x64 Windows_NT x64 10.0.17763
Ubuntu 18.04.3 LTS
VMware Workstation 15 Player
ROS melodic
WebCam iBUFFALO BSWHD06MBK

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問