Distance Between user and The kinect Device

Hey all :)
how to get the distance between user and the kinect ??
i found a function but it's in kinect v1 
public static double GetSkeletonDistance(this Skeleton skeleton)
            return (skeleton.Position.X * skeleton.Position.X) +
                   (skeleton.Position.Y * skeleton.Position.Y) +
                   (skeleton.Position.Z * skeleton.Position.Z);
i don't know how to make it under kinect v2 ?

Joint head = body.Joints[JointType.hipCentre];
return head.Position.Z ;
it always return 0 :/
There is no hipCentre in Kinect v2 SDK. Have a look at
JointType Enumeration. There you can see all the available JointTypes. I am using the
SpineBase , because users may lean from time to time. So
return body.Joints[JointType.SpineBase].Position.Z;
should give you a nice distance. Keep in mind, that even the smallest changes will affect this value. So if you want to check for a distance, you might want to use a threshold or even joint accumulation.
Best regards,
Alex
Edit: Please mark Brekel's answer as answer. Thanks.

Similar Messages

  • Query listing primary user and the primary device

    Is there a query to list the primary device and the primary user associated with that device. Coming from a LANDesk environment I was able to create reports and queries that would list this information pretty easily. I can't seem to link the two in
    SCCM for reporting. Thanks 

    That's a SQL query that should be executed in SQL management studio. It can also be used to create a SRS report.
    Torsten Meringer | http://www.mssccmfaq.de
    Any hints, what it the query itself? And how it should be imported, that it will be created in SRS? Is there any instructions for this? Thanks.

  • When switching between user accounts, the background desktop picture disappears and goes to just a blue background. Whats up with that?

    When switching between user accounts, the background desktop picture disappears and goes to just a blue background. Whats up with that?

    All fixed! It was TeamViewer that was causing the problem.

  • Move an iTunes library between users on the same mac

    How do I move an iTunes library between users on the same mac?
    I accidentally created a secondary user on my mac some time ago when using the migration tool and am now going back and transferring all my files from the secondary to the admin user profile.
    I wanted to know which itunes files/folders need to be copied over.
    Is the process as simple as replacing the itunes folder on admin with the copied itunes folder from my secondary profile or do I need to delete the admin folder first and then copy the old folder over or do I delete the contents of the folder and replace with the copied contents?
    I am using shared folders to move between users, but want to make sure that I am picking the right files to transfer.
    Thanks in advance.

    Assuming you have left iTunes to default settings so everything is still in the iTunes folder the way iTunes likes it to be, copy the whole of the iTunes folder to the new location.  If it is in the default directory (Home > Music) for iTunes the application will automatically use it there for the new account.  If you put it elsewhere you will have to start iTunes and immediately hold down the option key to direct it to the new location.
    It is just possible you will have to change permissions.  If you encounter those issues read the part about changing permissions on the iTunes folder in: https://discussions.apple.com/message/11583914
    This is all a slight variant on:  iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527

  • Multiple profiles/users on the same device

    Hi there,
    I know that iOS is a single user environment.
    But, I am currently working in an enterprise environment and I was wondering if it was possible to have several profiles on the same device, maybe using certificates or so?
    Thanks for your help
    Cheers,
    Pierre.

    It would seem that unlike previous iOS devices the iPad and possibly AppleTV call for the ability to enable multiple profiles/users on the same device.
    I would suggest that if this capability is not on the roadmap for iOS by now then there is a least one place where alternatives to the iPad will have a major advantage.
    The thought they I would have to buy multiple iPads one for myself, my wife and my child because of a software constraint is untenable from a ecological standpoint (all these devices end up as landfill) let alone the economic one.
    Also as I use the iPad I see it's potential to become as important computing platform to me as my laptop eventually surpassing it. In this light I can't see how it could remain just a personal device.

  • Multiple users on the same device

    Can I have 2 or more users on the same device? I want to use a Kindle Fire HD when traveling with separate accounts for my wife and myself.

    You can; you just have to disable automatically signing one of you in (unless you want to constantly log the other one out)

  • Share calendar between users on the SAME mac

    How can I share a single calendar (and address book) between users on the SAME mac? Thanks.

    I've got the same question...
    Anyone?
    Anyone?
    ...bump...

  • How do I share files between users on the same machine?

    I tried using /Users/shared to share files between myself (Admin user) and another user on the machine (Standard user). Whenever I put a file or a folder into said directory permissions are 755 for directories and 644 for files, my umask is 0022. The files and directories belong to my user and the group staff. This means I can read and write and others can read. If I do the same using the other users account. Permissions are 700 and 600 respectively. (Owner is the other user and group is staff.) Strangely the other users umask is 0022, too.
    The result is, that all directories and files I create with my account (Admin user) are readable to every other user on the machine, whereas all directories and files the other user (Standard user) creates are not readable for anyone else. I can easily rectify this using the Terminal and chmod and/or chown, but it is a pain having to do this, since I also need to forcefully restart the Finder App for it to notice the changed permissions.
    Ideally I'd like all directories in /Users/Shared to have permissions 777 and all files 666 no matter which user created, copied or moved them to said location. I think this could possibly be done using applescript and shellscripting and the folder action hook. So far my attempts to find such a script on the net or/and write it myself have failed. I'd be grateful for any hints how I:
    a) write and setup such a script
    b) accomplish what I try to do (share files and folders on the same machine) in another possibly more Mac way
    Kind regards
    David

    The following AppleScript will recursively descend the directory tree and change the items to your modes:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on adding folder items to this_folder after receiving these_items
    repeat with some_item in these_items
    ProcessStuff from some_item
    end repeat
    end adding folder items to
    to ProcessStuff from SomeItem
    processes items contained in SomeItem, recursively descending the directory tree
    parameters - SomeItem [mixed]: an item containing the items to process
    returns nothing
    set SomeItem to SomeItem as text
    set FileInfo to (info for SomeItem as alias)
    if (folder of FileInfo) and not (package folder of FileInfo) then -- a folder (not a package)
    do shell script "chmod 666 " & quoted form of POSIX path of SomeItem
    -- do shell script "chown root:staff " & quoted form of POSIX path of SomeItem user name "me" password "mypassword" with administrator privileges
    try -- to get items in the folder
    tell application "Finder" to set SubFolder to (items of folder SomeItem)
    on error
    return {}
    end try
    repeat with SubItem in SubFolder -- process the sub items
    ProcessStuff from SubItem
    end repeat
    else -- a file
    do shell script "chmod 777 " & quoted form of POSIX path of SomeItem
    -- do shell script "chown root:staff " & quoted form of POSIX path of SomeItem user name "me" password "mypassword" with administrator privileges
    end if
    return
    end ProcessStuff
    </pre>
    You shouldn't need to change the ownership, so I commented out the chown shell script since this would need to be run as a super user. You can run a shell script with administrator privileges, but in order to be used by a standard user you will need to provide the appropriate user name and password in the script, which might not be a good idea - note that the folder action script will need to be attached in all accounts that you want to change the permissions, which means that it would need to be accessible to those accounts.

  • Sharing files between users and macs

    My husband and I share an iMac. I have a MBA for traveling and my husband a PC laptop (though he rarely uses for private stuff). We both have iPhones.
    We are looking for a way to:
    - Share our photos (we don't use iPhoto) and some files. We would like to have this in one shared folder, that we can access from both accounts in the iMac, the MBA and ideally (though not a must) the PC and iPhones. We would both need to have admin rights to edit documents, etc.
    - Have access to all the information in my account on the iMac from the MBA. Ideally, same thing for his and the PC.
    - Have access to all the data remotely when traveling.
    - Have all the data backed up locally (we already have a cloud backup, but we'd like to have a local backup too as it's easier and quicker to access)
    We have read a lot about configuration, NAS, time capsule... but we get more and more confused, as we are obviously no tech experts.
    Dropbox is not our preferred choice. We already have a cloud backup system. We'd rather have the files stored and accessed locally for everyday use.
    Using a NAS to store shared folders and backup the rest sounds good, but they either seem very complicated to set up, or they have mixed reviews in terms of stability, especially to access files remotely.
    Timecapsule seems easier and more straightforward, but I'm not sure it would solve the "sharing files between users and macs with admin rights"? It seems to be more focused on backing up the main drive and then providing access to the backed up files. (Though I might be completely mistaken!)
    We just can't manage to have one shared folder between both accounts in the iMac. We need to grant admin rights document by document. We don't manage to make it work automatically so we both have one folder to access with full rights for all the contents inside it. And this seems to me like something that should easily be done...?
    Any help, advice, proposals... would be greatly appreciated!!!

    Move any file you want to the other user to access to the Shared Folder. Anything you put in that folder is available to all users.
    The shared folder is here:
    Macintosh HD > Users > Shared

  • How do I share microsoft software on a mac between users of the same mac?

    How do I share microsoft software on a mac between users of the same mac?
    New Mac
    Set up Microsoft tools on the mac but can't figure out how to share them between different logins we have setup on our computer

    Hello FritzMills3,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    FaceTime for Mac 1.x: Manage your FaceTime settings
    http://support.apple.com/kb/PH5652
    Open FaceTime preferences
    Choose FaceTime > Preferences.
    The Account field identifies the Apple ID you used to sign in to FaceTime.
    You can turn off and sign out of apple id.
    Have a nice day,
    Mario

  • Dissociate an end user with the primary device

    I need to "Enable Mobily" for a new hire and I need to select his phone as the primary device. However, I run into this error: "Update failed. Device is already associated with another End User as Primary device"
    Is there a way to dissociate the old end user with the primary device? As a last report solution, do you think that by deleting the phone off the CUCM, it will fix the issue when I add the phone back to CUCM?
    Many thanks!
    -Calin

    Thank you George for your prompt response. :) 
    How would you "hunt down the other user" in order to make sure the phone is not associated with that particular user. We have about 3000 phones.
    I checked the phone settings under "Device" - "Phone" and there is no user under "Owner User ID". Although, I think that this field "Owner User ID" is not connected in any way  to Extension Mobility.
    Thanks!
    -Calin

  • HT1349 I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    Welcome to the Apple Community.
    Enter the details of her second account at system preferences> mail, contacts & calendars.

  • How to Use the same iview for both KM End User and the KM Administrator

    Hi friends,
    *This is my scenario :* How to Use the same iview for both KM End User and the KM Administrator but with different Context
    Menu Options.
    i followed these steps but im getting same context menu for both KM End User and the KM Administrator .
    Assign the role Content Administrator to the user km_admin. This is needed so that km_admin can change
    the presentation settings for the KM Folder u201EReports_kmFolder‟.
    Now, login with user km_admin. Navigate to the Km Folder reports_kmFolder through Content Administration
    -> Km Content. Click on Details link of the folder reports_kmFolder.
    Go To Settings -> Presentation. Click on the tab u201ESettings for You‟-> Click on button u201ESelect Profile‟.
    Select the radio button corresponding to u201Elayout Set‟, and choose u201EConsumerExplorer‟ from the dropdown.
    Click u201EOK‟.
    Select both the check boxes corresponding to Items Affected as shown above, and click u201ESave‟
    Now, remove the u201ESuper Administrator‟ role from the user km_admin and login with this user.
    How rto resolve this????
    Regards,
    Prasad.

    Hello Prasad,
    Most likely the user km_admin still has system principal roles assigned, even though you removed the Super Admin role, you should check that this user doesn't have any other admin roles, otherwise it will be considered a System Principal user and will therefore still have access to all content. For more information see http://help.sap.com/saphelp_nw70/helpdata/en/19/56f28fbd4e11d5993b00508b6b8b11/frameset.htm
    Try creating a new user with just read access to the content and you should see that it will not be able to make any changes etc.
    Regards,
    Lorcan.

  • How do I share photos on I-photo between users on the same computer?

    how do I share photos on I-photo between users on the same computer?

    See Terence Devlin's post here >  https://discussions.apple.com/thread/3250415?start=0&tstart=0

  • My Ipod 4th Gen will not turn on. When I hook it up to the computer I get the ITunes symbol and the usb device on the screen of the Ipod. When I go to restore the Ipod it will not restore. I am getting unknown error code 6.

    My Ipod 4th Gen will not turn on. When I hook it up to the computer I get the ITunes symbol and the usb device on the screen of the Ipod. When I go to restore the Ipod it will not restore. I am getting unknown error code 6.

    Likely this:
    Errors related to third-party security software
    Error 2, 4 (or -4), 6, 40, 1000, 9006
    Follow Troubleshooting security software. Often, uninstalling third-party security software will resolve these errors.
    There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. Your default packet size being set incorrectly can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
    Verify that access to ports 80 and 443 are allowed on your network.
    Verify that communication to albert.apple.com or photos.apple.com is not blocked by a firewall, or other Internet security setting.
    Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps underAdvanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations.
    Restore your device while connected to a different network.
    Restore using a different computer.

Maybe you are looking for

  • How to get PDF generated by adobe forms on to Application Server

    I have a program which gathers data into an internal table. The program then calls function FP_JOB_OPEN (with relevant outputparams). Then it calls the function module name, of the Adobe Form, passing the internal table across. Then the job is closed

  • Page Setup dialog doesn't work

    Hi everyone My generic Page Setup dialog box as e.g. used for Word etc. doesn't work: In the Page Setup dialog, the "Setting" menu doesn't work at all, i.e. I can see the dropdown but it doesn't accept my changes (it's fixed on "Page Settings"). All

  • How To Display Bi-Weekly Quota Accruals Other Than Using PT50?

    Is there a t-code or report within SAP that will allow me to see how much Absence Quota is generated each pay period for an employee?  I know I can see this information when I access PT50. However, I would like to know if I can display how much vacat

  • While field  mapping some fields are missing....

    Hi, In field mapping I have some fields are in unassigned status after select auto field mapping.How can I assign this fields ?bcs in standards program this fields are not there.pls guide me..

  • Webcache Team Question - Urgent please

    Hi, I have a pair of 9iAS R1 Servers running forms listener servlet 6i, and reports over cgi - there is a dozen or so reasons as to why I'm compelled to use this configuration. Fronting these I have a webcache 9.0.2 box that is correctly configured f