-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstereo.orogen
68 lines (54 loc) · 2.68 KB
/
stereo.orogen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name "stereo"
# Optionally declare the version number
# version "0.1"
# If new data types need to be defined, they have to be put in a separate C++
# header, and this header will be loaded here
# import_types_from "denseStereoTypes.hpp"
# If the component/deployments use data types that are defined in other oroGen
# projects, these projects should be imported there as well.
using_library "opencv", :typekit => false
using_library "stereo"
import_types_from "base"
import_types_from "stereo/dense_stereo_types.h"
import_types_from "stereo/sparse_stereo_types.h"
import_types_from "frame_helper/Calibration.h"
task_context "Task" do
needs_configuration
# A configuration property (here, a std::string). Its value can be retrieved
# in the C++ code with # _config_value.get() and _config_value.set(new_value).
property("stereoCameraCalibration", "/frame_helper/StereoCalibration").
doc "calibration parameters for stereo camera setup"
property("libElas_conf", "/stereo/libElasConfiguration").
doc "configuration values for libElas"
property("gaussian_kernel", "/int", 0).
doc "gaussian kernel for dense stereo pre-processing."
property("sparse_config", "/stereo/FeatureConfiguration").
doc "configuration for sparse features."
property("organized_output_point_cloud", "bool", false).
doc "True for Organized output point cloud. False otherwise."
input_port "left_frame", ro_ptr('base::samples::frame::Frame')
input_port "right_frame", ro_ptr('base::samples::frame::Frame')
property( "image_rectified", "bool", false ).
doc( "if set to true, the input images are assumed to already be rectified." )
property( "image_rotated", "bool", false ).
doc( "if set to true, the input images are assumed to be rotated by 180 degrees." )
property( "image_scaling_factor", "double", 1.0).
doc( "down- or upscale input images by this factor." )
output_port("sparse_debug", "/base/samples/frame/Frame").
doc "debug frame for the sparse processing library."
output_port("disparity_frame", "/base/samples/frame/Frame").
doc "disparity image for the left input camera. Mainly for debug purposes."
output_port("distance_frame", "/base/samples/DistanceImage").
doc "distance image for the left camera"
output_port("stereo_features", "/stereo/StereoFeatureArray").
doc "provides an array of 3d points with associated feature descriptors."
output_port("point_cloud", "/base/samples/Pointcloud").
doc "Colored 3d point cloud of the dense stereo reconstruction."
port_driven
end
# Declares a deployment, i.e. an actual executable that contains various tasks.
deployment "stereo_test" do
# Declares it
task("stereo", "Task")
add_default_logger
end