- I would suggest following the [[hookup guide](https://learn.sparkfun.com/tutorials/assembly-guide-for-sparkfun-jetbot-ai-kit-v20).
- When you get to the section called **Examples**, use one of the examples that utilizes the camera... like the teleoperation or collision_avoidance examples.
Thanks @Santa_Impersonator, I started with the install guide, worked through motor control example, then teleoperation example is where I discovered cameras are not detected, unable to create Camera instance:
RuntimeError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/jetbot-0.3.0-py3.6.egg/jetbot/camera.py in __init__(self, *args, **kwargs)
29 if not re:
---> 30 raise RuntimeError('Could not read image from camera.')
31
RuntimeError: Could not read image from camera.
During handling of the above exception, another exception occurred:
RuntimeError Traceback (most recent call last)
<ipython-input-4-87257c35b9ce> in <module>
1 from jetbot import Camera
2
----> 3 camera = Camera.instance()
/usr/local/lib/python3.6/dist-packages/traitlets/config/configurable.py in instance(cls, *args, **kwargs)
508 # Create and save the instance
509 if cls._instance is None:
--> 510 inst = cls(*args, **kwargs)
511 # Now make sure that the instance will also be returned by
512 # parent classes' _instance attribute.
/usr/local/lib/python3.6/dist-packages/jetbot-0.3.0-py3.6.egg/jetbot/camera.py in __init__(self, *args, **kwargs)
35 self.stop()
36 raise RuntimeError(
---> 37 'Could not initialize camera. Please see error trace.')
38
39 atexit.register(self.stop)
RuntimeError: Could not initialize camera. Please see error trace.
In all cases, error messages allude to cameras not being detected. Tried reconnecting ribbon cable, other CSI connector, reboot, etc. - no change in behavior.
Unfortunately, I’ve never ran into this issue before… so, I don’t have much advice on ways to test the hardware. You may want to try the Nvidia forum, as well (they will have more expertise on the camera and hardware… [example). These guides look like a promising place start to testing the hardware:
Thanks @Santa_Impersonator and @TS-Russell. USB camera does work. I only have one MIPI camera, the Leopard Imaging IMX219, don’t have access to another one to try.
@Santa_Impersonator - thanks for the links, I’ve been through them already, when I run:
$ nvgstcapture-1.0
it doesn’t work, mentions at the bottom of console output:
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:521 No cameras available
In dmesg, these messages seem to indicate that the camera is dead, there is no i2c communication from Jetson: