Skip to content

kaist-uvr-lab/android-imu-2-x

Repository files navigation

android-imu-2-x

This project includes android app which stream IMU data(Accelerometer, Gyroscope, Rotation Vector) through UDP socket and example code of receving IMU datastream in various platform.

Descriptions

AndroidIMU

Project is written with Android Studio, so it will be easier to import this folder as Project on Android Studio. Theere are three different modules inside Project. Three are seperate module for each device type: phone, watch, glass. Three module share common core code which is in 'shared_lib'. Data stream part is working as ForegroundService to prevent closing on newer Android. Unfortunately, if app is crashed, there is no termination button on app. Please use task manager to kill app. It need several permissions to run, and those will show on first run.

There are several options which can set on CONSTANTS class in shared_lib. Can check details in the code with descriptions. When you run this app, it shows current status on start screen.

First line is target IP and Port.
Second line is current connected WiFi SSID.
Third line is MAC address of current device.
Fourth line is current device's IP.

Press CONNECT button to start stream.(You can change target IP and Port with long click before start sending.) Then long click CONNECT button to stop stream.
Press WRITE FILE button to wrtie sensor stream on phone.

GlassEE2

"is under sonctruction now"

receiver_python

imus_UDP is built as Thread. When it starts, it listen for data streamed to lietening Port and store numbers of frame(which is set as 'size').
If you run sensorUDp.py, you can see number of data incoming to see whether receiving works or not. (Becareful, if your devices is connected to local network, then both sending device nad receiving device should be in same network.)

receiver_unity

There are two different version which have identical function. The only difference is that one is using 'Thread' and the other is using 'Task'. It is more related on device's compatibility issue than others. Choose one and use. Dont' use both, it will crash For both, when it starts, it listen for data streamed and print it.

Acknowledgment

This work was supported by Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government(MSIT) (No.2019-0-01270, WISE AR UI/UX Platform Development for Smartglasses)

About

Including android app sending IMU datastream and Receving module in various platform

Resources

License

Stars

Watchers

Forks

Packages

No packages published