From 9329d8f3eeaeb4142b493c624a5a288623449627 Mon Sep 17 00:00:00 2001 From: Tyler Marr Date: Thu, 16 Nov 2023 09:52:56 -0600 Subject: [PATCH] Fix missing option in OptStatus to string --- trajopt_sco/include/trajopt_sco/optimizers.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trajopt_sco/include/trajopt_sco/optimizers.hpp b/trajopt_sco/include/trajopt_sco/optimizers.hpp index e6b8d315..9f8a2041 100644 --- a/trajopt_sco/include/trajopt_sco/optimizers.hpp +++ b/trajopt_sco/include/trajopt_sco/optimizers.hpp @@ -23,9 +23,10 @@ enum OptStatus OPT_FAILED, INVALID }; -static const std::array OptStatus_strings = { "CONVERGED", +static const std::array OptStatus_strings = { "CONVERGED", "SCO_ITERATION_LIMIT", "PENALTY_ITERATION_LIMIT", + "TIME_LIMI", "FAILED", "INVALID" }; inline std::string statusToString(OptStatus status) { return OptStatus_strings[status]; }