From 5b5cb819aeada5b78fbd871d1c567024907d1405 Mon Sep 17 00:00:00 2001 From: hiikariri Date: Sat, 16 Mar 2024 01:08:51 +0700 Subject: [PATCH] fix: fix out of map path name parsing --- src/akushon/action/node/action_manager.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/akushon/action/node/action_manager.cpp b/src/akushon/action/node/action_manager.cpp index 48de839..45d3ada 100644 --- a/src/akushon/action/node/action_manager.cpp +++ b/src/akushon/action/node/action_manager.cpp @@ -76,7 +76,7 @@ void ActionManager::load_config(const std::string & path) } // remove "/" from the start of the name string - name.erase(0, 1); + // name.erase(0, 1); try { std::ifstream file(file_name); nlohmann::json action_data = nlohmann::json::parse(file); @@ -129,7 +129,8 @@ Action ActionManager::load_action( } else if (key == "next") { action.set_next_action(val); } else if (key == "use_spline") { - action.enable_spline(val); + bool value = true; + action.enable_spline(value); } } action.generate_splines(); @@ -177,8 +178,10 @@ void ActionManager::start(const Action & action, const Pose & initial_pose) void ActionManager::process(int time) { - if (interpolator) { + if (true) { + std::cout << "check 2" << std::endl; interpolator->process(time); + std::cout << "process clear" << std::endl; if (interpolator->is_finished()) { interpolator = nullptr;