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
var mapzoom = 1; //future: set from cookie | |
var mapimgdivwidth = 480; //future: set from cookie | |
var mapimgdivheight = 480; //future: set from cookie | |
var mapimgleft = 0; //future: set from cookie | |
var mapimgtop = 0; //future: set from cookie | |
var mapzoomtimer; | |
var rosmapinfotimer = null; | |
var rosmapimgleftstart = null; | |
var rosmapimgtopstart = null; | |
var rosmapimggrabstartxy = null; |
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/env python | |
import time, oculusprimesocket | |
oculusprimesocket.connect() | |
oculusprimesocket.sendString("publish camera") # start camera | |
time.sleep(20) # wait for camera startup | |
while True: | |
oculusprimesocket.sendString("motiondetect") # start motion detection | |
# wait for detection |
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 | |
#setup ROS1 environment and execute params as single quoted string | |
# loads ROS environment | |
source $HOME/stuff/cartographer_catkin_ws/install_isolated/setup.bash | |
source $HOME/catkin_ws/devel/setup.bash --extend | |
rosclean purge -y | |
if ! rostopic list |
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
/** | |
* This file is part of ORB-SLAM2. | |
* | |
* Copyright (C) 2014-2016 Raúl Mur-Artal <raulmur at unizar dot es> (University of Zaragoza) | |
* For more information see <https://github.com/raulmur/ORB_SLAM2> | |
* | |
* ORB-SLAM2 is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. |
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 | |
# link flash cookies to ram drive | |
export FLASHSODIRPREFIX="$HOME/.config/google-chrome/Default/Pepper Data/\ | |
Shockwave Flash/WritableRoot/#SharedObjects/" | |
export CODE=`ls "$FLASHSODIRPREFIX"` | |
export FLASHSODIR="$FLASHSODIRPREFIX$CODE/127.0.0.1/oculusPrime/flash" |
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
/* | |
ASCII Serial Commands | |
f - fan on | |
o - fan off | |
1 - heater1 on | |
0 - heater1 off | |
3 - heater2 on | |
2 - heater2 off | |
a - auto temp control 1 start |
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/env python | |
import oculusprimesocket, time | |
# set reconnect (to run as daemon) | |
oculusprimesocket.reconnect = True | |
# connect to local Oculusprime java server | |
oculusprimesocket.connect() | |
while True: # loop forever |
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/env python | |
import oculusprimesocket, re, time | |
# set reconnect (to run as daemon) | |
oculusprimesocket.reconnect = True | |
# connect to local Oculusprime java server | |
oculusprimesocket.connect() | |
while True: # loop forever |
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 | |
echo "" | |
echo "OCULUS PRIME server" | |
echo "Use quitserver command to exit" | |
# set current working dir if necessary | |
export DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
cd $DIR |
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/env python | |
import oculusprimesocket | |
import atexit | |
def cleanup(): | |
oculusprimesocket.sendString("odometrystop") | |
atexit.register(cleanup) | |
oculusprimesocket.connect() |
NewerOlder