Ticket #189 (closed defect: invalid)

Opened 7 years ago

Last modified 7 years ago

camera configs in yaml file not working

Reported by: fnolden Owned by: tneumann
Priority: major Milestone: GO2013
Component: Carologistics Version:
Keywords: Cc:
Git Branch:

Description

the camera configuration strings in .yaml file for fawkes plugins seem to be ignored.

camera: v4l2:omni:device=/dev/video0:size=320x240:white_balance_temperature_auto=0:exposure_auto=1:exposure_absolute=305

Change History

comment:1 Changed 7 years ago by jrothe

I had the case today, that there was a config file called robotino.yaml (or something similar, i cant remember exactly right now, found it with a grep of this string) in which this weird omnivision string was set.
But it should be set in omnivision.yaml!

I don't know why this file suddenly existed but because of that there were two values for /hardware/robotino/omnivision/cam....

Just delete the strings for omnivision in this file and it should work

Hope this helps

comment:2 Changed 7 years ago by tim

And where did you get the string from? The documentation of V4L2Camera states:

#cpp
/** Constructor.
 * Initialize camera with parameters from camera argument parser.
 * Supported arguments:
 * *Required:
 * - device=DEV, device file, for example /dev/video0 (required)
 * *Optional:
 * - read_method=METHOD, preferred read method
 *    READ: read()
 *    MMAP: memory mapping
 *    UPTR: user pointer
 * - format=FOURCC, preferred format
 * - size=WIDTHxHEIGHT, preferred image size
 * - switch_u_v=true/false, switch U and V channels
 * - fps=FPS, frames per second
 * - aec=true/false, Auto Exposition enabled [warning: only valid on nao]
 * - awb=true/false, Auto White Balance enabled
 * - agc=true/false, Auto Gain enabled
 * - h_flip=true/false, Horizontal mirror
 * - v_flip=true/false, Vertical mirror
 * - brightness=BRIGHT, Brightness [0-255] (def. 128)
 * - contrast=CONTR, Contrast [0-127] (def. 64)
 * - saturation=SAT, Saturation [0-256] (def. 128)
 * - hue=HUE, Hue [-180-180] (def. 0)
 * - red_balance=RB, Red Balance [0-255] (def. 128)
 * - blue_balance=BB, Blue Balance [0-255] (def. 128)
 * - exposure=EXP, Exposure [0-65535] (def. 60)
 * - gain=GAIN, Gain [0-255] (def. 0)
 * - lens_x=CORR, Lens Correction X [0-255] (def. 0)
 * - lens_y=CORR, Lens Correction Y [0-255] (def. 0)
 * @param cap camera argument parser
 */

Most of the parameters you mention are not supported.

comment:3 Changed 7 years ago by tim

  • Status changed from new to closed
  • Resolution set to invalid

Fixed, wrong parameters were set.

Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Subscriber, Participant

  • Fawkes Trac List(Always)
  • Flo(Reporter)
  • Johannes Rothe(Participant)
  • Tim Niemueller(Participant)