Skip to content

Instantly share code, notes, and snippets.

View moriarty's full-sized avatar

Alex Moriarty moriarty

View GitHub Profile
@moriarty
moriarty / linefollower.py
Created October 24, 2012 05:36
Python Line Follower NXT
"""
Line Follower
By: Alex Moriarty ([email protected])
Location:
"""
from nxt.locator import *
from nxt.motor import *
from nxt.sensor import *
@moriarty
moriarty / move_arm_example.py
Created October 24, 2012 05:38
Python ROS example
#!/usr/bin/python
import time
import roslib
roslib.load_manifest('raw_arm_cmds')
import rospy
import actionlib
from simple_script_server import *
@moriarty
moriarty / bash_ros_stuff
Last active October 13, 2015 16:58
My bash ros stuff
## These are variables you might change often
_ROS_DISTRO=hydro
_PRINT=true # display ROS info in new bash sessions
_FANCY=true
export ROBOT=youbot-brsu-2
export ROBOT_ENV=brsu-c025
export ROS_MASTER_URI=http://localhost:11311
## These are used to locate your catkin_ws/devel/setup.bash
_ROS_WS=$HOME/workspace/ros_ws
{
"metadata": {
"name": "brsu_mrc_assignment_003"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@moriarty
moriarty / gist:5525013
Created May 6, 2013 13:11
git config for RoboCupAtWork
#
# You can modify by hand REPO/.git/config or probably best to use
# $ git remote add NAME_OF_REMOTE USER@ADDRESS:/TO/REPO.git
#
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
@moriarty
moriarty / all-bib-entries.tex
Created May 28, 2013 14:22
Print all abstracts from a bibtex database
\documentclass{article}
% The biblatex package with reading includes abstracts in the bibliography
\usepackage[style=reading]{biblatex}
\addbibresource{myISW.bib} % the bib
\nocite{*} % nocite{*} adds all references to bibliography even if they're not cited
\begin{document}
Collection of Papers, Bib info and Abstracts for BRSU ISW MAS1
@moriarty
moriarty / readSomeData.py
Created May 29, 2013 20:34
python get some data from file via command line arg
#!/usr/bin/env python
import numpy as np
import sys
import argparse
from argparse import ArgumentParser
import os
def extant_file(x):
"""
'Type' for argparse -checks that the file exists
@moriarty
moriarty / RC@Work Post WC2013
Created June 30, 2013 11:28
RoboCup@Work Post World Cup 2013 Meeting Minutes
1. colour and speed of the convayor belt.
2. Network situation.
3. Referee Box
4. Cableing.
5. Arena free of junk at all time.
6. Power and Network cables around the arena provided & shared.
(Currently we all use our and it's a mess.)
7. Arena feedback
8. Video feeds set up for audence.
9. Networking official set up.
@moriarty
moriarty / RC@W notes
Last active December 24, 2015 11:19
RoboCup @ Work scratch pad
Notes From RoboCup 2013 in Eindhoven Netherlands
5 issues assigned to me:
* 'proper' Param parsing for all scenerios
* unify launch scritps for PC1 & PC2. Or for new PC...
* Gripper Software Setup & Config
* Gripper HW testing
* Integrate Arm Planning
For proper param parsing. Currently we have one param, "--simulation"
@moriarty
moriarty / gist:7083771
Created October 21, 2013 13:20
Recent BashRC
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace