31 #define NS_SPEW(c, ...) \ 33 if (c->print_spew) { \ 34 fprintf(stderr, "%s - ", __func__); \ 35 fprintf(stderr, __VA_ARGS__); \ 36 fprintf(stderr, "\n"); \ 40 #define NS_DEBUG(c, ...) \ 42 if (c->print_debug) { \ 43 fprintf(stderr, "%s - ", __func__); \ 44 fprintf(stderr, __VA_ARGS__); \ 45 fprintf(stderr, "\n"); \ 49 #define NS_ERROR(c, ...) \ 51 fprintf(stderr, "%s - ", __func__); \ 52 fprintf(stderr, __VA_ARGS__); \ 53 fprintf(stderr, "\n"); \ 68 struct ns_optical_system;
161 static inline struct ns_hmd *
164 return (
struct ns_hmd *)xdev;
185 struct ns_uv *render_uv,
188 struct ns_optical_system *
struct xrt_device * tracker
Definition: ns_hmd.h:132
A 3 element vector with single floats.
Definition: xrt_defines.h:133
A pose composed of a position and orientation.
Definition: xrt_defines.h:231
float ellipse_major_axis
Definition: ns_hmd.h:102
Simple UV struct.
Definition: ns_hmd.h:75
struct ns_optical_system * optical_system
Definition: ns_hmd.h:114
float v
Definition: ns_hmd.h:78
float ellipse_minor_axis
Definition: ns_hmd.h:101
const char * serial
Definition: ns_hmd.h:90
void ns_display_uv_to_render_uv(struct ns_uv display_uv, struct ns_uv *render_uv, struct ns_eye *eye)
Convert the display UV to the render UV using the distortion mesh.
Definition: deformation_northstar.cpp:307
A quaternion with single floats.
Definition: xrt_defines.h:99
The mesh generator for the North Star distortion.
Definition: ns_hmd.h:143
Header defining a xrt HMD device.
Distortion information about an eye parsed from the configuration file.
Definition: ns_hmd.h:99
Code to generate disortion meshes.
const char * config_path
Definition: ns_hmd.h:127
Common defines and enums for XRT.
bool print_debug
Definition: ns_hmd.h:135
A tightly packed 4x4 matrix of floats.
Definition: xrt_defines.h:278
Generator struct for building meshes, can be implemented by drivers for special meshes.
Definition: u_distortion_mesh.h:55
struct ns_optical_system * ns_create_optical_system(struct ns_eye *eye)
Definition: deformation_northstar.cpp:297
Configuration information about the LMC or Rigel sensor according to the configuration file...
Definition: ns_hmd.h:87
Information about the whole North Star headset.
Definition: ns_hmd.h:122
float u
Definition: ns_hmd.h:77
bool print_spew
Definition: ns_hmd.h:134
Tiny JSON wrapper around cJSON header.
A single HMD or input device.
Definition: xrt_device.h:202
const char * name
Definition: ns_hmd.h:89
C interface to math library.
struct ns_hmd * ns
Definition: ns_hmd.h:146