This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Plot in real time the data rate of the IMU sensor messages. | |
# This script was written in order to debug the IMU not outputting messages at | |
# the configurade rate of 200Hz. | |
import rospy | |
from sensor_msgs.msg import Imu | |
import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
sns.set(style='darkgrid') | |
import os.path | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import datetime | |
import dateutil.parser | |
def parse_opts(): | |
parser = argparse.ArgumentParser(add_help=False) | |
group = parser.add_mutually_exclusive_group(required=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
XAUTH=/tmp/.docker.xauth | |
if [ ! -f $XAUTH ]; then | |
xauth_list=$( xauth nlist :0 | sed -e 's/^..../ffff/' ) | |
if [ ! -z "$xauth_list" ]; then | |
echo $xauth_list | xauth -f $XAUTH nmerge - | |
else | |
touch $XAUTH | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while (( $# > 0 )); do | |
case "$1" in | |
-*) | |
if [[ $1 == -- ]]; then | |
IGNORE_REST=true | |
shift | |
continue | |
elif [[ -n $IGNORE_REST ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ -n $REMOTEHOST ]] || [[ -n $SSH_CONNECTION ]]; then | |
exit | |
fi | |
if [ -n "$( ps aux | grep -v grep | grep xcape )" ]; then | |
# xmodmap -e 'keycode 49=Escape asciitilde' | |
# xmodmap -e 'keycode 9=grave Escape' | |
killall xcape |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export BASH_PRE_CD_HOOK=( | |
) | |
export BASH_POST_CD_HOOK=( | |
'__auto_source_ros_ws' | |
'__update_last_ros_ws' | |
) | |
# Automatically source ROS workspace you were last in | |
# Empty to disable | |
export ROS_UTIL_LAST_WS_FILE="$HOME/.cache/ros/last_ws.txt" | |
export ROS_UTIL_AUTO_ROS_WS="true" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
KEEP_TAR='false' | |
TAR_FILE='' | |
VERSION='latest' | |
while getopts 'hkt:v:' flag; do | |
case "$flag" in | |
k) | |
KEEP_TAR='true' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
/* | |
* This program illustrates why using default arguments in a constructor is | |
* bad. Without explicitly defining an operator+(const float k), a Vector2D | |
* with y being 0 is created. | |
*/ | |
struct Vector2D { | |
/// default constructor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
KEEP_TAR='false' | |
TAR_FILE='' | |
while getopts 'hkt:' flag; do | |
case "$flag" in | |
k) | |
KEEP_TAR='true' | |
;; |