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
#!/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 | |
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
#!/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
#!/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 | |
# 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 cv2 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import glob | |
import random | |
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 cv2 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import glob | |
import random | |
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 tf.transformations as tft | |
import numpy as np | |
import sys | |
import argparse | |
def parse_args(): |
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 | |
# Path to metadata/icons.yml | |
FONTAWESOME_YML=$1 | |
# Path to pictogram_font_mapping.h | |
PICTOGRAM_FONT_MAPPING=$2 | |
echo "Generating C++ code from $FONTAWESOME_YML" | |
./to_cpp_code.py $FONTAWESOME_YML > ./new_code.cpp |