This ARC plugin enables customize angle calculations, publish the calculations to variables, and control servos.
How to add the Depthsensor robot skill
- Load the most recent release of ARC (Get ARC).
- Press the Project tab from the top menu bar in ARC.
- Press Add Robot Skill from the button ribbon bar in ARC.
- Choose the Misc category tab.
- Press the Depthsensor 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 Depthsensor robot skill.
How to use the Depthsensor robot skillThis ARC plugin enables customize angle calculations, publish the calculations to EZ-Script variables, and control servos. Supported Hardware: Kinect Xbox 360 (Kinect for Windows Runtime 1.8 - https://www.microsoft.com/en-us/download/details.aspx?id=40277) Asus Xtion Pro (OpenNI 2 and NITE 2) Kinect One (Kinect for Windows Runtime 2.0 - https://www.microsoft.com/en-us/download/details.aspx?id=44559)
Addional Setup Notes for Asus Xtion:
Please confirm the following windows environment variables:
OPENNI2_REDIST=C:\Program Files (x86)\OpenNI2\Redist\
NITE2_REDIST=C:\Program Files (x86)\PrimeSense\NiTE2\Redist\
PATH=...;C:\Program Files (x86)\PrimeSense\NiTE2\Redist\;C:\Program Files (x86)\OpenNI2\Redist\;
Create a NITE.INI file with the following content:
DataDir=C:\Program Files (x86)\PrimeSense\NiTE2\Redist\NiTE2
; 0 - Verbose; 1 - Info; 2 - Warning; 3 - Error. Default - None
save in your ARC location e.g. C:\Program Files (x86)\Synthiam Inc\EZ-Builder\
Plugin Main Area:
The picture panel where is displayed the skeleton tracking.
Run-time variables (checked for preview) values
Selected Device (Configuration Form)
Connect Checkbox (dis)connects the selected device
Servos Attached Checkbox (dis)connects the servos (previous configured)
*** Do not forget to press Save Button ***
Active - Enable or disables the expression
Preview - if checked the value is displayed in the main form
Publish - the variable is created and updated and can be used with EZ-Scripts
Type - There are 4 types of variables: double, Vector2 (X,Y), Vector3(X,Y,Z) and Quaternions (X,Y,Z,W)
Expression - C# expression to be compiled, evaluated and assigned to a variable.
Board, Port, Min, Max - When all specified a servo Position command will be executed using the value (double) from the expression.
Drag and drop is allowed
Multiple line selection is allowed
Right Button presents a context menu option to delete expressions.
There is a default template [R]Angles, press Load template to populate the JD's upper body expressions.
Specifying a name allows to save a Template (Expressions plus last body values).
Loading a template will override the existent expressions.
For each Joint there are two variables one for Position and another for the Rotation.
Each device returns a specific number of joints (check the device tabs), if not supported the Joint variables will be zero.
Position is a Vector3(x,y,z) representing the distance from the sensor point of view. The unit values are in meters.
Rotations is a Quaternion(x,y,z,w) is possible to obtain the Euler Angles (roll,pitch,yaw). I'm still working to unify the results, some sensors the rotations are absolute, others are relative.
For each Joint two variables are defined - For SpineBase:
if you want to use the SpineBase depth distance you use SpineBase.Z
Vector2 ToVector2(double x, double y)
Vector3 ToVector3(double x, double y, double z)
Vector3 GetEuler(Quaternion q)
double AngleBetween(Vector2 v1, Vector2 v2)
double AngleBetween(Vector3 v1, Vector3 v2)
double Normalize(double value, double start = 0, double end = 360)
double Abs(double value)
double Min(double a, double b)
double Max(double a, double b)
double Pow(double a, double b)
double Sqrt(double d)
double Cos(double a)
double Sin(double a)
double Tan(double d)
double Cosh(double a)
double Sinh(double a)
double Tanh(double d)
double Acos(double d)
double Asin(double a)
double Atan(double a)
double Atan2(double y, double x)
*** Do not forget to press Save Button ***
Calculations are evaluated based on the Grid input:
Joint's Position values (Px,Py,Pz)
Quaternion values (Qx,Qy,Qz,Qw) only required if the used in the expressions.
For additional feedback, questions use the following thread:
Unfortunately the time is not enough..., feel free to point text/info errors, create a tutorial or exploring the plugin.
Provides a means to send HTTPGet() messages from ARC to the...
Ez430-Chronos Wrist Watch
By Texas Instruments
The Texas Instruments eZ430-Chronos Programmable Wrist Watch...
DHT11 Temp & Humidity Sensor
The DHT11 is a basic, ultra low-cost digital temperature and...