Skip to content

Instantly share code, notes, and snippets.

View AustinDeric's full-sized avatar
🤖

Austin Deric AustinDeric

🤖
View GitHub Profile
@AustinDeric
AustinDeric / gist:e1d0b130ad7eadae6d6c1d9ce4b30a1a
Created April 14, 2017 14:27
pack_ml statemachine public functions
class StateMachineInterface
{
public:
virtual bool activate()=0;
virtual bool setExecute(std::function<int()> execute_method)=0;
virtual bool setResetting(std::function<int()> resetting_method)=0;
virtual bool isActive()=0;
virtual int getCurrentState()=0;
@AustinDeric
AustinDeric / Dockerfile
Created June 12, 2017 15:48
Dockerfile for rosindustrial/fetch:indigo
FROM rosindustrial/core:indigo
LABEL [email protected]
RUN apt-get update && apt-get install -y ros-indigo-fetch-gazebo-demo ros-indigo-fetch-gazebo
@AustinDeric
AustinDeric / viz.html
Last active June 12, 2017 16:11
robot web tools html
<!DOCTYPE html>
<html>
<head>
<title>ROS-I Viz</title>
<meta charset="utf-8" />
<script src="http://cdn.robotwebtools.org/threejs/current/three.min.js"></script>
<script src="http://cdn.robotwebtools.org/threejs/current/ColladaLoader.min.js"></script>
<script src="http://cdn.robotwebtools.org/ColladaAnimationCompress/current/ColladaLoader2.min.js"></script>
<script src="http://cdn.robotwebtools.org/threejs/current/STLLoader.min.js"></script>
@AustinDeric
AustinDeric / nginx.conf
Created June 12, 2017 16:17
conf file for nginx
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
}
http {
server{
@AustinDeric
AustinDeric / MyClass.jsx
Last active February 9, 2021 13:38
ros3djs react app
import React, { Component } from 'react';
import ROS3D from 'ros3d';
import ROSLIB from 'roslib'
import './css/general.css';
export default class MyClass extends Component {
render() {
let ros = new ROSLIB.Ros({
@AustinDeric
AustinDeric / testSimulation.jsx
Last active April 25, 2018 18:11
ROS3D React Component - test code
import React, { Component } from 'react';
import {Viewer, Grid, UrdfClient} from 'ros3d';
import ROSLIB from 'roslib';
export default class Simulator extends Component {
constructor(props) {
super(props);
}
@AustinDeric
AustinDeric / keycloak_aws_deployment.md
Created May 29, 2018 16:44 — forked from pgchamberlin/keycloak_aws_deployment.md
Deploying Keycloak to AWS using a Ubuntu AMI

Deploying Keycloak to AWS

The objective of this guide is to deploy Keycloak to AWS in a minimally complex way for testing and discovery purposes. This means using the standalone build of Keycloak backed with Hibernate H2. The result is not a production ready system. It won't scale, it won't survive significant load, it can't be clustered.

Mostly this Gist is a distillation of the Keycloak Server Installation guide for a specific use case: to spin up a quick and dirty Keycloak instance for testing and experimenting.

Steps

  • Spin up and configure a Ubuntu AMI
  • Install and configure Keycloak with an SSL cert
#include <iostream>
#include <string>
#include <vector>
//method: parse the string and create a vector of numbers and operators then iterate that vector to create the value
int main(){
std::string str_val = "3*5+11+5*20+9*2*4+135";
std::vector<std::string> expression;
std::string number_holder;
int position = 0;
@AustinDeric
AustinDeric / fun_path_planner.cpp
Last active July 11, 2018 20:54
Wavefront path planner
// Compiled with: g++ -Wall -std=c++14 -pthread
/*
Shortest path on a grid
1. In robotics, a robot often to find a plan (a path or a set of actions) to reach its goal. Write code to determine the shortest path on a grid. Where the grid is square with the length of side N = 10. In one step the robot is only allowed to move to a cell adjacent to its current cell, i.e., robot can move up, down, left, right (not diagonally). The robot can start at a point (0,0) and its goal location (7,9) assuming the row and column values are indexed starting at 0. Your output is to print the sequence of cells that the robot will visit. You can print the row, col value for each cell that the robot visits on its way to the goal.
Bonus Question: Now lets say someone placed an obstacle at (6,7) and (2,2). An obstacle means that the robot can no longer go through that cell. How will your solution change? Implement your solution and print the path.
Objective: Write a function "findShortestPath(const int N, const int startx, const i
- git:
local-name: catkin_simple
uri: https://github.com/catkin/catkin_simple
version: master
- git:
local-name: hector_gazebo
uri: https://github.com/tu-darmstadt-ros-pkg/hector_gazebo
version: kinetic-devel
- git:
local-name: realtime_tools