Display Experimental Trajectory Data in Pathfinder Results Viewer

This post demonstrates an undocumented feature in Pathfinder for visualizing experimental trajectory data in the Result Viewer. You can download this zip file seyfried_trajectory_demo.zip for the example Pathfinder file and experimental data file used in the video.

1) Format the trajectory data in a plain text file with agent data in the following format.

person# frame# x y z

2) Place your trajectory data file in the same folder as the Pathfinder results.
3) Setup a model like you normally to define the navigation surfaces, but with only one agent in the simulation.
4) Run the simulation.
5) Edit the resulting PFR file in a text editor so it has these lines:


Note: You will be replacing the AnimFile line in the pfr file with the filename of your trajectory data file in the same directory. Also, You will use the TrajScale and TrajOffset entries in the pfr file to line up the experimental data with your model.

The transformations of the experimental data are applied in this order: Scale, Rotate, Translate.
TrajFramerate – Sets the number of data frames per second.
TrajRot – Rotates all of the data trajectories by the number of degrees specified.
TrajScale – Multiplies the data x,y and z values by the factor specified.
TrajOffset[X,Y,Z] – Translates the x,y,z values by this amount, specified in meters.
TrajZOverride – Sets all of the Z values in the data to the value specified in meters.

6) Double-click the pfr file to visualize in the 3D Results.

If you have any questions, please contact support@thunderheadeng.com

See all Pathfinder tutorials