Commit graph

76 commits

Author SHA1 Message Date
rodolpheh 8a9caca7d1 Set getters to const in ultraleap 2023-12-08 09:08:05 +00:00
rodolpheh e46bc2e49f Fix missing EOL in server_namespace 2023-12-08 09:07:39 +00:00
rodolpheh 3c71fafe52 More small changes to try to stabilise this thing 2023-12-05 23:16:55 +00:00
rodolpheh 533e4bb193 Prevent badly initialized device from crashing 2023-12-05 22:46:16 +00:00
rodolpheh 824f9f1d7f Simplify some variables in frame 2023-12-05 22:42:51 +00:00
rodolpheh 3bc883e6f2 Simplify some variables in hand 2023-12-05 22:27:13 +00:00
rodolpheh aba413f6c3 Small simplification in variable names in digit 2023-12-05 22:19:45 +00:00
rodolpheh 6eec3f4b66 Fix devices trying to use connection handle on destroy 2023-12-05 18:58:53 +00:00
rodolpheh 555200995b Add transforms for rigging (might not be a good implementation) 2023-12-04 19:52:23 +00:00
rodolpheh 72c602fe67 Fix missing computation call 2023-11-21 08:53:26 +00:00
rodolpheh bbe54db220 Make bones a linked list 2023-11-21 08:38:58 +00:00
rodolpheh 38c11c67fc Add more useful data (wrist position for ex) 2023-11-20 23:20:37 +00:00
rodolpheh dfa6243636 Add data to bones to help rigging 2023-11-20 22:35:47 +00:00
rodolpheh e98177faa4 Rename bone rotation to orientation 2023-11-19 21:06:46 +00:00
rodolpheh e57b3cb5c0 Improvements in device management
Multiple improvements in device management:
* Working management of lost device
* Use deferred call instead of managing a queue of events for signals
* Clean some old code
* Safer open/subscribe/unsubscribe/close
* get_interpolated_frame now returns null if the device is not
  "interpolation_enabled"
2023-11-16 23:51:18 +00:00
rodolpheh 4ae392a7db Add bones list to digit and improve properties 2023-11-16 21:52:33 +00:00
rodolpheh 1dc4d054a6 Fix OriginHands not liking the new structure (null-able) 2023-11-14 00:15:42 +00:00
rodolpheh bb714cb9c0 Try not to use memory on the stack 2023-11-13 23:24:43 +00:00
rodolpheh 3e426d2375 Use Ref<> instead of Variant in device 2023-11-13 22:13:23 +00:00
rodolpheh 1fadb5bd21 Even more use of Ref<> 2023-11-13 21:50:03 +00:00
rodolpheh 37cbc53fd0 Use more reference and manage thread in engine notifications 2023-11-13 21:08:19 +00:00
rodolpheh 8b932e3a3c Try to improve stability in editor
The more I made changes, the more it crashed. Got it to a point where
it doesn't crash when starting the editor, but it will crash when
exciting.
2023-11-08 22:47:41 +00:00
rodolpheh 671f5cae12 Attempt at better managing lifecycle 2023-11-07 23:29:42 +00:00
rodolpheh 5f259c6c34 Use godot-ultraleap-binder 2023-11-05 14:15:33 +00:00
rodolpheh b2cb023ddf Attempt at using the binder but I couldn't build 2023-11-03 07:22:52 +00:00
rodolpheh c31fc6b2b3 Make UltraleapDeviceNode runnable, live HT in editor 2023-10-24 22:13:40 +01:00
rodolpheh 5b1e0f2d5c Introduce primary device setting for UltraleapHandTracking node 2023-10-24 21:21:22 +01:00
Rodolphe Houdas 8632ad0725 Try to make allow pause resume work (alas...) 2023-10-03 22:29:59 +01:00
Rodolphe Houdas f8bd79c2dc Don't enable images by default 2023-10-03 21:14:25 +01:00
Rodolphe Houdas 5123434d03 Fix wrong distortion map and flip it 2023-10-03 07:32:11 +01:00
Rodolphe Houdas 6b74539f13 Clean and improve slightly API 2023-09-25 23:19:13 +01:00
Rodolphe Houdas a877f45afa Remove unnecessary last_image_event 2023-09-02 22:59:26 +01:00
Rodolphe Houdas 8af045b8cf Remove some dead code 2023-09-02 22:44:58 +01:00
Rodolphe Houdas 3b973c45e9 Add service IP and port parameters 2023-09-02 22:32:52 +01:00
Rodolphe Houdas 6f1cc58565 Add message when no device is found 2023-09-02 21:34:39 +01:00
Rodolphe Houdas f5df5a3ab4 Add signals for connection/disconnection 2023-07-31 23:08:06 +01:00
Rodolphe Houdas e3ff5121bc Make device node more thread safe (hopefully) 2023-07-27 22:39:09 +01:00
Rodolphe Houdas c88c13f8a6 Remove signals from device resource 2023-07-27 22:14:23 +01:00
Rodolphe Houdas 077355790e Put all UltraleapHandTracking signals into events queue 2023-07-27 22:12:24 +01:00
Rodolphe Houdas 1e19560a79 Implement event queue for inter-thread signal exchange 2023-07-27 20:14:27 +01:00
Rodolphe Houdas 669b61c37b Update extension to Godot 4.1.1 2023-07-26 19:34:54 +01:00
Rodolphe Houdas eae43bc9ad Introduce some thread-safety (maybe?) 2023-06-15 22:12:05 +01:00
Rodolphe Houdas 2d751c4653 Use Godot's memalloc and memfree for Leap's allocator 2023-05-14 19:30:09 +01:00
Rodolphe Houdas 8690a2dd1d Implement pause/resume tracking 2023-05-04 22:10:00 +01:00
Rodolphe Houdas 5585fecbe3 Implement allow pause resume policy 2023-05-04 21:07:43 +01:00
Rodolphe Houdas 845600e150 Implement other policy flags 2023-05-04 20:47:49 +01:00
Rodolphe Houdas a647e60914 Add initial support for setting policies 2023-05-04 08:29:16 +01:00
Rodolphe Houdas 039b21ccbe Add switch for distortion and clean some code 2023-04-03 22:07:52 +01:00
Rodolphe Houdas 5210c35627 Get and store distortion matrix 2023-04-02 23:11:23 +01:00
Rodolphe Houdas 4a8216fecb Add possibility to request interpolated frame 2023-03-26 22:16:14 +01:00