50 current_i = min(current_i + 1, len(df) - 1)
51 elif event.key ==
"h":
52 current_i = max(current_i - 1, 0)
53 elif event.key ==
"p":
54 current_i = min(current_i + 10, len(df) - 1)
55 elif event.key ==
"u":
56 current_i = max(current_i - 10, 0)
57 elif event.key ==
"e":
77 angle_increment = row[
"angle_increment"]
78 angle_min = row[
"angle_min"]
79 angle_max = row[
"angle_max"]
80 angles = np.arange(angle_min, angle_max + angle_increment, angle_increment)
82 x = np.cos(angles) * ranges
83 y = np.sin(angles) * ranges
88 ax.set_aspect(
"equal")
89 ax.set_xscale(
"linear")
90 ax.set_yscale(
"linear")
92 lidar_max = df.iloc[0][
"range_max"]
93 ax.set_xlim(-lidar_max, lidar_max)
94 ax.set_ylim(-lidar_max, lidar_max)
95 ax.plot(x, y,
"o", linestyle=
"None")