Matlab functions for extracting and plotting biotac data from rosbag files.
Various scripts for exporting biotac data from rosbag files to matlab redable .txt files
Add this directory to your env variable ''PATH'' and then source your .bashrc:
echo "export PATH=<export_rosbag_directory>:$PATH" >> ~/.bashrc
source ~/.bashrc
Then to export e.g. electrode data:
biotac_export_electrode <rosbag_file> <prefix>
Two arguments are used, the first one is the rosbag file
and the second one the prefix
.
Produces a <prefix>_electrode.txt file. For exporting everything use the biotac_export_data command.
Use the biotac_data class contained in the @biotac_data directory
-
Add the
biotac_matlab
directory to your MATLAB path -
Create a biotac_data object in Matlab:
x = biotac\_data\( \); x\.load_data\('prefix'\); display\(x\);
Where 'prefix' is the prefix used previously for exporting from ROS bags to .txt files (e.g. exp1_electrode1.txt, exp1_pac1.txt).