Created basic outline of Displayer class
This commit is contained in:
13
examples/gps_fusion.py
Normal file
13
examples/gps_fusion.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
from time import sleep
|
||||
from matplotlib.animation import FuncAnimation
|
||||
|
||||
from display.dislpay_2d import Displayer
|
||||
|
||||
|
||||
|
||||
def run():
|
||||
disp = Displayer(width=6, height=6)
|
||||
# disp.show_object([1, 1], 4, "green")
|
||||
disp.animate(n_steps = 100)
|
||||
BIN
examples/gps_fusion.pyc
Normal file
BIN
examples/gps_fusion.pyc
Normal file
Binary file not shown.
@@ -1,4 +1,3 @@
|
||||
from filter.kalman_filter import LinearKalmanFilter
|
||||
import matplotlib.pyplot as plt
|
||||
import csv
|
||||
import numpy as np
|
||||
@@ -53,7 +52,7 @@ The reset of the parameters are empirically determined
|
||||
"""
|
||||
|
||||
|
||||
def simulate(kalman_filter_t):
|
||||
def run(kalman_filter_t):
|
||||
# Read data
|
||||
|
||||
x0_actual = [48.993552704, 8.371038159]
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,3 @@
|
||||
from filter.kalman_filter import LinearKalmanFilter
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
|
||||
@@ -25,7 +24,7 @@ The reset of the parameters are empirically determined
|
||||
"""
|
||||
|
||||
|
||||
def simulate(kalman_filter_t):
|
||||
def run(kalman_filter_t):
|
||||
# Simulation parameter definitions
|
||||
|
||||
n_iterations = 500
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user