ProjectionAngle

A ProjectionAngle element defines the angle between two vectors which are projected in a plane defined by its normal vector.

There are mainly to possiblities to defined the two vectors. In the first version the two vectors are defined by a common point laying in the projection plane (JointCenter) and two other points given in absolute coordinates which were pojected into the plane before the angle is calculated.

In the second version the two vectors are given directly by directed vectors also given in the global coordinate system.

 Es wird davon ausgegangen, dass die angegebenen Vektoren in einem
 rechtshändigem Koordinatensystem formuliert sind. Ist das nicht der
 Fall bekommt man pi minus dem Winkel zurück.
 
 Liegen die Vektoren in einem linkshändigem Koordinatensystem vor, dann ist
 es am einfachsten das Vorzeichen aller z-Kompoenten zu wechseln d.h. sowohl
 der Hebelarme als auch der angegebenen Achse für die Orientierung.
 
 Der Winkel ist definiert vom zweiten zum ersten Hebelarm hin.

Attributes

Attribute Description Required
name
name of the element Yes
ProjectionAxis
(oder der alte name Axis)
normal vector defining the plane in which in the angle is calculated.
No
JointCenter

(deprecated)
A point defining together with the Axis the plane in which the angle is calculated. This point is also the start point of the two vectors between the angle is calculated. No,
but if these three arguments are not used, FirstVector and SecondVector must be used instead.
LeverArmPoint1
(deprecated)
This point defines the end point of a first vector which starts at the position of the JointCenter. The vector is projected into the plane before the angle is calculated.
LeverArmPoint2
(deprecated)
This point defines the end point of second vector which starts at the position of the JointCenter. The vector is projected into the plane before the angle is calculated.
FirstVector
The two vectors between the angle is calculated after its projection to the plane with ProjectionAxis as normal vector. No,
but if these three arguments are not used, JointCenter, LeverArmPoint1 and LeverArmPoint2 must be used instead.
SecondVector
useOffset
Die Implementierung scheint auskommentiert zu sein!!!
true, than the value of the attribut Offset is added to the resulting projection angle.
No
Offset
angle offset value which is added to the resulting projection angle, if the attribute flag useOffset is set to true.
unsigned
If set to "true" the angle is calculated in the range from 0 to 360 degrees. If this attribute is set to "false" the angle is calculated in the range from -180  to +180 degrees.  
noiseAmplitude
   
debug
   
visible
   
includes
comma seperated list of switches  
excludes
   
calibrateIncludes
   
calibrateExcludes
   
average
Additional calculation of the trial average. The value is saved as a parameter with the name of the element and "Average" as a suffix: <name of the element>Average  
unit einführen
deg oder rad, Default=deg  

Note

Further attributes inherited from CalcModelElement.

Generated Trajectories

Name Type Description Timeserie
<name>Axis
3d vector   Yes
<name>Angle
double  
Yes
<name>JointCenter
3d vector   Yes
<name>LeverArmPoint1
3d vector   Yes
<name>LevelArmPoint2
3d vector   Yes

Examples

<ProjectionAngle name="A"
FirstVector="REJC-RGHJC"
SecondVector="VerticalAxisCC"/>

In the calibration trial defined by the switch "static" A is calculated as B+C 

<Point name="A"
average="true"
excludes="static">B+C</Point>