Skip to content

Instantly share code, notes, and snippets.

#include <bosdyn/api/geometry.pb.h>
#include <CLI/CLI.hpp>
#include <chrono>
#include <thread>
#include "bosdyn/client/sdk/client_sdk.h"
#include "bosdyn/client/lease/lease_client.h"
#include "bosdyn/math/frame_helpers.h"
#include "bosdyn/math/proto_math.h"
#include "bosdyn/client/robot_command/robot_command_builder.h"
#include "bosdyn/client/robot_command/robot_command_client.h"
/**
* Copyright (c) 2022 Boston Dynamics, Inc. All rights reserved.
*
* Downloading, reproducing, distributing or otherwise using the SDK Software
* is subject to the terms and conditions of the Boston Dynamics Software
* Development Kit License (20191101-BDSDK-SL).
*/
/** The basic_robot_command example will show to create a robot object, get the E-Stop, timesync
@jwpleow
jwpleow / GermanLetters.ahk
Last active November 10, 2023 09:09
GermanLettersAutoHotkey for AHKv2
#Requires AutoHotkey v2+
; >! = right alt; + = shift
KeyHistory 0
ListLines 0
>!a:: Send "ä"
>!o:: Send "ö"
>!u:: Send "ü"
>!s:: Send "ß"
>!+a:: Send "Ä"
@jwpleow
jwpleow / README.md
Last active June 15, 2023 02:41
wireguard setup

in /etc/sysctl.conf

net.ipv4.ip_forward = 1

ufw (change interface as needed)

sudo ufw allow in on wg0 out enp2s0
sudo ufw allow in on enp2s0 out wg0
@jwpleow
jwpleow / config.yaml
Last active January 19, 2023 12:17
clangd config - Place in ~/.config/clangd/config.yaml
CompileFlags:
Add: [-std=c++2a, -Wall, -Wextra]
Diagnostics:
ClangTidy:
Add: modernize*
Remove: modernize-use-trailing-return-type
InlayHints:
Enabled: Yes
ParameterNames: Yes
DeducedTypes: Yes
@jwpleow
jwpleow / CMakeLists.txt
Last active January 19, 2023 12:18
test ipc logging using iceoryx and spdlog
cmake_minimum_required(VERSION 3.15)
include_guard(GLOBAL)
project(ipc_logging)
find_package(spdlog CONFIG REQUIRED)
find_package(iceoryx_posh CONFIG REQUIRED)
find_package(iceoryx_hoofs CONFIG REQUIRED)
include(GNUInstallDirs)
@jwpleow
jwpleow / cuda install.md
Last active April 17, 2025 14:51
cuda notes

Ubuntu

Stick to the apt provided nvidia-driver (e.g. sudo apt install nvidia-driver-535)

  • Find the cuda version you want https://developer.nvidia.com/cuda-toolkit-archive

  • Use the runfile install option

  • Continue installation even though driver is already preset

  • Install just CUDA without the driver (the warning message after install about the driver not being installed can be ignored, as it refers to the graphics drivers which you already have from nvidia-driver)

  • Add to your .bashrc / .zshrc / whatever

@jwpleow
jwpleow / launch.json
Last active February 8, 2023 02:19
gdb setup on vscode
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
@jwpleow
jwpleow / profile.ps1
Last active July 2, 2024 12:51
Powershell profile
# Place this in `echo $profile.CurrentUserAllHosts` - e.g.
# C:\Users\woelt\Documents\WindowsPowerShell\profile.ps1
# and set Policy in an admin shell: `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned`
# PSReadLine
# https://github.com/PowerShell/PSReadLine
if ($host.Name -eq 'ConsoleHost')
{
@jwpleow
jwpleow / rosinstall.sh
Last active July 10, 2022 17:44
Try installing ROS noetic from source, using vcpkg's opencv, pcl, boost, etc
sudo pip3 install --upgrade setuptools
sudo pip3 install -U rosdep rosinstall_generator vcstool
# BEFORE INSTALLING VCPKG PCL
# https://github.com/microsoft/vcpkg/pull/18855#issuecomment-961480058
# maybe
# sudo apt-get install python3-rosdep python3-rosinstall-generator python3-vcstool build-essential