Skip to content

Instantly share code, notes, and snippets.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
import asyncio
import struct
from bleak import BleakScanner
from bleak import BleakClient
pot_uuids = [f'babb122c-de4c-11ec-9d64-0242ac12000{i}' for i in range(1,9)]
time_uuid = 'babb122c-de4c-11ec-9d64-0242ac120102'
all_pots_uuid = 'babb122c-de4c-11ec-9d64-0242ac120200'
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDUzVo8uJubEFJFETysi+2I/D4yD4JOnrkKpmr7G3tfCO3I06mFveCp11Gw5bfcxTM8PjoKFW1dzzCIf7LCzCR6ywF2NTJXcwdqHYfbTji+VS3vk4F4tTf8ez+fRglDt3a680L4xxXOXlG86XHCvMgj9X0OI48HvPvBhc4tN5hHDenrm77IkaYUvLaGKpxuDek67GCUlcHYe17nqQp7ZlweN+yhCFXmB4+H/AgL0gCA8L065zjDCrVl6SwfMPun2VQ/ajdiM7F412wa53fMJrMlkWw35bqtshygb2eO5PTZxp7NAlOpVbWXj+r9sDPXGGtxR09klFuLjVfFKQ81xOVDDvm9LIL00MZvFwMgFr1VPd0UokZI3TylKUWWecs022bvRsJk9qMryeojdVvl3xUW5ibzzLsThS5F8leEmn9gVI3joCa8wwkbXFAbgj5dI2ssunzBAfJJVA38dUMRM8zeMJLf6hmOywG9nWfEL6LGvNvj47++RL5fJcTJ3G1c08zIvPuZXYsmskrwEilAR/c/nWv1hS8/kqHXezdy0QJss06o+3PMwsrkIgIu3QQTdfk9H7t8ywh+1RVB7+gJGA5ee+o6LtDav6FJZzfwmNyF19+k4/WSJgLLJOmktIulw9zMBZQJxaCySE6KMO+TRQ0KGFBHkZDQQfJ4M0ol+bZWbQ== urillx@gmail.com
#Axis 1
SetSampleTime 256
SetSPIMode 0
SetMotorType 7
SetOutputMode 6
SetProfileMode 0
SetPositionErrorLimit 65535
SetSettleTime 0
SetSettleWindow 0
SetTrackingWindow 0
cosine@ak120d-03:~$ roswtf
the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'
No package or stack in context
================================================================================
Static checks summary:
Found 1 error(s).
ERROR ROS Dep database not initialized: Please initialize rosdep database with sudo rosdep init.
================================================================================
general {
output_format = "i3bar"
colors = true
interval = 2
}
order += "wireless wlp3s0"
order += "ethernet enp0s25"
order += "battery 0"
order += "load"
@keshuaixu
keshuaixu / DefaultDhSolver.groovy
Last active July 27, 2017 18:51
HephaestusWorkCell_copy copy of HephaestusWorkCell
import java.util.ArrayList;
import com.neuronrobotics.sdk.addons.kinematics.DHChain;
import com.neuronrobotics.sdk.addons.kinematics.DHLink;
import com.neuronrobotics.sdk.addons.kinematics.DhInverseSolver;
import com.neuronrobotics.sdk.addons.kinematics.math.TransformNR;
import com.neuronrobotics.sdk.common.Log;
import Jama.Matrix;
return new DhInverseSolver() {
@keshuaixu
keshuaixu / gist:ffc692bd77a3e7bb2b0e968d8b7e2958
Created April 6, 2017 17:09
create sudo account on rbe desktops
a
@keshuaixu
keshuaixu / rbe3001unbrick.md
Created February 1, 2017 16:05
Unbrick RBE3001 ATMega644p with incorrect fuse using STK500
@keshuaixu
keshuaixu / index_convert.md
Last active November 15, 2017 02:37
Converting between point coordinates and grid array indices

From /map coordinates to grid array indices:

gridx = int((pose.position.x - offsetX - (.5 * resolution)) / resolution)
gridy = int((pose.position.y - offsetY - (.5 * resolution)) / resolution)

From grid array indices to /map coordinates: