Skip to content

Instantly share code, notes, and snippets.

View dmklee's full-sized avatar

David Klee dmklee

View GitHub Profile
@dmklee
dmklee / everydayrobotics_aiinaction.ipynb
Last active April 4, 2024 21:04
EverydayRobotics_aiinaction.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dmklee
dmklee / mujoco_install_guide_for_discovery.md
Created December 13, 2021 22:11
Installing mujoco_py on Discovery

[HINT]: use a compute node for this otherwise you'll be waiting a while

  1. Follow instructions to get mujoco binaries
  2. Load anaconda module
module load anaconda3/3.7
  1. Create anaconda environment.
conda create -n <env-name> python=3.7 anaconda
@dmklee
dmklee / easy_pybullet_camera_placement.py
Last active October 11, 2024 09:48
Interactive Method for Placing Camera in Pybullet Simulation
import numpy as np
import matplotlib.pyplot as plt
import pybullet as pb
import pybullet_data
def read_parameters(dbg_params):
'''Reads values from debug parameters
Parameters
----------
@dmklee
dmklee / xarm_control.py
Created March 15, 2021 18:56 — forked from maximecb/xarm_control.py
Simple class to control the LewanSoul XArm over the USBHID interface
"""
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
"""