Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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
### ICLR 2022 Scraper | |
import os.path | |
import pickle | |
import urllib.request | |
import json | |
from math import ceil | |
from multiprocessing import Queue, Process | |
from tqdm import trange, tqdm |
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
# RPi | |
import time | |
# import RPi.GPIO as GPIO | |
import paho.mqtt.client as mqtt | |
import numpy as np | |
import datetime | |
import time | |
import h5py | |
NODEMCU_SEND_TIME = 2 # seconds between Node broadcasts |
Loading
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
import time | |
import numpy as np | |
import pybullet_utils.bullet_client as bc | |
import pybullet | |
import pybullet_data | |
import matplotlib.pyplot as plt | |
from tqdm import trange | |
# simulator 0 | |
p = bc.BulletClient(connection_mode=pybullet.DIRECT) |
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 numpy as np | |
import math | |
import torch | |
from torchvision import datasets | |
import cv2 # OpenCV, this is only used for visualization, see bottom of file | |
def rotation_matrix(axis, theta): | |
""" | |
Generalized 3d rotation via Euler-Rodriguez formula, https://www.wikiwand.com/en/Euler%E2%80%93Rodrigues_formula |
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
""" | |
sudo apt-get install libhidapi-hidraw0 libhidapi-libusb0 | |
pip3 install --user hid | |
Notes: | |
- servos_off will power off the servos | |
- sending a movement command wakes up unpowered servos | |
- position readouts are sadly pretty slow, they can take up to 450ms | |
""" |
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
### Keybase proof | |
I hereby claim: | |
* I am fgolemo on github. | |
* I am flogo (https://keybase.io/flogo) on keybase. | |
* I have a public key ASAS3pgaMErl34blInTy1Sr_EL5vEv2ZIJZedtf7WAfsMAo | |
To claim this, I am signing this object: |
NewerOlder