Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MissionPlanning/StateMachine/state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def generate_plantuml(self) -> str:
plt.imshow(imread(BytesIO(content), format="png"))
plt.axis("off")
plt.show()
except Exception as e:
except (OSError, ValueError, TypeError) as e:
print(f"Error showing PlantUML: {e}")

return plant_uml_text
4 changes: 2 additions & 2 deletions PathPlanning/ClothoidPath/clothoid_path_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def generate_clothoid_path(start_point, start_yaw,
L = compute_path_length(r, phi1, delta, A)
curvature = compute_curvature(delta, A, L)
curvature_rate = compute_curvature_rate(A, L)
except Exception as e:
except (ValueError, TypeError) as e:
print(f"Failed to generate clothoid points: {e}")
return None

Expand All @@ -86,7 +86,7 @@ def generate_clothoid_path(start_point, start_yaw,
y = start_point.y + s * Y(curvature_rate * s ** 2, curvature * s,
start_yaw)
points.append(Point(x, y))
except Exception as e:
except (ValueError, TypeError) as e:
print(f"Skipping failed clothoid point: {e}")

return points
Expand Down