Skip to content

Instantly share code, notes, and snippets.

View moriarty's full-sized avatar

Alex Moriarty moriarty

View GitHub Profile
@moriarty
moriarty / bash history
Created March 13, 2019 02:38
install docker and nvidia docker2
1 sudo apt-get update
2 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
3 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4 sudo apt-key fingerprint 0EBFCD88
5 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
6 $(lsb_release -cs) \
7 stable"
8 sudo apt-get update
9 sudo apt-get install docker-ce docker-ce-cli containerd.io
10 sudo groupadd docker
@moriarty
moriarty / Dockerfile
Created March 13, 2019 02:29
Dockerfile nvidia-docker2 ros-kinetic-desktop-full fetch gazebo7
FROM nvidia/opengl:1.0-glvnd-devel-ubuntu16.04
# nvidia-container-runtime
ENV NVIDIA_VISIBLE_DEVICES \
${NVIDIA_VISIBLE_DEVICES:-all}
ENV NVIDIA_DRIVER_CAPABILITIES \
${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics
# install packages
RUN apt-get update && apt-get install -q -y \
@moriarty
moriarty / gist:4baa481f52d3abebe1ea2c6fe92c99d5
Created March 13, 2019 02:28
Fetch Gazebo Melodic branches on Kinetic
git config --global user.email "amoriarty@fetchrobotics.com"
git config --global user.name "Alexander Moriarty"
cd /ros/kinetic/src/fetch_gazebo/
git revert 146ae27854fb6573e42a4bb918c5257f6a018193
cd /ros/kinetic/src/fetch_ros/fetch_depth_layer/
git revert 09db2ce01300b253b7fc7fd01ce258e20f2b9b41
git status
vim package.xml
@moriarty
moriarty / or-tools-install-files.txt
Created February 15, 2019 06:20
List of files insatlled by or-tools
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/include/ortools_export.h
-- Installing: /usr/local/lib/libortools.so.6.10.6025
-- Installing: /usr/local/lib/libortools.so.6
-- Installing: /usr/local/lib/libortools.so
-- Installing: /usr/local/lib/cmake/ortools/ortoolsTargets.cmake
-- Installing: /usr/local/lib/cmake/ortools/ortoolsTargets-release.cmake
-- Installing: /usr/local/include/ortools
-- Installing: /usr/local/include/ortools/glop
@moriarty
moriarty / OpenSUSE Tumbleweed Notes
Created November 8, 2017 08:34
OpenSUSE Tumbleweed Notes
installing vmware-tools requires ifconfig, which is in: net-tools-deprecated
@moriarty
moriarty / PCL Compile Output
Created October 21, 2017 09:55
PCL Compile Output on openSUSE Tumbleweed. gcc-7.2.1
/home/alex/workspace/pcl-trunk/people/src/hog.cpp: In member function ‘float* pcl::people::HOG::acosTable() const’:
/home/alex/workspace/pcl-trunk/people/src/hog.cpp:421:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if( init ) return a+n2; ni = 2.02f/(float) n;
^~
/home/alex/workspace/pcl-trunk/people/src/hog.cpp:421:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if( init ) return a+n2; ni = 2.02f/(float) n;
^~
In file included from /home/alex/workspace/pcl-trunk/sample_consensus/include/pcl/sample_consensus/sac_model.h:52:0,
from /home/alex/workspace/pcl-trunk/sample_consensus/include/pcl/sample_consensus/sac.h:45,
from /home/alex/workspace/pcl-trunk/sample_consensus/include/pcl/sample_consensus/ransac.h:44,
@moriarty
moriarty / Installed stuff
Last active October 20, 2017 08:13
PCL on OpenSuse Tumbleweed compile issues
alex@localhost:~/workspace/pcl-trunk/build> history | grep "sudo zypper"
9 sudo zypper install cmake
56 sudo zypper install tree
63 sudo zypper install vtk-devel
65 sudo zypper install eigen3-devel
91 sudo zypper install libqt5-qtbase-devel
94 sudo zypper install boost_1_65-devel
101 sudo zypper install python3-vtk
108 sudo zypper install python3-devel
111 sudo zypper install libSM-devel
@moriarty
moriarty / gist:20fbb331d90755a059ad7df30fba16ac
Created June 24, 2016 18:16
Nuance VoCon Grammar Generation
Grammar File Generation
For grammar file generation you have to boot Windows.
Place the grammar files in: C:\grammars\<game>.bnf
Start "ASR Development Tools Prompt" and compile Grammar:
grmcpl.pyc -g C:\grammars\<game>.bnf -C C:\grammars\<game>.fcf --useclc
@moriarty
moriarty / gist:c64c4084cd255916348b
Created March 9, 2016 16:50
demo@cob3-1-pc1:~ $ rostopic echo /power_state
secs: 1457541636
nsecs: 616924047
frame_id: ''
voltage: 49.651
current: 0.0
power_consumption: 0.0
remaining_capacity: 0.0
relative_remaining_capacity: 0.0
charging: False
time_remaining: 0.0
@moriarty
moriarty / gist:4647397680939801ddbd
Created March 2, 2016 18:23
vocon speech recognizer
alex at ubuntu in ~/ros/indigo/robocup/src/vocon_speech_recognizer
$ roslaunch vocon_speech_recognizer vocon.launch
... logging to /home/alex/.ros/log/96a93aa6-e0a3-11e5-8dd6-000c29a02dd9/roslaunch-ubuntu-30339.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://ubuntu:38365/
SUMMARY