Skip to content

Instantly share code, notes, and snippets.

View tutorgaming's full-sized avatar
🤖
Beep Boop Beep Beep

iTUTOR tutorgaming

🤖
Beep Boop Beep Beep
View GitHub Profile
@tutorgaming
tutorgaming / robot.js
Last active May 28, 2017 17:09
ROS Robot rosnodejs interfacing with node-mavlink
/*
HGMC ROS COMM MODULE
Description : Communication Module for ROBOT via SOCKET.IO
Provide ROS Interface though rosnodejs of reThinkRobotics
Expectation : QT can do this function as well
Author : Theppasith Nisitsukcharoen
*/
import io from 'socket.io-client'
import mavlink from 'mavlink'
import mavlinkMessage from 'mavlink'
@tutorgaming
tutorgaming / .touchPadScript
Last active September 16, 2016 03:09
Touchpad On Off Script for DELL 5368 // RUN THE SCRIPT IN KEYBOARD (SETTING) -> shortcuts (Must define button manually)
#!/bin/sh
declare -i ID
ID=` xinput list | grep -Eo 'Touchpad \s*id=[0-9]{1,2}'| grep -Eo '[0-9]{1,2}' `
declare -i STATE
STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'`
if [ $STATE -eq 1 ]
then
xinput set-prop $ID "Device Enabled" 0
@tutorgaming
tutorgaming / simple_state_machine.cpp
Created August 21, 2016 07:12
Simple State Machine for Robot Controlling
#include <iostream>
char user_input;
char state;
void getInput(){
std::cout << "please insert input : ";
std::cin >> user_input;
// Interpret Input as an states
state = user_input;