Thumbnail

Kinect Body Control

by Microsoft

Control robot servos using your body and a Microsoft Kinect

How to add the Kinect Body Control robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the Camera category tab.
  5. Press the Kinect Body Control icon to add the robot skill to your project.

Don't have a robot yet?

Follow the Getting Started Guide to build a robot and use the Kinect Body Control robot skill.

How to use the Kinect Body Control robot skill

This skill enables controlling servos of your robot by moving joints of your body, which are detected by a Microsoft XBOX 360 Kinect only. Servos can be assigned to each joint using the Settings window. Degrees to move the servos are automatically calculated for joints in relation to the connecting joint. For example, the wrist position in degrees is calculated in relation to the elbow position. And the elbow position in degrees is calculated in relation to the shoulder position. Each joint can be assigned to control servo positions between 1-180 degrees of your robot.

Required Drivers

The SDK 1.8 can be installed from here, as you will need the libraries it includes: https://www.microsoft.com/en-ca/download/details.aspx?id=40278

Main Window

User-inserted image
1. Pause Checkbox When this is checked no servos will move.

2. Sitting Position Checkbox When this is checked only the Upper Body servos will be activated, and the lower body will not be detected. As a result, the lower body servos won't be active.

3. Kinect Body Joint Visualization This section shows a visual representation of the joint values that are detected.

4. Joint Data Output This section shows a numerical representation of the joint values that are detected.

Configuration - General Tab

User-inserted image

1. Smoothing Value Drop-down This drop-down adjusts the smoothing value for servo movement. As the smoothing value increases, it removes servo jitter. However, as the smoothing value increases, the more servo delay will be introduced.

Configuration - Upper Body Tab

User-inserted image

1. Upper Body servo Configuration This section of six servos allows you to set up the servo movement parameters for the upper body such as servo port, board index, servo configuration, max/min degree limitations, multiple servo control, and inverted direction.

Configuration - Lower Body Tab

User-inserted image

1. Lower Body servo Configuration This section of 6 servos allows you to set up the servo movement parameters for the Lower body such as servo port, board index, servo configuration, max/min degree limitations, multiple servo control, and inverted direction.

*Note: When the Sitting Position checkbox is enabled (in the Main Window) the Lower Body will not be detected.

How to Use Kinect Body Control

  1. Download and install the Kinect SDK (link in the "Required Drivers" section above).

  2. Plug your Kinect sensor into wall power and a USB port on your PC.

  3. Add the Kinect Body Control skill to your ARC project (Project -> Add Skill -> Misc -> Kinect Body Control).

  4. Use the Kinect Body Control Configuration tabs to setup any servos that you would like to move.

  5. Connect ARC to the servos/robot that you would like to control.

  6. Ensure your body is at least 3 feet away from the Kinect sensor to be detected (ideal distance is 6 feet) and start moving around.

  7. If you are experiencing servo jitter, try adjusting the Smoothing value in the Configuration General tab.

Video

Requirements

Kinect Compatibility We're unsure of what Kinects work with the SDK in Windows, due to limited information published by Microsoft (or at least hard to find information). There are multiple Kinect versions, the one we use is the XBOX 360 Kinect.

Work In Progress

  • The servos for legs are not implemented yet
  • The shoulder rotation servos are not implemented yet

ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

#1  

@DJ Nice plugin!... I actually have an asus xtion so in the morning I will see if it will work with your kinect plugin.... :)

#3  

@DJ Totally understand that... but the xtion is a very close clone to the kinect... It might actually work...just sayin'. If it doesn't it's ok... The xtion has been discontinued anyway, I believe...

PRO
Synthiam
#4  

It won't because the drivers aren't compatible. The only similarities between the two devices is their intended use-case. I don't want to give you any false hope :D

It'd be different if the Windows OS had a built-in API that standardized these device types. Similar to how a camera (of any manufacturer) is compatible because they're built with drivers to fullfill API requirements. This allows a standard for any video hardware to connect and become a camera in the Windows OS. However, with the kinect, the driver is specific and actually a PITA because large SDK files have to be downloaded and installed, etc...

#5  

@DJ... I appreciate that and no worries... Funny thing is the timing couldn't have been better... I just finished building the second heavy duty robot arm.... The plugin would work perfectly with them.... :) If it doesn't work I will eventually pick up a Kinect anyway...

Stay tuned as I should have a video of my BaristaBot within the next week or so... :)

PRO
Synthiam
#6  

looking forward to seeing that!

as for the kinect - don't get an xbox kinect. Get the Kinect For Windows. At least, that's what i've been reading. I'm under the impression that the xbox kinect won't work outside of a development environment (i.e. visual studio).

Maybe @ptp has some input on that subject, if he sees this post

PRO
Synthiam
#8  

Ops, cancel that - looks like the Kinect For Windows is discontinued or being discontinued: https://www.engadget.com/2015/04/02/rip-kinect-for-windows/

But i have an xBox 360 Kinect, and it doesn't work with latest drivers. So word on the street is to get the xBox One Kinect

PRO
USA
#10  

@DJ, @Richard

It's not forgotten but the scope got bigger and i was waiting to get a alpha version.

I'll look to my code base, and i'll post something during the weekend.

#11  

Any news about Kinect V2 support?

PRO
USA
#12  

https://synthiam.com/Products/Controls/

Depth Sensor (Kinect V1, Kinect V2, Asus): https://synthiam.com/redirect/legacy?table=plugin&id=173

#13  

Nice this works:D Body control would still be nice:) it just needs to be opdated to take kinect20.dll too with kinect10.dll...

PRO
USA
#14  

From your perspective (the user) it seems a simple change swap kinect10.dll with kinect20.dll and voila!

The reality is different: Kinect 2.0 has a different API, you will need:

  1. change the code to support two different APIs.
  2. Check before loading the DLLs (Lazy load) or create/support different plugins (the user can have both sensors or only one of them).

All the above is only possible if you have the real stuff (Kinect V2).

Netherlands
#15  

I have installed the plugin and installed the right kinect software also. (kinect 1, Windows 10)

The kinect works when I start the Microsoft Kinect software: I can see camera vision and movements.

When I try to use the EZ-robot with kinect plugin, I can connect the EZ-Robot software to the kinect (it's is found by the ez-robot software), but then it ends. No red wire movements or whatever.

I got some info on the plugin-window once, but didn't got that also anymore.

Any help would be nice !

With kind regards,

;-) Arthur

PRO
Synthiam
#16   — Edited

Hi Arthur - did you install the driver specified in the description above? I believe it is 1.8, and the link is included above. What do you mean by "then it ends"? Are you meaning the computer shuts down or ARC crashes? I'll need as much information as you can tell me to help

Also, @ptp made a much better plugin that you can find here: https://synthiam.com/Software/Manual/DepthSensor-15873

#17   — Edited

Oh that's right I forgot there was a Kinect plugin ,I have one Kinect camera from Xbox 360 but it has the funny USB connector that won't fit standard computer USB ports. I guess I need to buy the special adapter to fit on computers,I saw them cheap on Ebay and Amazon. Not sure if it will work with EZ software but I do see articles online how to get it working on any windows 10 Laptops so will try both ways as the camera only cost me 13 dollars at one of those hock shops ,it looks brand new and hopefully will power up when I get the special USB adapter to Laptop kit.

#18   — Edited

Do I have to install the Developer tool kit, because I do not see any lines in the plugin box when i move around.

PRO
Synthiam
#19  

Did you install the stuff that is mentioned in the plugin description?

PRO
Synthiam
#21  

Great - then long as you’re using the correct 360 Kinect, it works as instructed in the video.

PRO
Canada
#22  

@Autiboy, just double checking, do you have the power supply for the Kinect plugged in? It cannot work with just USB.

#23  

Yes I have the usb ac power supply for the xbox 360.  The problem is that I cannot see the xbox 360's camera in ARC when I move.

PRO
Synthiam
#24  

In the demo video above, what part is not working for you? You never see the 360’s camera output. It’s expected to see your skeleton when standing in front of the Kinect 360.

Next Friday I will demo how to use the Kinect with ARC.

#25  

Thanks DJ That would be nice.  Also the 2nd Fridays video does not work did you not stream that day?

Netherlands
#26  

Nice app. Works great. When will you inplement the shoulder rotation servos then it would be ideal for my inmoov.

PRO
USA
#27   — Edited

My Kinect module is showing this below:

I am fully updated, windows 10 also

what can I do?

sorry, I do not have the Microsoft xBox 360 -

User-inserted image

PRO
Synthiam
#28   — Edited

You can follow the instructions above to install the appropriate drivers. And ensure your connect is a compatible version

PRO
USA
#29  

Thanks,

I am following the instructions. I did install the libraries - https://www.microsoft.com/en-ca/download/details.aspx?id=40278

no errors now

All I need is the Microsoft xBox 360 Kinect only

I am looking around now for a Microsoft xBox 360 Kinect only  - not hard to find

Have a great New Year! 2020

PRO
USA
#30  

Received my Xbox 360 Kinect only  - works well, thanks

PRO
Synthiam
#31  

Right on! That’s super cool

PRO
USA
#32  

Thanks Dj and Jeremie

Almost 2020 soon - sounds futuristic,  lol

PRO
USA
#33  

how did this thread get here it is from Dec, 2019

PRO
Synthiam
#34  

It’s not a thread. It’s a robot skill and it was updated. You responded to an update for a robot skill.

PRO
USA
#35  

got it, thanks Dj

PRO
USA
#36  

I did the Kinect Body Control earlier

wee remote -  xboz 360

more tomorrow :-)

EzAng

PRO
Canada
#37  

I am trying to teach my humanoid to use this but struggling. The shoulder rotary doesn't seem to work, the hands show up but can't link to servo, The lower body is labeled shoulder elbow same as upper body.

User-inserted image

PRO
Synthiam
#38  

Doesn't seem like those are developed...

User-inserted image