Jetbotでのカメラ動作
前提
NVIDIAさんのJetbotのセットアップ中に進む戻る曲がるなどの動作は確認できたのですが、カメラのみがエラーやタイムアウトなどで動作しないため、その原因を教えて頂きたいです
発生している問題・エラーメッセージ
python
1---------------------------------------------------------------------------2RuntimeError Traceback (most recent call last)3/usr/local/lib/python3.6/dist-packages/jetbot-0.4.3-py3.6.egg/jetbot/camera/opencv_gst_camera.py in __init__(self, *args, **kwargs)4 29 if not re:5---> 30 raise RuntimeError('Could not read image from camera.')6 31 7 8RuntimeError: Could not read image from camera.9 10During handling of the above exception, another exception occurred:11 12RuntimeError Traceback (most recent call last)13<ipython-input-2-2af115b26558> in <module>14 4 from jetbot import Camera, bgr8_to_jpeg 15 5 16----> 6 camera = Camera.instance(width=224, height=224)17 7 18 8 image = widgets.Image(format='jpeg', width=224, height=224) # this width and height doesn't necessarily have to match the camera19 20/usr/local/lib/python3.6/dist-packages/jetbot-0.4.3-py3.6.egg/jetbot/camera/opencv_gst_camera.py in instance(*args, **kwargs)21 70 @staticmethod22 71 def instance(*args, **kwargs):23---> 72 return OpenCvGstCamera(*args, **kwargs)24 25/usr/local/lib/python3.6/dist-packages/jetbot-0.4.3-py3.6.egg/jetbot/camera/opencv_gst_camera.py in __init__(self, *args, **kwargs)26 35 self.stop()27 36 raise RuntimeError(28---> 37 'Could not initialize camera. Please see error trace.')29 38 30 39 atexit.register(self.stop)31 32RuntimeError: Could not initialize camera. Please see error trace.
該当のソースコード
ソースコードは以下のURL(NVIDIAさん公式で出している)
エラー部分は上記の3,20,25行目に記載のファイルにあります
試したこと
補足情報(セットアップ手順・使用機材など)
セットアップ手順は以下のURLに倣い行いました(環境もUbuntuのJetson nanoをホストアドレスを用いてJupyter Labで実行)
2つめのURLはExample 3 - Collision avoidanceの手順が該当
使用機材
- waveshareさんの2006年のJetbotキット
- NVIDIAさんのJetson Nano Developer Kit
恐らく、2006年産で古すぎるため、カメラのみソースコードが違うのでは?と考えています。
また、terminalから何かドライバやモジュールが必要なのでは?とも予想を立てています。
ご回答よろしくお願いいたします

0 コメント