Skip to content
Snippets Groups Projects
Commit b895e98f authored by German Castro's avatar German Castro
Browse files

Prevent thread to being created every time a goal is published

parent 960b00d2
Branches
No related tags found
No related merge requests found
......@@ -223,7 +223,9 @@ void AStarExplorerROSNode::handleExploreMode(crosbot_explore::SetExplorerModeReq
// Start planning thread
planningOperating = true;
if( !planningThread->isAlive() ){
planningThread->start();
}
} else {
ROS_ERROR("%s No pose provided for A* goal", LOG_START);
response.success = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment