Holds the options used to initialize the Fusion object. More...
Functions | |
InitFusionParameters (UNIT coordinate_units_=UNIT::MILLIMETER, COORDINATE_SYSTEM coordinate_system_=COORDINATE_SYSTEM::IMAGE, bool output_performance_metrics=true, int verbose_=0, unsigned timeout_period_number_=5, SynchronizationParameter synchronization_parameters_=SynchronizationParameter()) | |
Default constructor. More... | |
bool | save (String filename, SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) const |
Saves the current set of parameters into a file to be reloaded with the load() method. More... | |
bool | load (String filename, SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) |
Loads a set of parameters from the values contained in a previously saved file. More... | |
bool | encode (String &serialized_content, SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) const |
Generate a JSON Object (with the struct type as a key) containing the serialized struct, converted into a string. More... | |
bool | decode (const String &serialized_content, SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) |
Fill the structure from the serialized json object contained in the input string. More... | |
bool | operator== (const InitFusionParameters ¶m1) const |
Comparison operator ==. More... | |
bool | operator!= (const InitFusionParameters ¶m1) const |
Comparison operator !=. More... | |
Attributes | |
UNIT | coordinate_units |
This parameter allows you to select the unit to be used for all metric values of the SDK (depth, point cloud, tracking, mesh, and others). More... | |
COORDINATE_SYSTEM | coordinate_system |
Positional tracking, point clouds and many other features require a given COORDINATE_SYSTEM to be used as reference. This parameter allows you to select the COORDINATE_SYSTEM used by the Camera to return its measures. More... | |
bool | output_performance_metrics |
It allows users to extract some stats of the Fusion API like drop frame of each camera, latency, etc... More... | |
int | verbose |
Enable the verbosity mode of the SDK. More... | |
unsigned | timeout_period_number |
If specified change the number of period necessary for a source to go in timeout without data. For example, if you set this to 5 then, if any source do not receive data during 5 period, these sources will go to timeout and will be ignored. More... | |
SynchronizationParameter | synchronization_parameters |
Specifies the parameters used for data synchronization during fusion. More... | |
Holds the options used to initialize the Fusion object.
InitFusionParameters | ( | UNIT | coordinate_units_ = UNIT::MILLIMETER , |
COORDINATE_SYSTEM | coordinate_system_ = COORDINATE_SYSTEM::IMAGE , |
||
bool | output_performance_metrics = true , |
||
int | verbose_ = 0 , |
||
unsigned | timeout_period_number_ = 5 , |
||
SynchronizationParameter | synchronization_parameters_ = SynchronizationParameter() |
||
) |
Default constructor.
bool save | ( | String | filename, |
SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) | const |
Saves the current set of parameters into a file to be reloaded with the load() method.
filename | : Name of the file which will be created to store the parameters (extension '.yml' will be added if not set). |
bool load | ( | String | filename, |
SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) |
Loads a set of parameters from the values contained in a previously saved file.
filename | : Path to the file from which the parameters will be loaded (extension '.yml' will be added at the end of the filename if not detected). |
bool encode | ( | String & | serialized_content, |
SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) | const |
Generate a JSON Object (with the struct type as a key) containing the serialized struct, converted into a string.
serialized_content | output string containing the JSON Object |
format | serialization format, default is JSON |
bool decode | ( | const String & | serialized_content, |
SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) |
Fill the structure from the serialized json object contained in the input string.
serialized_content | input string containing the JSON Object |
format | serialization format, default is JSON |
bool operator== | ( | const InitFusionParameters & | param1 | ) | const |
Comparison operator ==.
InitFusionParameters | to compare |
bool operator!= | ( | const InitFusionParameters & | param1 | ) | const |
Comparison operator !=.
InitFusionParameters | to compare |
UNIT coordinate_units |
This parameter allows you to select the unit to be used for all metric values of the SDK (depth, point cloud, tracking, mesh, and others).
Default : UNIT::MILLIMETER
COORDINATE_SYSTEM coordinate_system |
Positional tracking, point clouds and many other features require a given COORDINATE_SYSTEM to be used as reference. This parameter allows you to select the COORDINATE_SYSTEM used by the Camera to return its measures.
This defines the order and the direction of the axis of the coordinate system.
Default : COORDINATE_SYSTEM::IMAGE
bool output_performance_metrics |
It allows users to extract some stats of the Fusion API like drop frame of each camera, latency, etc...
int verbose |
Enable the verbosity mode of the SDK.
unsigned timeout_period_number |
If specified change the number of period necessary for a source to go in timeout without data. For example, if you set this to 5 then, if any source do not receive data during 5 period, these sources will go to timeout and will be ignored.
data_source_timeout
present in synchronization_parameters
instead. SynchronizationParameter synchronization_parameters |
Specifies the parameters used for data synchronization during fusion.
The SynchronizationParameter struct encapsulates the synchronization parameters that control the data fusion process.