This file contains 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/python | |
from time import gmtime, strftime | |
#Get minutes | |
time_min = strftime("%M", gmtime()) | |
#Get hour, as int | |
time_hour = int(strftime("%H", gmtime())) | |
#round minutes to nearest 5, return as int |
This file contains 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/python | |
import sys #for cmd line argv | |
#take command line args as the input string | |
input_string = sys.argv | |
#remove the program name from the argv list | |
input_string.pop(0) | |
#convert to google friendly url (with + replacing spaces) |
This file contains 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 <stdio.h> | |
#include <stdlib.h> | |
#include "ros/ros.h" | |
#include "std_msgs/MultiArrayLayout.h" | |
#include "std_msgs/MultiArrayDimension.h" | |
#include "std_msgs/Int32MultiArray.h" |
This file contains 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/sh | |
DRIVER=/usr/lib/fglrx/xorg/modules/drivers/fglrx_drv.so | |
for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do | |
sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER | |
done |
This file contains 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 | |
cd /home/$(whoami) | |
git clone [email protected]:alexsleat/projectChimaera.git | |
echo "export ROS_PACKAGE_PATH=~/projectChimaera:\$ROS_PACKAGE_PATH" >> ~/.bashrc | |
. /home/$(whoami)/.bashrc |
This file contains 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 <ros/ros.h> | |
#include <image_transport/image_transport.h> | |
#include <cv_bridge/cv_bridge.h> | |
#include <sensor_msgs/image_encodings.h> | |
#include <opencv2/imgproc/imgproc.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
namespace enc = sensor_msgs::image_encodings; | |
static const char WINDOW[] = "Image window"; |
This file contains 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
echo "Bash version ${BASH_VERSION}..." | |
mkdir temp | |
for i in {0..10..1} | |
do | |
cp test$i.file temp/$i.file | |
done |
This file contains 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
cmake_minimum_required(VERSION 2.4.6) | |
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake) | |
# Set the build type. Options are: | |
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage | |
# Debug : w/ debug symbols, w/o optimization | |
# Release : w/o debug symbols, w/ optimization | |
# RelWithDebInfo : w/ debug symbols, w/ optimization | |
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries | |
#set(ROS_BUILD_TYPE RelWithDebInfo) |
This file contains 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
cd /opt/Softbank\ Robotics/Choregraphe\ Suite\ 2.5/lib/ | |
sudo mv libz.so.1 libz.so.1.old | |
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1 |
This file contains 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
Package Version | |
------------------------------------ ------------ | |
action-msgs 1.2.1 | |
action-tutorials-interfaces 0.20.3 | |
action-tutorials-py 0.20.3 | |
actionlib-msgs 4.2.3 | |
addict 2.4.0 | |
aliyun-python-sdk-core 2.15.0 | |
aliyun-python-sdk-kms 2.16.2 | |
ament-cmake-test 1.3.7 |