Skip to content

Instantly share code, notes, and snippets.

View moriarty's full-sized avatar

Alex Moriarty moriarty

View GitHub Profile
@moriarty
moriarty / gist:7357575
Last active December 27, 2015 16:49
vtk errors
########## some output from catkin_make
-- ==> add_subdirectory(mas_industrial_robotics/mir_calibration/mir_kinect_calibration)
-- Boost version: 1.49.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- thread
-- date_time
-- iostreams
@moriarty
moriarty / gist:7593197
Created November 22, 2013 01:26
UG students should know how to kill a process, and when to give up
moriarty@bluenose:~$ ps aux --sort=%mem,%cpu | tail -n 6
root 32766 0.2 0.3 116172 112944 ? S Oct31 72:19 /var/ossec/bin/ossec-syscheckd
connorw 22893 99.8 0.0 3668 440 ? R Nov13 12274:11 ? ? ? ? ? ? ? ? ? ? ? ?
connorw 3812 99.9 0.0 3668 448 ? R Nov12 13275:12 /users/cs/connorw/connorw/a5/a
rkhis 20093 99.9 0.0 3668 436 ? R Nov05 23537:37 /users/cs/rkhis/csci2132/labs/lab6/dice dice
rkhis 20237 99.9 0.0 3668 436 ? R Nov05 23532:34 /users/cs/rkhis/csci2132/labs/lab6/dice dice
trudolph 22642 99.9 0.0 3668 392 ? Rs Nov13 11464:21 ./a.out
@moriarty
moriarty / gist:7648386
Created November 25, 2013 20:33
stanford_wbc catkin_make error
[100%] Performing update step (git fetch) for 'wbc'
[100%] Performing configure step for 'wbc'
-- Build files have been written to: /home/alex/workspace/ros_ws/hydro/catkin_ws/build/mas_third_party_software/stanford_wbc/wbc/src/wbc-build
[100%] Performing build step for 'wbc'
Built target wbc_tinyxml
/home/alex/workspace/ros_ws/hydro/catkin_ws/build/mas_third_party_software/stanford_wbc/wbc/src/wbc/jspace/jspace/test/util.cpp: In function ‘std::string jspace::test::create_tmpfile(const char*, const char*)’:
/home/alex/workspace/ros_ws/hydro/catkin_ws/build/mas_third_party_software/stanford_wbc/wbc/src/wbc/jspace/jspace/test/util.cpp:201:66: error: ‘write’ was not declared in this scope
/home/alex/workspace/ros_ws/hydro/catkin_ws/build/mas_third_party_software/stanford_wbc/wbc/src/wbc/jspace/jspace/test/util.cpp:204:18: error: ‘close’ was not declared in this scope
/home/alex/workspace/ros_ws/hydro/catkin_ws/build/mas_third_party_software/stanford_wbc/wbc/src/wbc/opspace/src/testFactory.cpp: In member function
@moriarty
moriarty / git-set-user.sh
Created November 29, 2013 13:18
script to set ~/.gitconfig to students gitconfig written for youbot
#!/usr/bin/env bash
#
# This is a shared machine. I have added this
# quick script to set the git config variables
#
# If you want this to work add
#
if [ -d ~/gitconfig ]; then
[ WARN] [1386943605.784200723]: Cannot read gripper values: Unable to get parameter: ActualPosition from the gripper
[ WARN] [1386943606.203998542]: Cannot read gripper values: Unable to get parameter: ActualPosition from the gripper
[ INFO] [1386943606.402182388]: Configuration file path: /home/robocup/hydro/src/youbot_driver/config
Info: Initializing EtherCAT on eth0 with communication thread
Info: 9 EtherCAT slaves found
Info: BaseLeftFront Controller Type: 174 Firmware version: 148
Info: BaseRightFront Controller Type: 174 Firmware version: 148
Info: BaseLeftBack Controller Type: 174 Firmware version: 148
Info: BaseRightBack Controller Type: 174 Firmware version: 148
[ INFO] [1386943607.373512105]: Base is initialized.
@moriarty
moriarty / navigation_stress_test.py
Created April 8, 2014 16:10
Ros Navigation Stress Test
#!/usr/bin/env python
import rospy
import geometry_msgs.msg
import random
import std_srvs.srv
GOAL_POSE = {'C1': [3.950146, 0.849521, 0.000],
'S4': [3.734791, -0.454118, 0.000],
'S3': [3.297905, 0.179620, 3.141592],
4.53931 1.61412 -1.44282 3.06248 2.94969 platform_middle
3.78521 1.40886 -1.86213 3.54030 2.93517 platform_pre
4.53931 1.29317 -0.963919 2.85246 2.94982 platform_middle_intermediate
@moriarty
moriarty / gist:acd6971d89429ba60b12
Last active August 29, 2015 14:21
Learning and Adaptivity In Class Assignment READ DATA
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: Alex Moriarty
"""
import numpy as np
import sklearn
from sklearn import tree
from sklearn.externals.six import StringIO
import pydot
@moriarty
moriarty / gist:1ba8c4a112f6bab4eae1
Created May 24, 2015 11:09
MAS Group ROS Indigo on Arch Linux
alex@moriarty-xmg:../src$ wstool
workspace: /home/alex/workspace/ros/indigo/robocup/src
Localname S SCM Version-Spec UID (Spec) URI (Spec) [http(s)://...]
--------- - ---- ------------ ----------- ---------------------------
youbot-manipulation V git hydro 5eb6b10cd5bd (0140b2c00642) github.com/svenschneider/youbot-manipulation.git
youbot_diagnostics V git hydro-devel 7a566dd954d8 (7e7861604986) github.com/mas-group/youbot_diagnostics.git
youbot_simulation git hydro-devel 1223bf999b95 github.com/mas-group/youbot_simulation.git
youbot_description git hydro-devel 3de35462caab github.com/mas-group/youbot_description.git
youbot_driver_ros_interface V git hydro-devel a3dcdc090633 (837ffceeb9a7) github.com/mas-group/youbot_driver_ros_interface.git
@moriarty
moriarty / gist:dd33dfd57e1a51b020a3
Created June 2, 2015 12:31
Colour Sensor Event R increasing
String epStatement = "select * from ColorSensorEvent "
+ " match_recognize ( "
+ " measures A as c1, B as c2 "
+ " pattern (A B) "
+ " define "
+ " A as A.r > 10.0 , "
+ " B as (A.r < B.r) ) ";