Exporting/Importing Your Work
The EXPORT process enables you to take an entity (such as a flow, node or callback) that you generated in the MOV.AI Flow™ GU, and to save it as a set of JSON files.
The IMPORT process reverses this action. It is able to read a folder of JSONs that represents a set of flows, nodes or callbacks and to insert it into any Flow IDE on any machine.
Exporting Your Work
To export –
- Open the Spawner, meaning launch bash at our main container
docker exec -it spawner-robot1 bash
. - Cd into
~/user
. - Create/populate the file
manifest.txt
. - Export:
python3 -m tools.backup -m manifest.txt -i -a export -p precious_work
.
This will export all items in the manifest file, into the (container) folder: ~user/database/precious_work
.
This folder is accessible externally at the Host ~/Documents/MovaiFlow/userspace/database/precious_work
.
Importing Your Work
To import –
- Open the Spawner, ie: launch bash at our main container
docker exec -it spawner-robot1 bash
. - Cd into
~/user
. - Create/populate the file
manifest.txt
. - Type the following –
python3 -m tools.backup -m manifest.txt -i -a import -p precious_work
Manifest File
A manifest file should list all the nodes, callbacks and nodes you want to export or import.
Here's an example of a manifest.txt –
Flow:husky_simple_navigation
Node:amcl
Callback:start_pallet_detector
Configuration:pallet_detection
Updated about 2 years ago