From 0c7745d2e103592c27b464d78869511147de5262 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Sun, 18 Feb 2024 15:54:10 -0800 Subject: [PATCH] Add cast --- emscripten/TrajoptLibEmbind.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/emscripten/TrajoptLibEmbind.cpp b/emscripten/TrajoptLibEmbind.cpp index b3f56850..bf9bfd74 100644 --- a/emscripten/TrajoptLibEmbind.cpp +++ b/emscripten/TrajoptLibEmbind.cpp @@ -42,8 +42,7 @@ HolonomicTrajectory opticall(int intervals) { path.ControlIntervalCounts({4}); // SOLVE - [[maybe_unused]] SwerveSolution solution = - OptimalTrajectoryGenerator::Generate(path); + return HolonomicTrajectory{OptimalTrajectoryGenerator::Generate(path)}; } EMSCRIPTEN_BINDINGS(my_module) {