Useful struct to store the Fusion configuration, can be read from /write to a JSON file.
More...
Useful struct to store the Fusion configuration, can be read from /write to a JSON file.
◆ save()
bool save |
( |
String |
filename | ) |
const |
Saves the current set of parameters into a file to be reloaded with the load() method.
- Parameters
-
filename | : Name of the file which will be created to store the parameters (extension '.json' will be added if not set). |
- Returns
- True if the file was successfully saved, otherwise false.
- Warning
- For security reasons, the file must not already exist.
-
In case a file already exists, the method will return false and existing file will not be updated.
◆ load()
Loads a set of parameters from the values contained in a previously saved file.
- Parameters
-
filename | : Path to the file from which the parameters will be loaded (extension '.json' will be added at the end of the filename if not detected). |
- Returns
- True if the file was successfully loaded, otherwise false.
◆ encode()
bool encode |
( |
String & |
serialized_content | ) |
const |
Generate a JSON Object (with the struct type as a key) containing the serialized struct, converted into a string.
- Parameters
-
serialized_content | output string containing the JSON Object |
- Returns
- True if file was successfully saved, otherwise false.
◆ decode()
bool decode |
( |
const String & |
serialized_content | ) |
|
Fill the structure from the serialized json object contained in the input string.
- Parameters
-
serialized_content | input string containing the JSON Object |
- Returns
- True if the decoding was successful, otherwise false.
◆ operator==()
Comparison operator ==.
- Parameters
-
- Returns
- true if the two struct are identical
◆ operator!=()
Comparison operator !=.
- Parameters
-
- Returns
- true if the two struct are different
◆ serial_number
The serial number of the used ZED camera.
◆ communication_parameters
The communication parameters to connect this camera to the Fusion.
◆ pose
◆ input_type
The input type for the current camera.
◆ override_gravity
bool override_gravity = false |
Indicates the behavior of the fusion with respect to given calibration pose. If true : The calibration pose directly specifies the camera's absolute pose relative to a global reference frame. If false : The calibration pose (Pose_rel) is defined relative to the camera's IMU rotational pose. To determine the true absolute position, the Fusion process will compute Pose_abs = Pose_rel * Rot_IMU_camera.