humotion / cfg / humotion.cfg @ b6e7118f
History | View | Annotate | Download (1.978 KB)
1 | b6e7118f | sschulz | #!/usr/bin/env python |
---|---|---|---|
2 | PACKAGE = "humotion" |
||
3 | from dynamic_reconfigure.parameter_generator_catkin import * |
||
4 | |||
5 | gen = ParameterGenerator() |
||
6 | |||
7 | group = gen.add_group("My Group") |
||
8 | group.add("my_group_param", int_t, 0, "An int within My Group", 0) |
||
9 | |||
10 | #timing_mode_enum = gen.enum([ |
||
11 | # gen.const("free_running", int_t, 0, "camera acquires images at a maximum possible framerate"), |
||
12 | # gen.const("frame_rate", int_t, 1, "please refer to xiAPI Frame Rate Control support page")], "enum to configure timing mode") |
||
13 | #gen.add("acq_timing_mode", int_t, 0, "A size parameter which is edited via an enum", 1, 0, 3, edit_method=timing_mode_enum)###### |
||
14 | # |
||
15 | #gen.add("framerate", double_t, 0, "Defines frames per second of sensor. see also acq_timint_mode", 30, 1.0, 200.0) |
||
16 | # |
||
17 | #gen.add("gain", double_t, 0, "Gain in dB", 0, -1.5, 6) |
||
18 | #gen.add("exposure", double_t, 0, "Exposure time in us", 26, 26, 1e+04) |
||
19 | #gen.add("aeag", bool_t, 0, "Automatic exposure/gain", False) |
||
20 | #gen.add("aeag_roi_offset_x", int_t, 0, "Automatic exposure/gain ROI offset X", 0, 0, 2040) |
||
21 | #gen.add("aeag_roi_offset_y", int_t, 0, "Automatic exposure/gain ROI offset Y", 0, 0, 1080) |
||
22 | #gen.add("aeag_roi_width", int_t, 0, "Automatic exposure/gain ROI Width", 2040, 0, 2040) |
||
23 | #gen.add("aeag_roi_height", int_t, 0, "Automatic exposure/gain ROI Height", 1080, 0, 1080) |
||
24 | #gen.add("bpc", bool_t, 0, "Correction of bad pixels", False) |
||
25 | #gen.add("auto_wb", bool_t, 0, "Automatic white balance", False) |
||
26 | #gen.add("width", int_t, 0, "Width of the Image provided by the device (in pixels)", 2040, 16, 2040) |
||
27 | #gen.add("height", int_t, 0, "Height of the Image provided by the device (in pixels)", 1080, 2, 1080) |
||
28 | #gen.add("offsetX", int_t, 0, "Horizontal offset from the origin to the area of interest (in pixels)", 0, 0, 2040) |
||
29 | ##gen.add("offsetY", int_t, 0, "Vertical offset from the origin to the area of interest (in pixels)", 0, 0, 1080) |
||
30 | # |
||
31 | #gen.add("recent_frame", bool_t, 0, "Retrieve the most recent frame instead of the next in buffer", False); |
||
32 | |||
33 | exit(gen.generate(PACKAGE, "humotion", "humotion")) |