...
Data playback and recording works in the same way for all FusionHub versions. It has been described in the previous chapters, but I’ll add a recap here to give it its dedicated chapter, as it’s a very important feature for data analysis and serialization.
Data Recording
...
Record node
You can record the output from FusionHub to a file by adding
...
to the sink
section of config.json
.
File Logger
Code Block |
---|
"logger": {
// "endpoints": ["inproc://file_reader_1"], // from file reader
"endpoints": ["tcp://localhost:9921"], // from Replay executable
"format": "json",
"filename": "recTest" // this will become the postfix of the filename
} |
Data Playback
Data from a log file can played back and forwarded to a fusion filter using the fileReader
block. An example of how to use this node we are showing below:
...
Endpoint | Sample Requests | Sample Response / Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
getConfig |
| Get in memory configurations. | ||||||||||
getSavedConfig |
| Get on disk configurations. | ||||||||||
saveConfig |
| Save the in-memory configurations to the disk. | ||||||||||
setConfig |
| Update in-memory configurations. This api create new key-value pairs, or update the existing values. It does not save configurations to the disk. Note that in | ||||||||||
overwriteConfig |
| Overwrite the in-memory configurations. This is suitable when user want to remove a key from the configuration. | ||||||||||
getIntercalibrationStatus |
| Get the current intercalibration status. Useful for refetching current status when the frontnend accidentally disconnects. | ||||||||||
applyIntercalibrationResults |
| Apply the current intercalibration quaternion to the in-memory copy of config. This does NOT save to disk. | ||||||||||
restartBackend |
| Restart the backend. Internally the while loop reset the DataBlock, causing all sources and sinks to be freed from memory, and instantiate them again. | ||||||||||
startRecording |
| Listen to data published to | ||||||||||
stopRecording |
| Stop the current recording. | ||||||||||
listRecording |
| List the recorded filenames since the FusionHub booted up. | ||||||||||
getVersion |
|
|
...