Documentation ¶
Overview ¶
Package jetsoncamera contains information about the daughterboards and camera modules that are supported on jetson platforms.
Index ¶
Constants ¶
const ( // OrinAGX is the name of the Jetson Orin AGX development kit. OrinAGX = "Jetson AGX Orin" // Unknown is the default value for unknown OS attributes. Unknown = "unknown" // ECAM https://www.e-consystems.com/nvidia-cameras/jetson-agx-orin-cameras/full-hd-ar0234-color-global-shutter-camera.asp ECAM = "e-CAM20_CUOAGX" // AR0234 https://www.e-consystems.com/camera-modules/ar0234-global-shutter-camera-module.asp AR0234 = "AR0234CS" )
Variables ¶
This section is empty.
Functions ¶
func DetectError ¶
func DetectError(osInfo OSInformation, daughterboardName, driverName string) error
DetectError checks daughterboard and camera setup to determine our best guess of what is wrong with an unsuccessful camera open
func ValidateSetup ¶
ValidateSetup wraps an error from NewWebcamSource with a more helpful message
Types ¶
type CameraInformation ¶
type CameraInformation struct { // map of daughterboard name to I2C bus names Daughterboards map[string][]string // e.g. "i2c-30", "i2c-31" // map of camera product name to object-file camera driver Modules map[string]string // e.g. "ar0234.ko" }
CameraInformation contains information about the daughterboards and camera modules that are supported.
type OSInformation ¶
type OSInformation struct { Name string // e.g. "linux" Arch string // e.g. "arm64" Kernel string // e.g. "4.9.140-tegra" Device string // e.g. "NVIDIA Jetson AGX Xavier" }
OSInformation contains information about the OS that the camera is running on.
func DetectOSInformation ¶
func DetectOSInformation() (OSInformation, error)
DetectOSInformation pulls relevant OS attributes as an OSInformation struct Kernel and Device will be "unknown" if unable to retrieve info from the filesystem returns an error if kernel version or device name is unavailable