Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get a list of collections: | |
GET https://${PUBLIC_ENDPOINT}/v1/vector/collections HTTP/1.1 | |
content-type: application/json | |
Authorization: Bearer $YOUR_API_KEY | |
# Create a collection: | |
POST https://${PUBLIC_ENDPOINT}/v1/vector/collections/create HTTP/1.1 | |
content-type: application/json | |
Authorization: Bearer $YOUR_API_KEY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import asyncio | |
import json | |
import websockets | |
subscriptions = {} | |
async def handler(websocket, path): | |
async for message in websocket: | |
data = json.loads(message) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import pigpio | |
from collections import namedtuple | |
class RobotDriver: | |
MOTORLATCH = 21 | |
MOTORCLK = 20 | |
MOTORDATA = 16 | |
PWM_1 = 5 |