Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'calibrate_and_record.py' Data storage format #26

Closed
seungyun1 opened this issue Jul 14, 2021 · 5 comments
Closed

'calibrate_and_record.py' Data storage format #26

seungyun1 opened this issue Jul 14, 2021 · 5 comments

Comments

@seungyun1
Copy link

Hello, I don't know if you remember, but I am a university student living in Korea who studied and inquired about how to utilize data using Tobii in ROS.

Thanks to your kind reply last time, I was able to proceed smoothly with sending and receiving data from ROS.

I'm asking you again because I have a question.

If you run the code 'calibrate_and_record.py', you can see that the data is saved in the form of a json file.

I would like to save this data as a csv file to utilize it smoothly.

So I'm looking at the 'tobiiglassesctrl' module to modify the way data is stored, and I don't know how to approach it.

If you know how, could you give me some advice or hints?

Thank you so much!

@ddetommaso
Copy link
Owner

Hi @SeungYoonLee1

happy to hear that you integrated successfully the controller in ROS!
About the exporting in csv is a feature already implemented in the TobiiGlassesPySuite.

Please have a look in the paper https://dl.acm.org/doi/abs/10.1145/3314111.3319828 and the examples in the public repo and you'll find the answer and many other examples.

Best!

@seungyun1
Copy link
Author

seungyun1 commented Jul 21, 2021 via email

@seungyun1
Copy link
Author

seungyun1 commented Jul 21, 2021 via email

@ddetommaso
Copy link
Owner

Hi @SeungYoonLee1

please check out this example for saving raw data in a csv file.

As parameters you need to provide:

  • projects_dir (The path of the directory where projects.ttgp is located, very likely your SD card path)
  • project_id (The project_id (or folder name) from where importing the recordings)
  • recording_id (The recording_id (or folder name) from where import the segments)

You can get those information using these scripts

@seungyun1
Copy link
Author

seungyun1 commented Jul 22, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants