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
#!/usr/bin/env python | |
import math | |
import rospy | |
from std_msgs.msg import Float64 | |
from sensor_msgs.msg import JointState | |
from simple_arm.srv import * | |
def at_goal(pos_j1, goal_j1, pos_j2, goal_j2): | |
tolerance = .05 |
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
#!/usr/bin/env python | |
import math | |
import rospy | |
from sensor_msgs.msg import Image, JointState | |
from simple_arm.srv import * | |
class LookAway(object): | |
def __init__(self): |
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 pandas as pd | |
import matplotlib.pyplot as plt | |
import pylab as plot | |
import numpy as np | |
# Graph appearance parameters | |
params = { | |
'legend.fontsize': 20, | |
'legend.handlelength': 2, | |
'axes.titlesize': 24, |
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 pandas as pd | |
import matplotlib.pyplot as plt | |
import pylab as plot | |
import numpy as np | |
from scipy.optimize import curve_fit | |
def func(x, a, b): | |
return a * np.power(b, x) | |
# Graph |
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 pandas as pd | |
import matplotlib.pyplot as plt | |
import pylab as plot | |
import numpy as np | |
from scipy.optimize import curve_fit | |
def func(x, a, b): | |
return a * np.power(b, x) | |
def logistic(x, L, k, x0): |
OlderNewer