-
Notifications
You must be signed in to change notification settings - Fork 145
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
Implementation of the IMU inside the StreamRecorder App #67
Comments
Hey @ozgunkaratas, Sadly I can't help you, since I am working on the same problem. Would you be so kind and share your code with us? So we can maybe help each other. Kind regards |
hello Sayoj, // Loads vertex and pixel shaders from files and instantiates the cube geometry.
} |
Hey @ozgunkaratas with a lot of help of a good friend of mine, we managed to make it work. I hope this may help you! :) |
Hello @Sayoj thank you for your response, i will have some time with the Hololens tomorrow and i will try your app on it. I was working on some extensions myself to include accel,gyro and mag on separate files and i will try to upload this code as well! if i get it working i will close the issue and open up a new one with gyro and mag extensions so that everyone can benefit! best regards |
Hello @Sayoj, i extended the code into three different threads and the sample can be found here https://github.com/ozgunkaratas/HoloLens2ForCV i hope this helps other people as well. additionally, have you tried to write the files into a single txt file instead of creating a .txt file for every timestamp? The tarball produces multiple .txt files for each timestamp. i tried using std::ofstream but the txt file is never created to begin with. i will focus on this and update the fork accordingly, best regards |
Hey @ozgunkaratas Having it in three different threads makes the code definitely much more clearly and easier to read! :D Yeah, I am working on the same problem. Can't figure out how to just write the IMU data in one text file. If you happens to solve this, please let me know. Best regards |
Hey @ozgunkaratas Anything new on your front? Did you managed to integrate it into one file with timestamp? Meanwhile I tried to translate the code into HoloLens2-Unity-ResearchModeStreamer, but still to no avail yet. Kind Regards |
Hello, @Sayoj cat $(find . -maxdepth 1 ! -name "." -type f -printf "%T+ %p\n" | sort | sed 's/^. //') >> BIGFILE additionally, there is another timing problem that i came across. Inside TimerConverter.cpp there is a UniversalToUnixTime function that i wanted to use, but i currently do not have access to the HL. I presume that this function will not use the relative ticks happening in the sensor to stamp the data but rather directly use FILETIME. Maybe you can also try this out and update the repo on your findings, kind regards Özgün |
Hi @Sayoj ! I'm interested in the device temperature data and have been trying to use your modifications to save the IMU frames, but am running into issues accessing the IMU data (have tried ACCEL and GYRO). I'm able to work with the DEPTH_AHAT data, so I think device side everything should be alright. While debugging, this is where the exception arises (in RMCameraReader.cpp): Would you have any idea or hints on where to look? Thanks in advance! |
Hello everybody!
i am aware that the StreamRecorder app must be modified to ask consent for the IMU both in app manifest and also by editing for asking consent, however i still have some questions regarding this matter. Since update loops are only for the cameras, i was wondering if we have to individually implement some update and write threads (for example, similar to RMCameraReader.cpp) so that we can save the data obtained from the IMU. If that is the case, i would appreciate some tips and hints !
thanks in advance!
The text was updated successfully, but these errors were encountered: