Blossom controller scripts that contain a interface to control blossom robot either via USB or via network.
- Setup
.envfile for server IP and port. - Import
BlossomInterfacefromblossom_interface.pyand implement your logic. - Run
blossom_client.pyon the machine that is connected to blossom via USB. - Run
blossom_server.pyon the server. - Run your script.
blossom_interface.py: Entry point of the interface, import this file to use the interface.blossom_client.py: Client class for the interface. Run this script on the machine connects to Blossom.blossom_server.py: Server class for the interface. Run this script on cloud server.blossom_local_interface.py: Wrapper class for the Blossom API, used inblossom_interface.py.blossom_network_interface.py: This class sends data to server, used inblossom_interface.py.blossom_sequence_comb.py: Utility class for combining sequences. See comments in the file for more details.note.py: Initially used as__init__.pyfor the package, but because of the blossom-public package, it is better to keep it as a separate file..env: Server IP and port goes in here.-
SERVER_IP=192.168.0.1 SERVER_PORT=5000
-