Message Type | ROS to UE4 | UE4 to ROS |
---|---|---|
sdf | ✓ | |
sdf | sfdsf | ✓ |
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
""" | |
Prompts the user to pick num_points from the figure displayed in window_name | |
Promts the user to pick points from a displayed image. Users can cancel the | |
point selection by pressing Escape. | |
Args: | |
window_name: The name of the window the user should pick from | |
num_points: Number of points the user should pick (defaults to 4) | |
mouse_event: The event to use for picking points (defaults to left |
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 | |
# Convert .svg files to .png - works on a single file or | |
# recursively on the given directory. | |
# Requries ImageMagick's `convert` function | |
# Author: Aaaron Snoswell | |
density=${2-72} | |
function convertsvg () { |
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
/** | |
* particle_filter.c - A simple demonstration of a particle filter | |
* | |
* Example adapted from | |
* http://web.mit.edu/16.412j/www/html/Advanced%20lectures/Slides/Hsaio_plinval_miller_ParticleFiltersPrint.pdf | |
* | |
* Suppose you're trying to tell if it is rainy or sunny outside (a system | |
* with two possible states), but you can't see out any windows. The only | |
* information you have is observations you make as your boss periodically | |
* walks by your room; he will either be carrying an umbrella, or not carrying |
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
// Really (really) fast unit vector normalisation | |
var c = 0.7071067812; | |
if(v[X] != 0 && v[Y] != 0) { | |
v[X] *= c, v[Y] *= c; | |
} |
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
/* Formats a human-, or machine-friendly string to be suitable for use as a | |
* CSS class name. | |
*/ | |
var classify = function(text) { | |
text = (text != undefined) ? text : ""; | |
return text.toLowerCase().replace(/\s/g, "_").replace(/[^a-zA-Z0-9_]/g, ""); | |
} |
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
// jQuery version | |
$("input[type='number']").each(function(i, el) { | |
el.type = "text"; | |
el.onfocus = function(){this.type="number";}; | |
el.onblur = function(){this.type="text";}; | |
}); | |
// Stand-alone version | |
(function(){ var elms = document.querySelectorAll("input"), i=elms.length; |
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 | |
while : | |
do | |
import -window root "png:/home/aaron/Pictures/screen_capture/`date +%Y_%m_%d-%H:%M:%S`.png" | |
echo "Saved `date +%Y_%m_%d-%H:%M:%S`.png"; | |
sleep 30 | |
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
// l33t codes go here | |
var canvas = document.querySelector("#canvas"), | |
ctx = canvas.getContext("2d"); | |
/** | |
* The general idea with perlin noise is to generate | |
* noise at several resolutions and overlay them | |
* with varying amplitudes and opacities. | |
* |
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
// l33t codes go here | |
var canvas = document.querySelector("#canvas"), | |
ctx = canvas.getContext("2d"); | |
var randcache = []; | |
function noise(x, y) { | |
/* | |
var n = (x) + (y*57); |