PositionTracker
This simulation component tracks the current position of a selected 3D object.
When to use
Use this simulation component if you want to track the current position of a 3D object at runtime.
For example, the position of an Automated Guided Vehicle should be monitored for evaluation to make some path optimizations afterwards.
How to use
Add this simulation component from the simulation component library. Select a 3D object which should be tracked either in the 3D view or in the assembly structure window using the template select button. When the simulation is running the current position will be outputted.
Note
The current position of the 3D object will only be updated if the simulation is running.
Note
The current position of the tracking point is marked with a small cross.
Parameters
GlobalOrigin
Indicates a point in the global coordinate system which defines an offset of the tracking point from the selected 3D object.
Object3D
Indicates the 3D object which should be tracked.
Outputs
X_Position
Output indicating the current global x position in m of the tracking point.
Y_Position
Output indicating the current global y position in m of the tracking point.
Z_Position
Output indicating the current global z position in m of the tracking point.
Example
In this example, the position of an AGV, as already described roughly above, should be monitored for evaluation. Therefore the simulation components PositionTracker and FileLogger, as shown in the picture below, are used.
As 3D object the whole moving assembly of the vehicle is selected.
The highlighted assembly is shown in the picture below.