Display Experimental Trajectory Data in Pathfinder Results Viewer
The video below guides you through the example shown in this post.
This post demonstrates an undocumented feature in Pathfinder for visualizing experimental trajectory data in the Result Viewer.
You can download the zip file
seyfreid_trajectory_demo.zip which containts an example Pathfinder file and experimental data file used in this post here.
The following steps will guide you through how to visualize experimental trajectory data in Pathfinder.
Format the trajectory data in a plain text file with agent data in the following format:
person# frame# x y z
- Place your trajectory data file in the same folder as the Pathfinder results.
- Setup a model like you normally would to define the navigation surfaces, but with only one agent in the simulation.
- Run the simulation.
Edit the resulting PFR file in a text editor so it has the following lines:
AnimFile=[trajectory_file].txt TrajFramerate=16 TrajRot=90 TrajScale=.01 TrajOffsetX=0 TrajOffsetY=-1.7 TrajOffsetZ=0 TrajZOverride=0
The values for each of these parameters are example values only. You will need to modify these values to align the trajectory data display with your individual model or video data.
The parameters are defined as:
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.
The transformations of the experimental data are applied in this order:
- Double-click the *.pfr file to visualize in the 3D Results.
To download the most recent version of Pathfinder, please visit the Pathfinder downloads page and click the link for the current release. If you have any questions, please contact firstname.lastname@example.org