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
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun May 10 21:50:41 2020 | |
@author: tabor | |
""" | |
import numpy as np | |
import matplotlib.pyplot as plt | |
def speed(w1,w2): | |
x_direction_speed = max(abs(w1[0]),abs(w2[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
import torch | |
import numpy as np | |
def forward(x): | |
clippedTheta = torch.sigmoid(x) * 720 - 360 | |
return clippedTheta | |
OlderNewer