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
import threading | |
import numpy as np | |
import rospy | |
from dbw_mkz_msgs.msg import SteeringCmd | |
from sensor_msgs.msg import Image | |
class SteeringNode(object): | |
def __init__(self, get_model_callback, model_callback): | |
rospy.init_node('steering_model') |
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
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install -y build-essential cmake git unzip pkg-config libopenblas-dev liblapack-dev linux-image-generic linux-image-extra-virtual linux-source linux-headers-generic | |
sudo apt-get install | |
sudo apt-get install | |
sudo apt-get install | |
sudo nano /etc/modprobe.d/blacklist-nouveau.conf | |
blacklist nouveau |
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
import rospy | |
from steering_node import SteeringNode | |
import argparse | |
import json | |
from scipy import misc | |
from keras.optimizers import SGD | |
from keras.models import model_from_json |
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
import threading | |
import numpy as np | |
import rospy | |
from dbw_mkz_msgs.msg import SteeringCmd | |
from sensor_msgs.msg import Image | |
class SteeringNode(object): | |
def __init__(self, get_model_callback, model_callback): | |
rospy.init_node('steering_model') |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Drive Google's Streetview Car</title> | |
<style> | |
html, body { | |
height: 100%; | |
margin: 0; |
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
URLS=[] | |
def create_url(url, method='get'): | |
def wrapper(func): | |
cls = type(func.func_name + 'Handler', (BaseHandler,), {method.lower():func}) | |
URLS.append((url, cls)) | |
def inner(*args, **kwargs): | |
return func(*args, **kwargs) | |
return inner | |
return wrapper |