Logbandpower
Processing chain in ROS-Neuro to determine when the logarithmic bandpower of the EEG signal crosses a given threshold.
Install / Use
/learn @FedericoPivotto/LogbandpowerREADME
Log Band Power
Processing chain in ROS-Neuro to determine when the logarithmic bandpower of the EEG signal crosses a given threshold.
Dataset
The GDF file provided was recorded using a 16-channel EEG amplifier (g.USBamp, g.Tec) at a sampling rate of 512 Hz, where the electrodes were positioned according to the 10-20 international system.
Resource
https://drive.google.com/file/d/1uBr5xO4rIT2c4uyMv3Wp68hWRpg_plb_/view?usp=sharing
Instructions
- Source ROS workspace
source /opt/ros/noetic/setup.bash
- Initialize a catkin workspace called
catkin_ws
mkdir -p catkin_ws/src
cd catkin_ws/src/
catkin_init_workspace
- Compile the catkin workspace from directory
catkin_ws/and source it
catkin build
# or
catkin_make
source ./devel/setup.bash
-
Copy
logbandpowerpackage in directorycatkin_ws/src/ -
If it does not exist, create directory
recordin package directorycatkin_ws/src/logbandpower/ -
Create directory
datasetin package directorycatkin_ws/src/logbandpower/ -
Rename the input GDF file as
data.gdfand copy it in directorycatkin_ws/src/logbandpower/dataset/ -
Compile the catkin workspace from directory
catkin_ws/and source it
catkin build
# or
catkin_make
source ./devel/setup.bash
- Run launch file
logbandpower.launchto start the analysis from directorycatkin_ws/
source ./devel/setup.bash
roslaunch logbandpower logbandpower.launch
- Once the analysis is completed, the ROS bag
result.bagis saved in directorycatkin_ws/src/logbandpower/record/
Note: the provided ROS bag result.bag was recorded in a local machine using the latest version of ROS Neuro.
Tested Environments
- Local machine, Ubuntu 20.04.6 LTS, Python 3.8.10, ROS Noetic, catkin workspace build with command
catkin build - Local machine, Ubuntu 20.04.6 LTS, Python 3.8.10, ROS Noetic, catkin workspace build with command
catkin_make
VLAB Environment
Due to an older version of ROS Neuro installed in the VLAB virtual machine, a modification is required to make the package running correctly.
It is required to:
- Move the input GDF file
data.gdfin directoryhome/user/ - Comment
Option 1(default) and decommentOption 2in the launch fileacquisition.launch
<!-- Option 2: VLAB virtual machine -->
<arg name="devarg" default="/home/user/data.gdf"/>
Authors
- Federico Pivotto, 2121720, federico.pivotto@studenti.unipd.it
- Alessandro Bozzon, 2122185, alessandro.bozzon@studenti.unipd.it
- Riccardo Simion, 2157564, riccardo.simion@studenti.unipd.it
- Riccardo Zerbinati, 2158676, riccardo.zerbinati@studenti.unipd.it
Contributions
| Member | Workload | Work |
| ------------------ | :------: | ------------------------------------------------------------------- |
| Federico Pivotto | 25% | Setup CMakeLists.txt, config package.xml, script bandpower.py |
| Alessandro Bozzon | 25% | Config ChainCfg.yaml, script thresholding.py |
| Riccardo Simion | 25% | Script record.py, code debugging |
| Riccardo Zerbinati | 25% | Component launch files, launch file logbandpower.launch |
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
