Skip to content

Instantly share code, notes, and snippets.

View dbaldwin's full-sized avatar

Dennis Baldwin dbaldwin

View GitHub Profile
docker run -p 6080:80 --shm-size=512m --name ros_go1 -d tiryoh/ros-desktop-vnc:melodic
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo apt update
sudo apt install ros-melodic-joint-state-publisher-gui
mkdir -p ~/catkin_ws/src
docker run -p 6080:80 --shm-size=512m tiryoh/ros2-desktop-vnc:foxy
# Go to http://localhost:6080 and open a terminal
# Menu > System Tools > MATE Terminal
sudo apt update
mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src
@dbaldwin
dbaldwin / gist:70fb53d88877f5ecfeadd646e225456a
Created January 14, 2023 21:44
PX4, MAVROS, Gazebo Sim with ROS Noetic (Work in Progress)
docker run -p 6080:80 --shm-size=512m --name px4-gazebo-mavros -d dorowu/ubuntu-desktop-lxde-vnc:latest
http://localhost:6080
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
sudo apt update
sudo apt install git -y
@dbaldwin
dbaldwin / ubuntu_sim_ros_noetic.sh
Last active May 31, 2024 15:09
Ubuntu 20 LTS, ROS Noetic, Gazebo 11 MAVROS
#!/bin/bash
## Bash script for setting up ROS Noetic (with Gazebo 11) development environment for PX4 on Ubuntu LTS (20.04).
## It installs the common dependencies for all targets (including Qt Creator)
##
## Installs:
## - Common dependencies libraries and tools as defined in `ubuntu_sim_common_deps.sh`
## - ROS Noetic (including Gazebo11)
## - MAVROS
@dbaldwin
dbaldwin / gist:eb2120bb5462372d2daa5928ba063f20
Created December 11, 2022 21:49
dRehmFlight Nemo Bicopter Tiltrotor
// https://www.rcgroups.com/forums/showpost.php?p=48605917&postcount=299
//Arduino/Teensy Flight Controller - dRehmFlight
//Author: Nicholas Rehm
//Project Start: 1/6/2020
//Version: Beta 1.2
/*
*
* If you are using this for an academic or scholarly project, please credit me in any presentations or publications:
@dbaldwin
dbaldwin / gist:df58544fae360e84f5c9d8ab371500f5
Last active May 15, 2024 06:47
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 May 26, 2024 09:49
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 \