Skip to content

Instantly share code, notes, and snippets.

View dbaldwin's full-sized avatar

Dennis Baldwin dbaldwin

View GitHub Profile
@dbaldwin
dbaldwin / gist:df58544fae360e84f5c9d8ab371500f5
Last active June 23, 2024 20:36
Unitree Low Level and ROS Low Level Control from Windows with Docker
# From Windows terminal
docker run -p 6080:80 --shm-size=512m --name ros_go1 -d tiryoh/ros-desktop-vnc:melodic
# Access the instance through the url
http://localhost:6080
# From home directory in Docker
mkdir -p catkin_ws/src
# Go into catkin workspace
@dbaldwin
dbaldwin / gist:b31835f87f16450a956cf3c89e15a289
Last active January 19, 2026 10:43
Unitree Go1 Wireless Network Setup for Low Level Control with Windows and Docker
# From Windows terminal
docker run -p 6080:80 --shm-size=512m --name ros_go1 -d tiryoh/ros-desktop-vnc:melodic
# Access the instance through the url
http://localhost:6080
# From home directory in Docker
mkdir -p catkin_ws/src
# Go into catkin workspace
@dbaldwin
dbaldwin / figure8.cpp
Created November 25, 2022 17:29
ROS Turtle Sim Figure 8
#include "ros/ros.h"
#include "geometry_msgs/Twist.h"
#include <math.h>
#define PI 3.14
int main(int argc, char **argv)
{
ros::init(argc, argv, "dennis_test");
ros::NodeHandle nh;
@dbaldwin
dbaldwin / gist:20045e6a83d7dd53eaf86804085b1c7a
Last active October 7, 2022 14:30
Python Test with WSL and Unitree Go1
# Download image
https://www.dropbox.com/s/ayut7eqlasa8jwz/wsl_ubuntu_unitree_sdk.tar?dl=0
# Import image (you will need to change your paths below)
wsl --import Unitree-SDK-Dev C:\Users\denni\Desktop C:\Users\denni\Downloads\wsl_ubuntu_unitree_sdk.tar
# List images to confirm it was imported
wsl -l -v
# Start the distribution
@dbaldwin
dbaldwin / Dockerfile
Last active October 6, 2022 17:10
Unitree Go1 C++ and Python Dockerfile
FROM ubuntu:18.04
WORKDIR /home/droneblocks
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
libboost-all-dev \
pkg-config \
libglib2.0-dev \
@dbaldwin
dbaldwin / gist:624391bb34b53ffa6a0c5bd5a04d6b0f
Created September 15, 2022 19:50
ROS Noetic Exploration with Unitree Go1
# Windows with VcXsrv
export GAZEBO_IP=127.0.0.1
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
export LIBGL_ALWAYS_INDIRECT=0
# RViz
roslaunch go1_description go1_rviz.launch
# Joint publisher GUI for ROS Noetic
rosrun joint_state_publisher_gui joint_state_publisher_gui
@dbaldwin
dbaldwin / follow_mission_pad.py
Last active May 17, 2022 15:47
Follow mission pad for Tello EDU and Tello Talent
# Imports
from djitellopy import Tello
import threading
import time
import math
# Maximum speed sent to send_rc_control
MAX_SPEED = 1.5
# If the distance to the target is less than the minimum then just set to zero to keep Tello close
@dbaldwin
dbaldwin / PX4_VIO.md
Last active May 1, 2026 11:37
PX4 VIO w/ Jetson Nano, Intel T2654, and Pixhawk (NXP Version)

Overview

I've put this documentation to supplement the awesome VIO repo from Auterion. While the VIO code performs very well it does take quite a bit of work to get up and running. So I'm covering this in my YouTube video and this gist.

Install ROS on Jetson Nano (YouTube Link)

Automatic Addison has great tutorials on ROS. His installation guide is the most concise out there. This section contains the commands from Addison's ROS installation guide.

  • sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
  • sudo apt update
  • sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
  • sudo apt-get update
@dbaldwin
dbaldwin / raspberry_pi_wireless_mavlink_bridge.sh
Created October 22, 2020 21:46
Raspberry Pi 3 Wireless MAVLink Bridge with MAVProxy
<!DOCTYPE html>
<html>
<head>
<title>Disconnected</title>
<meta charset="utf-8" />
<script type="text/javascript" src="http://static.robotwebtools.org/EventEmitter2/current/eventemitter2.min.js"></script>
<script type="text/javascript" src="http://static.robotwebtools.org/roslibjs/current/roslib.min.js"></script>
</head>
<body>