This file contains hidden or 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 cgitb | |
import os | |
format = os.environ.get("CGITB_FORMAT", "text") | |
cgitb.enable(format=format, display=0) | |
raise Exception("oh no") | |
This file contains hidden or 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 python3.7 | |
import sys | |
import tty | |
import termios | |
import subprocess | |
import re | |
from pathlib import Path, PurePath | |
def getch(): |
This file contains hidden or 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
Testing SR v4 PowerBoard. | |
Waiting for start button... | |
DEBUG:j5.components.button:get_button_state(identifier=0) -> False | |
DEBUG:j5.components.led:set_led_state(identifier=0, state=True) | |
DEBUG:j5.components.button:get_button_state(identifier=0) -> False | |
DEBUG:j5.components.button:get_button_state(identifier=0) -> False | |
DEBUG:j5.components.button:get_button_state(identifier=0) -> False | |
DEBUG:j5.components.button:get_button_state(identifier=0) -> False | |
DEBUG:j5.components.button:get_button_state(identifier=0) -> False | |
DEBUG:j5.components.button:get_button_state(identifier=0) -> False |
This file contains hidden or 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
[kier@saelli:~]$ nix-shell -p python3Packages.pip | |
[nix-shell:~]$ pip install --verbose --target=/tmp/throwaway-installation-dir opencv-contrib-python-headless==4.1.0.25 | |
Created temporary directory: /run/user/1001/pip-target-9x91gkx3 | |
Created temporary directory: /run/user/1001/pip-ephem-wheel-cache-jscyy6fc | |
Created temporary directory: /run/user/1001/pip-req-tracker-w3sswxqk | |
Created requirements tracker '/run/user/1001/pip-req-tracker-w3sswxqk' | |
Created temporary directory: /run/user/1001/pip-install-16kd9m0l | |
Collecting opencv-contrib-python-headless==4.1.0.25 | |
1 location(s) to search for versions of opencv-contrib-python-headless: |
This file contains hidden or 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
-----BEGIN CERTIFICATE----- | |
MIIFYDCCA0igAwIBAgIURFc0JFuBiZs18s64KztbpybwdSgwDQYJKoZIhvcNAQEL | |
BQAwSDELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAc | |
BgNVBAMTFVF1b1ZhZGlzIFJvb3QgQ0EgMiBHMzAeFw0xMjAxMTIxODU5MzJaFw00 | |
MjAxMTIxODU5MzJaMEgxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM | |
aW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDIgRzMwggIiMA0GCSqG | |
SIb3DQEBAQUAA4ICDwAwggIKAoICAQChriWyARjcV4g/Ruv5r+LrI3HimtFhZiFf | |
qq8nUeVuGxbULX1QsFN3vXg6YOJkApt8hpvWGo6t/x8Vf9WVHhLL5hSEBMHfNrMW | |
n4rjyduYNM7YMxcoRvynyfDStNVNCXJJ+fKH46nafaF9a7I6JaltUkSs+L5u+9ym | |
c5GQYaYDFCDy54ejiK2toIz/pgslUiXnFgHVy7g1gQyjO/Dh4fxaXc6AcW34Sas+ |
This file contains hidden or 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
if __name__ == "__main__": | |
board = cast(PowerBoard, SRV4PowerBoardHardwareBackend.discover()[0]) | |
b = cast(SRV4PowerBoardHardwareBackend, board._backend) | |
try: | |
b.get_button_state(board, 1) | |
except Exception as e: | |
print(str(e)) | |
while True: | |
print(f"Serial number: {board.serial}") | |
print(f"Firmware version: {b.firmware_version}") |
This file contains hidden or 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
from abc import ABCMeta, abstractmethod | |
class Component(metaclass=ABCMeta): | |
""" | |
Represents a single element of the robot hardware that may be operated by the user logic. | |
Examples include: | |
- a motor |
This file contains hidden or 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
// Buffers for incoming and outgoing bytes respectively. | |
static RingBuffer recv_buffer; | |
static RingBuffer send_buffer; | |
// True when we've sent an XOFF and the peer has (hopefully) stopped sending data. | |
static bool recv_paused = false; | |
// True when the peer has sent an XOFF and we should stop sending data. | |
static bool send_paused = false; |
This file contains hidden or 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
Application | Architecture | IPC (in-order) | IPC (out-of-order) | |
---|---|---|---|---|
crc32 | arm | .37207400845431505980 | .97955199956153432229 | |
crc32 | x86 | .24456957484502649185 | 1.87414399799978104145 | |
sha | arm | .39627907995376373499 | 2.85625675899401813169 | |
sha | x86 | .34798035968094520557 | 1.72880407237775979080 |
This file contains hidden or 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
Application,Architecture,IPC (1 layer),IPC (2 layers),IPC (3 layers) | |
crc32,arm,.37207400845431505980,.37207247218849673917,.37207004599251855888 | |
crc32,x86,.24456957484502649185,.24456786206401686474,.24456478131541620667 | |
sha,arm,.39627907995376373499,.39624501614677063739,.39616326285681414028 | |
sha,x86,.34798035968094520557,.34795167265421835192,.34790049190617000551 | |