Граф коммитов

335 Коммитов

Автор SHA1 Сообщение Дата
Jacob Wirth 529d0cf58a
Improve support for pre-1.0.0 recording files (#259) 2019-04-19 13:15:01 -07:00
Billy Price f3ad35a2c5
K4AViewer: Wait for master when starting subordinate device (#258)
When you start a camera in subordinate mode, it doesn't return data until the master sends the start messages. With the current viewer implementation, this means you have to start the master within 2 seconds of starting the subordinate, or it times out.

That's pretty difficult to do, so this change lets the polling thread block for up to 5 minutes if the camera is started in subordinate mode.

Also fixed a couple minor UI issues:

- If the camera fails to start, the IMU will also fail to start, so don't try to start the IMU if the cameras fail to start to reduce the number of error messages shown to the user
- We weren't zeroing new textures, which sometimes led to graphics memory containing old images getting reused when you stop and restart the camera
2019-04-19 11:06:39 -07:00
Billy Price b285d2b291
K4AViewer: Only generate color xy tables on recordings with depth (#255)
The viewer was failing to show the point cloud view of depth-only recordings because we were failing to generate the XY tables for the color camera (depth-only recordings don't have enough information to create a color XY table).

Stop attempting to generate color XY tables for depth-only recordings.
2019-04-18 10:37:50 -07:00
Matt Schulte 26f2e6d38d Downloads findconnectedport for Universal Package 2019-04-17 21:09:13 +00:00
Matt Schulte 3d317db60c Do not recursively checkout submodules 2019-04-17 21:09:13 +00:00
Billy Price 82bbc82b96
K4AViewer: Point cloud viewer UI tweaks (#248)
A couple minor fixes to the point cloud viewer UI:

- Only send rotation/translation events if the mouse drag started on the point cloud image itself (i.e. don't rotate the image if you drag the point size slider)
- Remove custom warning logging in favor of the new logging pane
- Only send zoom events if the point cloud window is hovered
2019-04-16 19:24:25 -07:00
Billy Price 5fd7f25f60
K4AViewer: Clean up UI settings, add option to hide log pane (#238)
- Move the settings file location from the working directory to the users' home directory
- Add a setting to show/hide the log dock
- Clean up the way we handle UI settings to reduce the amount of boilerplate required to introduce a new setting
- Clean up the code for the settings menu
2019-04-16 15:52:00 -07:00
mbleyer b168164f40
Merge pull request #236 from Microsoft/user/mbleyer/xyz-invalid-bug
Set x,y,z values to zero in point cloud function if pixel falls outside of lens radius
2019-04-15 15:23:32 -07:00
Michael Bleyer cec9b70c13 Merge branch 'user/mbleyer/xyz-invalid-bug' of https://github.com/Microsoft/Azure-Kinect-Sensor-SDK into user/mbleyer/xyz-invalid-bug 2019-04-15 14:58:05 -07:00
Michael Bleyer f5a65863a9 use isnan() 2019-04-15 14:56:06 -07:00
mbleyer 5cfe78f656
Merge branch 'develop' into user/mbleyer/xyz-invalid-bug 2019-04-15 14:02:57 -07:00
Michael Bleyer 8437b8758b undoing previous commit due to Linux compilation issue 2019-04-15 13:24:38 -07:00
Michael Bleyer f15ac8fe1e check for not equal instead of check against NaN 2019-04-15 12:00:31 -07:00
Billy Price 94cea8255c
K4AViewer: fix error message on uncoordinated captures (#241)
When starting the cameras without synchronized_images_only set, we were sometimes trying to get the image format of null images, which raised an error in the log. k4a_image_get_format returns K4A_IMAGE_FORMAT_CUSTOM in this case, which happened to never be what we were expecting to see, so the viewer dropped the image anyway, but with the addition of the new log pane, this became much more noticeable.

This adds a check to verify that the image is valid before trying to get its format, which prevents the error from being triggered.
2019-04-15 11:40:54 -07:00
Jacob Wirth 7c53d66d50
Add playback API color format conversion (#237)
* Add initial format conversion test

* Add support for NV12 and YUY2 conversion.

* Code cleanup

* Doxygen build fix
2019-04-12 12:31:51 -07:00
Andrew Duan 24698b6a0f
Adding a check to not wait if the te thread already started (#233) 2019-04-11 17:24:46 -07:00
Derek M 3a44332088
Move firmware files for firmware tests to parameters (#232)
Moving all firmware files to parameters instead of being hardcoded to make the code more portable.
Cleaning up the logging so that is is more readable.
2019-04-11 13:24:30 -07:00
Jacob Wirth edd0d41f93
Fix memory leaks in playback / record API (#235)
* Fix memory leak in record_ut

* Fix memory leaks in playback_ut
2019-04-11 11:36:19 -07:00
Michael Bleyer b5b85892e9 set x,y,z values to zero in point cloud function if pixel falls outside of lens radius 2019-04-11 10:55:52 -07:00
Billy Price d842759d9c
K4AViewer: Add IMU playback (#234)
Add IMU playback support to K4AViewer.

To support this, move graph data aggregation into the listener. This lets us do things like clear the graph data when a seek happens without having direct access to the IMU window.
2019-04-10 16:34:00 -07:00
mbleyer 977f2e6a45
Merge pull request #231 from Microsoft/user/mbleyer/bug_223
Bug 223: Transformation function parameters are not validated for GPU code path
2019-04-10 14:06:58 -07:00
mbleyer c430a64df6
Merge branch 'develop' into user/mbleyer/bug_223 2019-04-10 13:35:31 -07:00
Billy Price 79cad4f660
K4AViewer: Add API logging pane (#229)
Add a logging pane to K4AViewer that displays the API logs.
2019-04-10 12:52:06 -07:00
Michael Bleyer 0a4ad7629e removing ut dependency on depthengine.dll 2019-04-09 16:58:57 -07:00
Michael Bleyer d659db56d8 adding unit tests 2019-04-09 16:40:26 -07:00
Michael Bleyer ba99cc381f Linux build 2019-04-09 15:01:00 -07:00
Michael Bleyer d0a4f9df03 validating parameters for GPU code path 2019-04-09 14:20:03 -07:00
Derek M ee7a6fbbb9
Adding a check to not wait if the thread has already fully started. (#228)
When starting the depth engine, only wait on the condition if we don't think the thread has started yet as it will never be released if the thread has already triggered the condition.
2019-04-09 12:41:12 -07:00
wes-b 4f177e7a5b
User/wesbarc/logging api (#221)
* Adding Logging API to set/clear callback function, added unit tests, passing with parallel tests with 500 interations.
Updated ENV logger settings so they don't default to enable STDOUT

* formatting change

* works

* Addressing PR comments

* Fixing Doxygen break

* Fixing comment

* last round of feedback
2019-04-09 08:17:13 -07:00
Billy Price 51b1ee4702
K4AViewer: Add tooltips for unsupported modes, block IMU if no camera is enabled (#225)
- Add tooltips explaining why options are unavailable (e.g. 3072p doesn't work at 30 FPS)
- Disable starting the IMU if neither camera is enabled since that's no longer supported by the SDK

Also fix an unrelated build break in the transformation tests on some Ubuntu 16.04 setups related to "abs()" resolving to the C version of the function (which expects int args) instead of the C++ version (which has overloads for floats)
2019-04-05 13:13:01 -07:00
Billy Price e751370be7
K4AViewer: change point cloud viewer to arcball controls (#222)
Change the point cloud viewer controls from first person game-style WASD keyboard/mouse controls to modeling software-style arcball mouse controls
2019-04-05 10:20:13 -07:00
Andrew Duan a84aad2c7a
Skip interpolation at depth discontinuity (#190)
* Skip interpolation at depth discontinuity

* Linux fix

* Fix linux for real :)

* move to const value

* small fix
2019-04-04 17:43:07 -07:00
Derek M b1aa7fc807
Check the device calibration in the firmware tests (#220)
Compare the calibration before and after the firmware update to ensure that it is preserved through updates.
2019-04-04 16:36:44 -07:00
wes-b bc5a2aebb7
Fixed leak in dewrapper.c, added code to help find code in the future. (#207)
* Fixed leak in dewrapper.c. Switched setting to a build variable that can be set in CMAKE.
Also updated leak detection to run a binary unload.
Cleanup up most of the errors I found.
Opened issues #210 and @212 to track leaks that still need to be addressed.

* Adding leak detection logic to k4a_unittest_init() so more tests get it automatically

* Addressing PR feedback
2019-04-04 10:21:42 -07:00
Matt Schulte 671ac54116
Updates firmware during functional tests (#202) 2019-04-03 15:06:19 -07:00
Derek M a906b1d213
Increasing the delay before attempting to connect after issuing a reset (#215)
To help prevent errors caused by connecting to a device as it is going away, increase the delay before attempting to connect to the device again after issuing the reset command.
2019-04-03 11:17:59 -07:00
Jacob Wirth d9e43f2492
IMU Playback API (#213)
* Start of IMU playback

* Finish IMU playback tests

* Add IMU block boundary test

* Test cleanup

* Add more code comments and improve error checking
2019-04-02 14:15:24 -07:00
Matt Schulte e7c6f95ce5
User/maschu/fix build break (#214)
* Debug dir

* Look in 2019

* Moved from preview to enterprise

* Enable msbui

* Revert "Enable msbui"

This reverts commit f055f04963.
2019-04-02 13:44:10 -07:00
mbleyer f03cbd8ffd
Merge pull request #209 from Microsoft/user/mbleyer/xyz-simd
SSE code for depth to xyz
2019-04-02 10:42:29 -07:00
Chris Edmonds 06b2f593ef
Merge branch 'develop' into user/mbleyer/xyz-simd 2019-04-02 10:15:22 -07:00
Michael Bleyer 6437d5a410 linux build 2019-04-01 17:32:16 -07:00
Billy Price 90fc56c38c
K4AViewer: rewrite playback wrapper like k4a.hpp (#208)
Rewrite the playback wrapper used in k4aviewer in the style of the official C++ wrapper for the K4A API with the intent of eventually adopting the new wrapper as the official C++ playback wrapper
2019-04-01 17:23:56 -07:00
Michael Bleyer 9350ae054f Chris' and Wes' comments 2019-04-01 16:15:58 -07:00
Michael Bleyer 9facf97883 fixing ut 2019-04-01 14:45:53 -07:00
Jacob Wirth 3c00806aa4
Remove null-termination byte from attachment (#211) 2019-04-01 14:38:23 -07:00
Michael Bleyer 78deca6a8b fixing ut 2019-04-01 13:45:25 -07:00
Michael Bleyer 9c114a319f SSE code for depth to xyz 2019-04-01 11:42:46 -07:00
wes-b 446e057cf1
Switching BGRA32 modes to match what we want to benchmark with (#205) 2019-04-01 11:19:26 -07:00
Matt Schulte 1f258fa660
Updates Linux tool FindConnectedPort (#204)
FindConnectedPort now fails on no connection excersier found
2019-03-29 14:48:20 -07:00
Billy Price 09d9b5b277
K4AViewer: Make dock resizeable, extract dock logic into reusable class (#206)
Various improvements to the dock logic:

- Extract the dock logic out into a reusable class
- Add support for resizing docks by dragging
- Add support for docks attached to different edges of the window
- Fix several UI scaling bugs that manifest only when a dock takes up most of the screen
This will be used to support adding a log viewer pane when we have an API for getting logs.
2019-03-29 13:59:45 -07:00