Skip to content

Instantly share code, notes, and snippets.

@robofoundry
robofoundry / mock_robot_viam
Created April 30, 2023 02:24
mock_robot_python_code
import asyncio
from viam.robot.client import RobotClient
from viam.rpc.dial import Credentials, DialOptions
from viam.components.arm import Arm
from viam.components.motor import Motor
from viam.components.board import Board
from viam.components.arm import ArmClient, JointPositions
import random
import asyncio
@robofoundry
robofoundry / config.json
Created April 30, 2023 02:20
viam mock config
{
"components": [
{
"type": "arm",
"model": "fake",
"attributes": {
"arm-model": "ur5e"
},
"depends_on": [
"myMotor"
@robofoundry
robofoundry / config.txt
Created November 14, 2021 04:23
Changes to Config.txt for Pi Zero 2W Ubuntu
# The unusual ordering below is deliberate; older firmwares (in particular the
# version initially shipped with bionic) don't understand the conditional
# [sections] below and simply ignore them. The Pi4 doesn't boot at all with
# firmwares this old so it's safe to place at the top. Of the Pi2 and Pi3, the
# Pi3 uboot happens to work happily on the Pi2, so it needs to go at the bottom
# to support old firmwares.
[pi4]
#kernel=uboot_rpi_4.bin
max_framebuffers=2
@robofoundry
robofoundry / network-config
Created November 13, 2021 21:18
network-config for Pi Zero 2W
# This file contains a netplan-compatible configuration which cloud-init will
# apply on first-boot (note: it will *not* update the config after the first
# boot). Please refer to the cloud-init documentation and the netplan reference
# for full details:
#
# https://cloudinit.readthedocs.io/en/latest/topics/network-config.html
# https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v2.html
# https://netplan.io/reference
#
# Please note that the YAML format employed by this file is sensitive to