Skip to content

lerema/monocular-camera-genom3

Repository files navigation

MonocularCamera component

A GenoM module for monocular camera integration.

Ports

Frame (multiple out)

Data structure
  • struct ::or::sensor::frame Frame

    • struct ::or::time::ts ts

      • long sec

      • long nsec

    • boolean compressed

    • unsigned short height

    • unsigned short width

    • unsigned short bpp

    • sequence< octet > pixels

The image frame from monocular camera.


Intrinsics (out)

Data structure
  • struct ::or::sensor::intrinsics Intrinsics

    • struct ::or::sensor::calibration calib

      • float fx

      • float fy

      • float cx

      • float cy

      • float gamma

    • struct ::or::sensor::distortion disto

      • float k1

      • float k2

      • float k3

      • float p1

      • float p2

The intrinsics of the camera.


Extrinsics (out)

Data structure
  • struct ::or::sensor::extrinsics Extrinsics

    • struct ::or::sensor::translation trans

      • float tx

      • float ty

      • float tz

    • struct ::or::sensor::rotation rot

      • float roll

      • float pitch

      • float yaw

The extrinsics of the camera.


Services

start_camera (activity)

Throws
  • exception ::MonocularCamera::e_OUT_OF_MEM

    • short code

    • string<128> message

  • exception ::MonocularCamera::e_BAD_IMAGE_PORT

    • short code

    • string<128> message

  • exception ::MonocularCamera::e_BAD_CONFIG

    • short code

    • string<128> message

Context
  • In task publish (frequency 10.0 Hz)

Start the camera.


stop_camera (activity)

Throws
  • exception ::MonocularCamera::e_OUT_OF_MEM

    • short code

    • string<128> message

  • exception ::MonocularCamera::e_BAD_IMAGE_PORT

    • short code

    • string<128> message

  • exception ::MonocularCamera::e_BAD_CONFIG

    • short code

    • string<128> message

Context

Stop the camera.


set_debug (attribute)

Inputs
  • boolean debug (default "0") Enable debug (default: false)

Set the debug mode.


show_image_frames (attribute)

Inputs
  • boolean show_frames (default "1") Enable image frames (default: true)

Show image frames.


set_verbose_level (attribute)

Inputs
  • octet verbose_level (default "0") Verbose level

Set the verbose level.


set_device (attribute)

Inputs
  • string<128> device (default "/dev/video0") Device path

Set the device path.


set_intrinsics (attribute)

Inputs
  • struct ::or::sensor::intrinsics intrinsics: Intrinsics

    • struct ::or::sensor::calibration calib

      • float fx

      • float fy

      • float cx

      • float cy

      • float gamma

    • struct ::or::sensor::distortion disto

      • float k1

      • float k2

      • float k3

      • float p1

      • float p2

  • boolean publish_intrinsics (default "0") Publish intrinsics

Set the intrinsics for the camera.


set_extrinsics (attribute)

Inputs
  • struct ::or::sensor::extrinsics extrinsics: Extrinsics

    • struct ::or::sensor::translation trans

      • float tx

      • float ty

      • float tz

    • struct ::or::sensor::rotation rot

      • float roll

      • float pitch

      • float yaw

  • boolean publish_extrinsics (default "0") Publish extrinsics

Set the extrinsics for the camera.


stop_camera (attribute)

Inputs
  • boolean started (default "0") Stop the camera

Stop the camera.


set_resolution (function)

Inputs
  • short width (default "640") Image width

  • short height (default "480") Image height

Set the image resolution.


set_compression (function)

Inputs
  • short compression_percent (default "-1") Compression ration in percentage (0 - 100) (-1 for no compresstion)

Set the compression ratio.


pause_camera (function)

Throws
  • exception ::MonocularCamera::e_BAD_CONFIG

    • short code

    • string<128> message

Pause the camera.


stop_camera (function)

Throws
  • exception ::MonocularCamera::e_BAD_CONFIG

    • short code

    • string<128> message

Stop the camera.


resume_camera (function)

Throws
  • exception ::MonocularCamera::e_BAD_CONFIG

    • short code

    • string<128> message

Resume the camera.


Tasks

publish

Context
Throws
  • exception ::MonocularCamera::e_OUT_OF_MEM

    • short code

    • string<128> message

  • exception ::MonocularCamera::e_BAD_IMAGE_PORT

    • short code

    • string<128> message

Publish from Monocular Camera.


About

Monocular camera component for genom3 framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published