Commit graph

784 commits

Author SHA1 Message Date
Ryan Pavlik d4d6a1a73f util: Fix some truncation warnings, mostly by explicitly casting 2021-10-19 16:11:34 -05:00
Ryan Pavlik 5f8cb4e227 a/math: Fix some truncation warnings. 2021-10-19 15:31:29 -05:00
Ryan Pavlik c47463b4eb aux/util: Fix log message formatting on Windows. 2021-10-15 15:05:34 -05:00
Ryan Pavlik c40553580d util: Fix copyright typo. 2021-10-15 14:55:12 -05:00
Ryan Pavlik d6177777e5 os: Fix os_nanosleep on Windows. 2021-10-15 13:05:18 -05:00
Ryan Pavlik 3351ef5396 os: Add new thread helper methods 2021-10-15 13:05:18 -05:00
Ryan Pavlik 793a7d659d os: Improve docs for thread helper. 2021-10-15 11:57:44 -05:00
Jakob Bornecrantz 580a2f6fff u/sink: Add u_sink_combiner helper to combine frames to stereo frames 2021-10-09 22:28:11 +01:00
Jakob Bornecrantz e8f7f2de0a t/util: Add function to dump a stereo camera calibration 2021-10-09 22:28:11 +01:00
Mateo de Mayo 9b21b7d36c t/slam: Use debug assertions and ensure timestamps come in order 2021-10-06 16:41:18 -03:00
Mateo de Mayo 67a5946778 xrt: Add units to xrt_imu_sample fields
After using the structure a bit more, and realizing that while different components
sometimes use different units, it is easier to force them to send the imu_samples
in a standardized unit.
2021-10-06 16:41:18 -03:00
Mateo de Mayo 5845155229 xrt: Use doubles in xrt_vec3_f64 2021-10-06 15:23:28 -03:00
Moses Turner e134b24f8f u/var: Add u_var_draggable_f32 2021-10-02 23:05:35 +01:00
Moses Turner 5efdea78da aux/gst: Expose function to get offset from global time to video timestamp 2021-10-02 23:05:26 +01:00
Ryan Pavlik 37c5eee02a a/math: Refactor one euro filter code 2021-10-02 23:05:22 +01:00
Moses Turner 52f1ce14ca aux/math: Add m_vec2_lerp 2021-10-02 23:05:19 +01:00
Jakob Bornecrantz 73d631c775 cmake: Make math depend on util
This fixes the build when tracing is enabled.
2021-09-29 21:38:33 +00:00
Jakob Bornecrantz 6f66ada6d9 u/vive: Remove old code and tidy camera calibration extraction 2021-09-29 20:48:54 +00:00
Jakob Bornecrantz 08721858dc u/vive: Compare calibration solutions 2021-09-29 20:48:54 +00:00
Jakob Bornecrantz 4430dbe5d5 u/vive: Rework how calibration is extracted 2021-09-29 20:48:54 +00:00
Jakob Bornecrantz a15e37587b u/vive: Add more camera fields 2021-09-29 20:48:54 +00:00
Mateo de Mayo f88befbdbc t/slam: Replace assertion with return -1 if SLAM_CONFIG is not provided 2021-09-28 16:06:52 -03:00
Mateo de Mayo debdb11e02 t/slam: Miscelaneous NFC changes
- Use @todo instead of TODO for doxygen
- Improve the slam_tracker interface documentation
- Move euroc functions declared by macros into extern C
2021-09-28 12:49:36 +00:00
Mateo de Mayo 1a5af03111 t/slam: Move pose corrections into the tracked devices
This discards the pose correction logic used that was for the D455 not for
an euroc dataset. It will be reintroduced in a later commit with an
appropriate device.
2021-09-28 12:49:36 +00:00
Moses Turner 1c99e8edb5 meson: add option for tracing; align messages 2021-09-28 12:41:01 +00:00
Mateo de Mayo d61a695f13 meson: Allow percetto to be used with meson
You may need to specify --libdir=$installdir/lib when installing percetto,
otherwise it gets installed on $installdir/lib/x86_64-linux-gnu by default and
meson might not look for the appropriate pkgconfig in there.
2021-09-28 12:41:01 +00:00
quic_zhibinw f9d0bfb80a aux/vk: Apply the protected content flag if app pass it when create swapchain 2021-09-28 15:33:15 +08:00
Ryan Pavlik 995866a576 cmake: Improve use of percetto 2021-09-27 09:26:15 -05:00
Jakob Bornecrantz de283a8b0c t/calibration: Add support for findChessboardCornersSB 2021-09-20 15:54:00 +00:00
Jakob Bornecrantz d86adce39d u/historybuf: Tidy code and work around clang-format CI troubles 2021-09-20 15:54:00 +00:00
Ryan Pavlik a10a4ab123 a/math: Fix truncation warning due to double literal in float parameter. 2021-09-20 10:06:33 -05:00
Ryan Pavlik 967efb4a12 a/os: SetWaitableTimer wants durations in hundreds of ns. 2021-09-20 09:25:31 -05:00
Jakob Bornecrantz b4ce66a5dc u/var: Remove sink variable tracking 2021-09-17 15:27:23 +01:00
Jakob Bornecrantz 0157b2d4b0 t/debug: Update HelperDebugSink to use new u_debug_sink 2021-09-17 13:39:50 +01:00
Jakob Bornecrantz 2404257077 t/hsv: Switch to u_sink_debug 2021-09-17 13:39:50 +01:00
Jakob Bornecrantz b8055eba6a u/var: Add u_sink_debug 2021-09-17 13:01:02 +01:00
Jakob Bornecrantz da628514d8 u/sink: Add u_sink_debug struct helper 2021-09-17 13:01:02 +01:00
Christoph Haag a3b453dae7 t/slam: Print an error when SLAM_CONFIG is not set
Fixes crash

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
2021-09-16 23:33:05 +02:00
Christoph Haag ec5b5f9e1d t/slam: Only warn for incompatible OpenCV 2021-09-16 23:33:05 +02:00
Mateo de Mayo 549c59a493 t/slam: Add SLAM tracking module 2021-09-15 19:03:55 +00:00
Simon Zeni 26c684d42f aux/vk: Add VK_EXT_acquire_drm_display functions 2021-09-15 18:44:18 +00:00
Moses Turner 947bac9e54 aux/math: Implement m_relation_history
to keep track of past poses of HMDs, controllers, etc.
2021-09-15 12:13:14 -05:00
Moses Turner 7f69dc795f d/ht; aux/util: Move ringbuffer implementation into aux/util 2021-09-15 12:13:00 -05:00
Moses Turner 9960f0ab22 aux/math: Add tracing for m_predict 2021-09-15 12:13:00 -05:00
Jakob Bornecrantz cb7563ecd6 m/predict: Add C++ extern guards 2021-09-14 13:42:20 +01:00
Jakob Bornecrantz 608bb987d9 u/[rt|ft]: Adjust margins
This commit adds more margins to both the app and the compositor, with the
compute work this yeilds basically no frame misses for the compositor.
2021-09-13 21:50:20 +01:00
Jakob Bornecrantz dda80836c6 u/ft: Rename min_margin_ns to margin_ns 2021-09-13 21:49:31 +01:00
Mateo de Mayo d9482d0b76 u/var: Add f64 kind 2021-09-13 18:59:03 +01:00
Jakob Bornecrantz 129902750d u/sink: Add conversion from L8 to R8G8B8 2021-09-03 22:16:21 +01:00
Moses Turner cef922946a aux/vive: Parse camera calibration 2021-09-03 21:06:18 +00:00