diff --git a/_posts/2024-11-24-thomaseo-cosmic_clash.md b/_posts/2024-11-24-thomaseo-cosmic_clash.md index 10ec87db..52ca66a34 100644 --- a/_posts/2024-11-24-thomaseo-cosmic_clash.md +++ b/_posts/2024-11-24-thomaseo-cosmic_clash.md @@ -13,6 +13,7 @@ excerpt: "Cosmic Clash - exploring gamification of physiotherapy exercises using ### Introduction Can a game be used to help patients do their physiotherapy exercises better? What would this game look like and how would it work? These are the questions that we have been working on answering this Autumn in a collaboration between IMV and IFI at UiO alongside an industrial partner - SiFi Labs.
+
@@ -46,8 +47,8 @@ Cosmic Clash! is the name of the game. It’s an arcade-style point-and-shoot ga ### Data Processing
- - **IMU** + IMU +
An IMU is a sensor used to measure motion and orientation. The BioPoint IMU, in this instance, integrates a 3-axis accelerometer and a 3-axis gyroscope, which allow it to measure linear acceleration and angular velocity. The IMU data packets from the BioPoint include a quaternion — a four-component representation of the device's orientation in 3D space. The sampling rate of the IMU is 100Hz. Check the diagram for a reminder of Euler (rotational) angles.
@@ -71,9 +72,9 @@ The following equations are used to compute roll, pitch, and yaw from quaternion
- - **EMG** -EMG sensors detect the electrical activity produced by muscles during contraction, providing information about muscle activation levels, timing, and patterns. The EMG sensor in the Biopoint has a sample rate of 2 kHz. Similar to an audio waveform image, EMG data moves between positive and negative values - the further away from zero in either direction, the higher the signal level. To utilise this signal in our game, found the absolute value of a rolling average (across 8 samples in each data packet) and applied a threshold. When the signal goes over the threshold, a shoot command is sent. + EMG +
+ EMG sensors detect the electrical activity produced by muscles during contraction, providing information about muscle activation levels, timing, and patterns. The EMG sensor in the Biopoint has a sample rate of 2 kHz. Similar to an audio waveform image, EMG data moves between positive and negative values - the further away from zero in either direction, the higher the signal level. To utilise this signal in our game, found the absolute value of a rolling average (across 8 samples in each data packet) and applied a threshold. When the signal goes over the threshold, a shoot command is sent.
Credit: SiFiLabs @@ -84,6 +85,7 @@ EMG sensors detect the electrical activity produced by muscles during contractio + ### System Architecture The game was developed using the node.js runtime. This environment allowed us to develop a browser-based game with the capability for two players to collaborate simultaneously. Currently, data is acquired and processed in python and passed to a node server using web sockets. In the project folder, java script files handle game mechanics and html files render objects in the browser.