Processing chain in ROS-Neuro to determine when the logarithmic bandpower of the EEG signal crosses a given threshold.
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.
https://drive.google.com/file/d/1uBr5xO4rIT2c4uyMv3Wp68hWRpg_plb_/view?usp=sharing
- 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
logbandpower
package in directorycatkin_ws/src/
-
If it does not exist, create directory
record
in package directorycatkin_ws/src/logbandpower/
-
Create directory
dataset
in package directorycatkin_ws/src/logbandpower/
-
Rename the input GDF file as
data.gdf
and 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.launch
to start the analysis from directorycatkin_ws/
source ./devel/setup.bash
roslaunch logbandpower logbandpower.launch
- Once the analysis is completed, the ROS bag
result.bag
is 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.
- 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
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.gdf
in directoryhome/user/
- Comment
Option 1
(default) and decommentOption 2
in the launch fileacquisition.launch
<!-- Option 2: VLAB virtual machine -->
<arg name="devarg" default="/home/user/data.gdf"/>
- 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
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 |