16#include <cjson/cJSON.h>
A tightly packed 3x3 matrix of floats.
Definition: xrt_defines.h:533
A pose composed of a position and orientation.
Definition: xrt_defines.h:465
A quaternion with single floats.
Definition: xrt_defines.h:216
A 3 element vector with single doubles.
Definition: xrt_defines.h:283
A 3 element vector with single floats.
Definition: xrt_defines.h:271
const cJSON * u_json_get(const cJSON *json, const char *f)
Get a JSON object by string from a JSON object.
Definition: u_json.c:42
bool u_json_get_vec3_array(const cJSON *json, struct xrt_vec3 *out_vec3)
Parse an xrt_vec3 from a JSON array.
Definition: u_json.c:163
bool u_json_get_int(const cJSON *json, int *out_int)
Parse an int from a JSON object.
Definition: u_json.c:89
bool u_json_get_matrix_3x3(const cJSON *json, struct xrt_matrix_3x3 *out_matrix)
Parse a matrix_3x3 from a JSON object.
Definition: u_json.c:418
bool u_json_get_float(const cJSON *json, float *out_float)
Parse a float from a JSON object.
Definition: u_json.c:121
bool u_json_get_vec3(const cJSON *json, struct xrt_vec3 *out_vec3)
Parse an xrt_vec3 from a JSON object.
Definition: u_json.c:135
bool u_json_get_bool(const cJSON *json, bool *out_bool)
Parse an bool from a JSON object.
Definition: u_json.c:72
size_t u_json_get_int_array(const cJSON *json_array, int *out_array, size_t max_size)
Parse up to max_size int from a JSON array.
Definition: u_json.c:385
bool u_json_get_vec3_f64_array(const cJSON *json, struct xrt_vec3_f64 *out_vec3)
Parse an xrt_vec3_f64 from a JSON array.
Definition: u_json.c:199
bool u_json_get_pose_permissive(const cJSON *json, struct xrt_pose *out_pose)
Parse a pose from a JSON object, composed of a vec3 named "position", "translation",...
Definition: u_json.c:282
bool u_json_get_string_into_array(const cJSON *json, char *out, size_t max_size)
Parse a string from a JSON object into a char array.
Definition: u_json.c:48
bool u_json_get_quat(const cJSON *json, struct xrt_quat *out_quat)
Parse a quaternion from a JSON object.
Definition: u_json.c:235
size_t u_json_get_double_array(const cJSON *json_array, double *out_array, size_t max_size)
Parse up to max_size doubles from a JSON array.
Definition: u_json.c:352
bool u_json_get_pose(const cJSON *json, struct xrt_pose *out_pose)
Parse a pose from a JSON object, composed of a vec3 named "position" and a quat named "orientation".
Definition: u_json.c:267
size_t u_json_get_float_array(const cJSON *json_array, float *out_array, size_t max_size)
Parse up to max_size floats from a JSON array.
Definition: u_json.c:319
bool u_json_get_double(const cJSON *json, double *out_double)
Parse a double from a JSON object.
Definition: u_json.c:106
Header holding common defines.
Common defines and enums for XRT.