Skip to content

Commit

Permalink
fix: fix out of map path name parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
hiikariri committed Mar 15, 2024
1 parent 7991c1f commit 5b5cb81
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/akushon/action/node/action_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5b5cb81

Please sign in to comment.