jetsoncamera

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

README

Jetson Camera

Orin AGX Setup

  • Follow instructions to install E-Con Systems e-CAM20_CUOAGX AR0234 driver.
  • Ensure driver has successfully installed. dmesg | grep ar0234 should return a log that looks like ar0234 Detected Ar0234 sensor R01_RC1.
  • Connect AR0234 camera module and daughterboard to J509 port located at the bottom of the Developer Kit.

Documentation

Overview

Package jetsoncamera contains information about the daughterboards and camera modules that are supported on jetson platforms.

Index

Constants

View Source
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

func ValidateSetup(deviceName, daughterboardName, driverName string, err error) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL