Hello, I am hoping to work on a school project that essentially collects an actor’s position and orientation data and exports it as a .csv file. I see that there is a system to export a pre-written data table as a .csv, but I’m not seeing many resources that allow for writing the data during runtime and saving the data table as an output. Any guidance on how to do this would be awesome, ideally this is how it would work.
Collect actor’s orientation and position over time (I plan to use Quest 3 controllers)
Write orientation and position data to a data table
Export data table as a .csv
That should be the end of UE’s role for this project. As a bonus, if anyone knows how to pass that data through MATLAB in realtime, that would be amazing. Cheers!
1- You can just write a single file like @Origins says and you can update file with a rate (every 0.2 seconds). You read that file every 0.2 matlab side so its realtimeish.
2- Real Realtime
In Unreal → UDP → Socket (Message of transforms)-> Matlap (read UDP)
3- Real Realtime but easier : Install this as instructed. This a ready wrapper similar to explained in 2 but you dont require code, its ready and you can put under your plugins and enable as instructed.
Then you can add UDP component to your actor and send UDP messages realtime like this