Data Recording and Export Workflow

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.

  1. Collect actor’s orientation and position over time (I plan to use Quest 3 controllers)

  2. Write orientation and position data to a data table

  3. 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!

スクリーンショット (7)

スクリーンショット (7)2626×809 494 KB

1 Like

Hi there :waving_hand: and welcome to the community.

If you want realtime as bonus.

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 :slight_smile:
In Unreal → UDP → Socket (Message of transforms)-> Matlap (read UDP)

SendMessage : There is a nice forum thread about those over here Communication Between UE4 and a Python UDP Server

ReadMesseage : Matlab seems can receive information like this https://www.mathworks.com/help/instrument/basic-udp-communication.html without any other need.

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

On matlab side you can catch these now with a simple listener. On windows you can simply listen UDP to test with GitHub - qinst64/udp-win: Udp socket tool for windows. Include server and client. or netstat commands.

and simply listen data on matlab side with integrated listener.

1 Like