Skip to content
Snippets Groups Projects
Commit d0e15453 authored by Johannes Mey's avatar Johannes Mey
Browse files

fix cell update error (and autoformat)

parent c57b6ff6
Branches
Tags
No related merge requests found
...@@ -54,22 +54,21 @@ public: ...@@ -54,22 +54,21 @@ public:
void setCurrentTask(const std::shared_ptr<Task> &new_task) void setCurrentTask(const std::shared_ptr<Task> &new_task)
{ {
if (!currentActionCompleted()) { if (!currentActionCompleted())
ROS_WARN_STREAM("Cell " << cell_.id << " got a new task although an action of the previous task is still ongoing."); {
ROS_WARN_STREAM(
"Cell " << cell_.id << " got a new task although an action of the previous task is still ongoing.");
} }
current_task_.reset(new_task.get()); current_task_.reset(new_task.get());
} }
void proceedWithTask() void proceedWithTask()
{
if (cell_.state == Cell::IDLE)
{ {
if (currentActionCompleted()) if (currentActionCompleted())
{ {
auto action = triggerNextAction(); auto action = triggerNextAction();
} }
} }
}
void updateModel(const std::string &scene_string) void updateModel(const std::string &scene_string)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment