Skip to content

lerema/camviz-genom3

Repository files navigation

This is a pre-release version of the original work for GENOM-VISION project. The work is available at [redmine.laas.fr](https://redmine.laas.fr/projects/genom-vision/repository/camviz-genom3) = camviz component martin.jacquet@laas.fr 1.0 :toc: left

Ports

frame (multiple in)

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


pixel (multiple in)

Data structure
  • struct ::or::sensor::pixel pixel

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

      • long sec

      • long nsec

    • optional< struct ::or::sensor::pix_s > pix

      • unsigned short x

      • unsigned short y


Services

add_camera (activity)

Inputs
  • string<64> port_name Frame input subport

Throws
  • exception ::camviz::e_sys

    • short code

    • string<64> what

Context

Starts the monitoring of a given camera frame stream.


show (attribute)

Inputs
  • float ratio (default "1") Ratio of image display

Throws
  • exception ::camviz::e_sys

    • short code

    • string<64> what

Set display ratio. Set to 0 to disable display.


record (attribute)

Inputs
  • string<64> prefix Prefix of recording files

Set recording prefix ratio.


stop_rec (function)

Stops the recording of videos.


add_pixel_display (activity)

Inputs
  • string<64> pixel_name Name of the pixel input port

  • string<64> cam_name Name of camera for the display

  • sequence< octet, 3 > color Color of pixel to display (RGB)

    • octet [0] (default "255")

    • octet [1] (default "0")

    • octet [2] (default "0")

Throws
  • exception ::camviz::e_sys

    • short code

    • string<64> what

Context
  • In task main (frequency 25.0 Hz)

Add a subport to the pixels subport, in order to display it in the frame.


remove_pixel_display (function)

Inputs
  • string<64> pixel_name Name of the pixel input port

  • string<64> cam_name Name of camera for the display

Throws
  • exception ::camviz::e_sys

    • short code

    • string<64> what

Remove a pixel to the list of pixels to display in the frame.


set_pix_size (attribute)

Inputs
  • unsigned short pix_size (default "3") (Positive) size of displayed pixel (radius of dot)


set_orientation (function)

Inputs
  • string<64> cam_name Name of camera for the orientation

  • unsigned short orientation (default "0") 0: 0°; 1: 90°; 2: 180°; 3: 270°

Throws
  • exception ::camviz::e_sys

    • short code

    • string<64> what

Set the rotation (clockwise) to apply to image before display.


stop (function)

Stops current running monitoring activities


Tasks

main

Context
  • Frequency 25.0 Hz

Throws
  • exception ::camviz::e_sys

    • short code

    • string<64> what


About

Genom3 component for Camera Plugins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published