Skip to content

Instantly share code, notes, and snippets.

@audrow
audrow / ros2_publish_single_pointcloud2.py
Last active January 3, 2023 06:41
ROS2 PointCloud2 Publisher #open-robotics
# A way of reproducing https://github.com/ros2/rviz/issues/322
#
# Code source:
# https://github.com/SebastianGrans/ROS2-Point-Cloud-Demo/blob/79ef97fc92147a0d550543a69541139097cc3b35/pcd_demo/pcd_publisher/pcd_publisher_node.py
import rclpy
from rclpy.node import Node
import sensor_msgs.msg as sensor_msgs
import std_msgs.msg as std_msgs
@audrow
audrow / bashrc
Last active December 30, 2021 20:08
Common aliases and functions that I often put in my bashrc
alias cdd="cd ~/Downloads/"
alias cddev="cd ~/Documents/Github"
alias cdc="cddev"
alias gb="git branch -a"
alias gc="git checkout"
alias gcb="git checkout -b"
alias gg="git gui"
alias gl="git log --pretty=oneline --graph"
alias gs="git status"
@audrow
audrow / .vimrc
Last active June 21, 2021 16:18
My vimrc
" vim: foldmethod=marker
" Setup instructions
" ------------------
" 1. Setup Vundle
" ```
" git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
" ```
" 2. Copy the contents of this file into `~/.vimrc`
" 3. Install the plugins with `vim +PluginInstall +qall`
@audrow
audrow / Build ROS2 packages with GCC or Clang
Last active September 28, 2023 13:47
Build ROS 2 packages with GCC or Clang
#!/bin/bash
if [ -z ${1+x} ];
then
echo "Exiting - Please enter a package"
exit 1
fi
if [ -z ${2+x} ];
then
MODE="select";
@audrow
audrow / i3-config
Last active June 8, 2021 20:43
i3 config file
set $mod Mod1
# Appearance
font pango:monospace 8
# System execs
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio.
@audrow
audrow / .rocker-github.md
Last active July 3, 2024 12:53
My ROS 2 and Gazebo Docker Setup

README

My ROS 2 and Gazebo Docker setup. This can be extended or used an example for other Docker containers that want to use graphics and have persistent volumes.

Features

  • Run Gazebo and ROS 2 in a Docker container
  • Persistent workspace
  • Graphics support
@audrow
audrow / new-ubuntu-setup.md
Last active January 5, 2022 23:37
New Ubuntu Setup #process #open-robotics
@audrow
audrow / Default RMW errors.md
Last active January 7, 2022 01:57
Working to fix error created by switching ROS 2's default DDS. #open-robotics #active
@audrow
audrow / teleprompter.md
Created December 15, 2021 01:45
Teleprompter instructions and research #sta #side-project
@audrow
audrow / deep-work.md
Last active December 21, 2021 05:25
Deep Work by Cal Newport Notes #book

Deep Work by Cal Newport

  • Schedule your whole day, every 30 minutes
  • How deep of a task? --> proxy: How long for a college graduate to learn this?
  • Bosses typically like 30-40% shallow work
  • Consider creating sender emails, such as interesting@
  • To speed up emails, say the whole process in the email
  • Fixed schedule planning - e.g., only work between 9:30am-5:30pm