Tip
Repository for this module: https://github.com/SmartArmStack/sas_datalogger
More information about SmartArmStack is available at https://smartarmstack.github.io/.
mkdir -p ~/sas_datalogger/docker/sas_datalogger_example
cd ~/sas_datalogger/docker/sas_datalogger_example
curl -OL curl -OL https://raw.githubusercontent.com/SmartArmStack/sas_datalogger/refs/heads/jazzy/docker/sas_datalogger_example/compose.yml
docker compose upImportant
To stop, press Ctrl + C. Do not forget to remove the containers:
docker compose down -vThe saved .mat file will be located at ~/sas_datalogger/docker/sas_datalogger_example/logs.
This package provides a datalogger server and suitable client APIs in C++ and Python.
The main datalogger node subscribes to /sas_datalogger/log and stores received values in memory.
When the node is shut down it saves the collected data to a MATLAB-compatible .mat file (via scipy.io.savemat).
Recommended use is through the launch file. The server must be launched separately.
ros2 launch sas_datalogger sas_datalogger_launch.pyA Qt-based GUI that reads the datalogger's internal dictionary and creates execution-time plots for numeric values.
Recommended use is through the launch file. The server must be launched separately.
ros2 launch sas_datalogger sas_datalogger_gui_launch.pyThe package includes simple example clients that publish matrices, vectors, scalars and strings to the datalogger topic.
scripts/sas_datalogger_client_example_py.py— Python example client.src/examples/sas_datalogger_client_example.cpp(binary:sas_datalogger_client_example) — C++ example client.scripts/sas_datalogger_client_example_result_check.py— opens and inspects the generated.matfile usingscipy.io.loadmat.
Recommended use is through the launch file. The server must be launched separately.
ros2 launch sas_datalogger sas_datalogger_client_python_example_launch.pyRecommended use is through the launch file. The server must be launched separately.
ros2 launch sas_datalogger sas_datalogger_client_cpp_example_launch.py