24 #ifndef __INTERFACES_OPENCVSTEREOPARAMSINTERFACE_H_ 25 #define __INTERFACES_OPENCVSTEREOPARAMSINTERFACE_H_ 27 #include <interface/interface.h> 28 #include <interface/message.h> 29 #include <interface/field_iterator.h> 53 typedef struct __attribute__((packed)) {
54 int64_t timestamp_sec;
55 int64_t timestamp_usec;
85 bool try_smaller_windows;
89 } OpenCVStereoParamsInterface_data_t;
91 OpenCVStereoParamsInterface_data_t *data;
100 typedef struct __attribute__((packed)) {
101 int64_t timestamp_sec;
102 int64_t timestamp_usec;
104 } SetPreFilterTypeMessage_data_t;
106 SetPreFilterTypeMessage_data_t *data;
119 virtual Message * clone()
const;
126 typedef struct __attribute__((packed)) {
127 int64_t timestamp_sec;
128 int64_t timestamp_usec;
132 } SetPreFilterSizeMessage_data_t;
134 SetPreFilterSizeMessage_data_t *data;
147 virtual Message * clone()
const;
154 typedef struct __attribute__((packed)) {
155 int64_t timestamp_sec;
156 int64_t timestamp_usec;
160 } SetPreFilterCapMessage_data_t;
162 SetPreFilterCapMessage_data_t *data;
175 virtual Message * clone()
const;
182 typedef struct __attribute__((packed)) {
183 int64_t timestamp_sec;
184 int64_t timestamp_usec;
188 } SetSADWindowSizeMessage_data_t;
190 SetSADWindowSizeMessage_data_t *data;
203 virtual Message * clone()
const;
210 typedef struct __attribute__((packed)) {
211 int64_t timestamp_sec;
212 int64_t timestamp_usec;
214 } SetMinDisparityMessage_data_t;
216 SetMinDisparityMessage_data_t *data;
229 virtual Message * clone()
const;
236 typedef struct __attribute__((packed)) {
237 int64_t timestamp_sec;
238 int64_t timestamp_usec;
242 } SetNumDisparitiesMessage_data_t;
244 SetNumDisparitiesMessage_data_t *data;
257 virtual Message * clone()
const;
264 typedef struct __attribute__((packed)) {
265 int64_t timestamp_sec;
266 int64_t timestamp_usec;
271 } SetTextureThresholdMessage_data_t;
273 SetTextureThresholdMessage_data_t *data;
286 virtual Message * clone()
const;
293 typedef struct __attribute__((packed)) {
294 int64_t timestamp_sec;
295 int64_t timestamp_usec;
301 } SetUniquenessRatioMessage_data_t;
303 SetUniquenessRatioMessage_data_t *data;
316 virtual Message * clone()
const;
323 typedef struct __attribute__((packed)) {
324 int64_t timestamp_sec;
325 int64_t timestamp_usec;
329 } SetSpeckleWindowSizeMessage_data_t;
331 SetSpeckleWindowSizeMessage_data_t *data;
344 virtual Message * clone()
const;
351 typedef struct __attribute__((packed)) {
352 int64_t timestamp_sec;
353 int64_t timestamp_usec;
357 } SetSpeckleRangeMessage_data_t;
359 SetSpeckleRangeMessage_data_t *data;
372 virtual Message * clone()
const;
379 typedef struct __attribute__((packed)) {
380 int64_t timestamp_sec;
381 int64_t timestamp_usec;
382 bool try_smaller_windows;
386 } SetTrySmallerWindowsMessage_data_t;
388 SetTrySmallerWindowsMessage_data_t *data;
401 virtual Message * clone()
const;
447 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
void set_try_smaller_windows(const bool new_try_smaller_windows)
Set try_smaller_windows value.
SetSADWindowSizeMessage Fawkes BlackBoard Interface Message.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void set_pre_filter_type(const PreFilterType new_pre_filter_type)
Set pre_filter_type value.
void set_sad_window_size(const uint32_t new_sad_window_size)
Set sad_window_size value.
uint32_t uniqueness_ratio() const
Get uniqueness_ratio value.
Fawkes library namespace.
uint32_t speckle_window_size() const
Get speckle_window_size value.
PreFilterType pre_filter_type() const
Get pre_filter_type value.
void set_min_disparity(const int32_t new_min_disparity)
Set min_disparity value.
SetPreFilterTypeMessage Fawkes BlackBoard Interface Message.
SetPreFilterSizeMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_try_smaller_windows() const
Get maximum length of try_smaller_windows value.
int32_t min_disparity() const
Get min_disparity value.
uint32_t pre_filter_cap() const
Get pre_filter_cap value.
uint32_t texture_threshold() const
Get texture_threshold value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
Base class for all Fawkes BlackBoard interfaces.
SetTextureThresholdMessage Fawkes BlackBoard Interface Message.
virtual Message * create_message(const char *type) const
Create message based on type name.
SetTrySmallerWindowsMessage Fawkes BlackBoard Interface Message.
SetSpeckleRangeMessage Fawkes BlackBoard Interface Message.
uint32_t num_disparities() const
Get num_disparities value.
void set_uniqueness_ratio(const uint32_t new_uniqueness_ratio)
Set uniqueness_ratio value.
size_t maxlenof_min_disparity() const
Get maximum length of min_disparity value.
size_t maxlenof_speckle_range() const
Get maximum length of speckle_range value.
void set_pre_filter_cap(const uint32_t new_pre_filter_cap)
Set pre_filter_cap value.
uint32_t speckle_range() const
Get speckle_range value.
const char * type() const
Get type of interface.
SetSpeckleWindowSizeMessage Fawkes BlackBoard Interface Message.
OpenCVStereoParamsInterface Fawkes BlackBoard Interface.
size_t maxlenof_uniqueness_ratio() const
Get maximum length of uniqueness_ratio value.
const char * tostring_PreFilterType(PreFilterType value) const
Convert PreFilterType constant to string.
size_t maxlenof_sad_window_size() const
Get maximum length of sad_window_size value.
void set_pre_filter_size(const uint32_t new_pre_filter_size)
Set pre_filter_size value.
SetPreFilterCapMessage Fawkes BlackBoard Interface Message.
void set_texture_threshold(const uint32_t new_texture_threshold)
Set texture_threshold value.
void set_num_disparities(const uint32_t new_num_disparities)
Set num_disparities value.
SetUniquenessRatioMessage Fawkes BlackBoard Interface Message.
Normalized response filter.
size_t maxlenof_pre_filter_size() const
Get maximum length of pre_filter_size value.
bool is_try_smaller_windows() const
Get try_smaller_windows value.
void set_speckle_window_size(const uint32_t new_speckle_window_size)
Set speckle_window_size value.
uint32_t pre_filter_size() const
Get pre_filter_size value.
PreFilterType
The type used for the pre-filter to come up with the features for the correspondence matching...
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
SetNumDisparitiesMessage Fawkes BlackBoard Interface Message.
SetMinDisparityMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_speckle_window_size() const
Get maximum length of speckle_window_size value.
size_t maxlenof_texture_threshold() const
Get maximum length of texture_threshold value.
uint32_t sad_window_size() const
Get sad_window_size value.
size_t maxlenof_pre_filter_type() const
Get maximum length of pre_filter_type value.
std::map< int, std::string > interface_enum_map_t
Map of enum integer to string values.
void set_speckle_range(const uint32_t new_speckle_range)
Set speckle_range value.
size_t maxlenof_pre_filter_cap() const
Get maximum length of pre_filter_cap value.
size_t maxlenof_num_disparities() const
Get maximum length of num_disparities value.