Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggest adding freenect_sync_camera_to_world() to c_sync #294

Closed
martyvona opened this issue Jun 13, 2012 · 0 comments
Closed

suggest adding freenect_sync_camera_to_world() to c_sync #294

martyvona opened this issue Jun 13, 2012 · 0 comments
Milestone

Comments

@martyvona
Copy link

Suggest adding something like freenect_sync_camera_to_world() in the c_sync wrapper. Afaik there would be no other way to access that functionality for a kinect being used via the c_sync interface.

In libfreenect_sync.h add

int freenect_sync_camera_to_world(int cx, int cy, int wz, double* wx, double* wy, int index);

and then in libfreenect_sync.c add

include "libfreenect-registration.h"

int freenect_sync_camera_to_world(int cx, int cy, int wz, double* wx, double* wy, int index) {
if (runloop_enter(index)) return -1;
freenect_camera_to_world(kinects[index]->dev, cx, cy, wz, wx, wy);
runloop_exit();
return 0;
}

@piedar piedar added this to the v0.5.0 milestone Mar 24, 2014
@piedar piedar modified the milestones: v0.5.1, v0.5.0 Apr 29, 2014
@piedar piedar modified the milestones: v0.5.0, v0.5.1 Jul 15, 2014
@piedar piedar closed this as completed in d071095 Jul 15, 2014
yarikoptic added a commit to yarikoptic/libfreenect that referenced this issue Feb 14, 2015
libfreenect v0.5.0 Satellite

* tag 'v0.5.0': (44 commits)
  Fix stupid comparison mistake in audio serial fallback
  Update CMakeList.txt and ebuild for v0.5.0
  c_sync: Collapse unused functions
  Configure audio support at runtime - fixes OpenKinect#372
  Use audio serial as a fallback for K4W and 1473 models that do not provide a useful camera serial (thanks @olzhas). Fixes OpenKinect#360 and resolves OpenKinect#393.
  Remove legacy keep_alive.c; now require libusb >= 1.0.18
  c_sync: Add freenect_sync_camera_to_world() (thanks @martyvona) - fixes OpenKinect#294
  Fix a crash-on-exit in the OpenNI2 driver caused by using a deleted iterator.
  Cleanup imports in examples; also fixes a micview compile error on OS X.
  Allow freenect_set_tilt_degs to take a negative angle
  Update CMakeLists.txt for v0.4.3
  win32: Fix command in examples/CMakeLists.txt
  ebuild: Improve python dependency - fixes OpenKinect#391
  Standardize indentation in fnusb_open_subdevices
  Use non-infinite timeouts for bulk tilt / led commands Reset the audio device before using it to ensure the commands can be sent correctly Fixes OpenKinect#390
  Update README.md and CMakeLists.txt for v0.4.2
  Fix fakenect not handling freenect_process_events_timeout
  FN_DEBUG: print read_register and read_cmos_register replies
  Fix cmake module include order Fix cpack user option on linux Separate cpack options for different generators and add tgz generator Add cmake config file Fixes OpenKinect#355
  wrappers/python: update freenect.c - fixes OpenKinect#326
  ...
yarikoptic added a commit to yarikoptic/libfreenect that referenced this issue Feb 14, 2015
* dfsg: (84 commits)
  Fix stupid comparison mistake in audio serial fallback
  Update CMakeList.txt and ebuild for v0.5.0
  c_sync: Collapse unused functions
  Configure audio support at runtime - fixes OpenKinect#372
  Use audio serial as a fallback for K4W and 1473 models that do not provide a useful camera serial (thanks @olzhas). Fixes OpenKinect#360 and resolves OpenKinect#393.
  Remove legacy keep_alive.c; now require libusb >= 1.0.18
  c_sync: Add freenect_sync_camera_to_world() (thanks @martyvona) - fixes OpenKinect#294
  Fix a crash-on-exit in the OpenNI2 driver caused by using a deleted iterator.
  Cleanup imports in examples; also fixes a micview compile error on OS X.
  Allow freenect_set_tilt_degs to take a negative angle
  Update CMakeLists.txt for v0.4.3
  win32: Fix command in examples/CMakeLists.txt
  ebuild: Improve python dependency - fixes OpenKinect#391
  Standardize indentation in fnusb_open_subdevices
  Use non-infinite timeouts for bulk tilt / led commands Reset the audio device before using it to ensure the commands can be sent correctly Fixes OpenKinect#390
  Update README.md and CMakeLists.txt for v0.4.2
  Fix fakenect not handling freenect_process_events_timeout
  FN_DEBUG: print read_register and read_cmos_register replies
  Fix cmake module include order Fix cpack user option on linux Separate cpack options for different generators and add tgz generator Add cmake config file Fixes OpenKinect#355
  wrappers/python: update freenect.c - fixes OpenKinect#326
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants