Autonomous Racing  1
f1tenth Project Group of Technical University Dortmund, Germany
simulation_tools.plot_path Namespace Reference

Functions

def model_state_callback (message)
 
def crash_callback (message)
 

Variables

int DISTANCE_THRESHOLD = 1
 
float MARGIN = 0.1
 
 current_position = None
 
list crashes = []
 
list spawns = []
 
list paths = []
 
list current_path = []
 
tuple x_limits
 
tuple y_limits
 
tuple size = (x_limits[1] - x_limits[0], y_limits[1] - y_limits[0])
 
 fig = plt.figure(figsize=(size[0] * 0.22, size[1] * 0.22))
 
 color
 
 linewidth
 
 markersize
 
int file_index = 0
 
 filename = None
 
 extent = plt.gca().get_window_extent().transformed(fig.dpi_scale_trans.inverted())
 
 bbox_inches
 

Function Documentation

def simulation_tools.plot_path.crash_callback (   message)

Definition at line 43 of file plot_path.py.

def simulation_tools.plot_path.model_state_callback (   message)

Definition at line 23 of file plot_path.py.

Variable Documentation

simulation_tools.plot_path.bbox_inches

Definition at line 92 of file plot_path.py.

simulation_tools.plot_path.color

Definition at line 72 of file plot_path.py.

simulation_tools.plot_path.crashes = []

Definition at line 17 of file plot_path.py.

list simulation_tools.plot_path.current_path = []

Definition at line 20 of file plot_path.py.

simulation_tools.plot_path.current_position = None

Definition at line 16 of file plot_path.py.

int simulation_tools.plot_path.DISTANCE_THRESHOLD = 1

Definition at line 13 of file plot_path.py.

simulation_tools.plot_path.extent = plt.gca().get_window_extent().transformed(fig.dpi_scale_trans.inverted())

Definition at line 91 of file plot_path.py.

simulation_tools.plot_path.fig = plt.figure(figsize=(size[0] * 0.22, size[1] * 0.22))

Definition at line 66 of file plot_path.py.

int simulation_tools.plot_path.file_index = 0

Definition at line 85 of file plot_path.py.

string simulation_tools.plot_path.filename = None

Definition at line 86 of file plot_path.py.

simulation_tools.plot_path.linewidth

Definition at line 72 of file plot_path.py.

float simulation_tools.plot_path.MARGIN = 0.1

Definition at line 14 of file plot_path.py.

simulation_tools.plot_path.markersize

Definition at line 76 of file plot_path.py.

list simulation_tools.plot_path.paths = []

Definition at line 19 of file plot_path.py.

tuple simulation_tools.plot_path.size = (x_limits[1] - x_limits[0], y_limits[1] - y_limits[0])

Definition at line 64 of file plot_path.py.

simulation_tools.plot_path.spawns = []

Definition at line 18 of file plot_path.py.

tuple simulation_tools.plot_path.x_limits
Initial value:
1 = (np.min(OUTER_WALLS[:, 0]) - MARGIN,
2  np.max(OUTER_WALLS[:, 0]) + MARGIN)

Definition at line 60 of file plot_path.py.

tuple simulation_tools.plot_path.y_limits
Initial value:
1 = (np.min(OUTER_WALLS[:, 1]) - MARGIN,
2  np.max(OUTER_WALLS[:, 1]) + MARGIN)

Definition at line 62 of file plot_path.py.