Skip to content
Snippets Groups Projects
Commit c10a0577 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

The main node thread sleep took effect only when the driver was running. In...

The main node thread sleep took effect only when the driver was running. In case the initialization failed, the node wastes 100% of the CPU.
parent 012a25bd
No related branches found
No related tags found
No related merge requests found
......@@ -300,8 +300,9 @@ void *IriBaseNodeDriver<Driver>::mainThread(void *param)
iriNode->mainNodeThread();
// ros::spinOnce();
iriNode->loop_rate_.sleep();
}
iriNode->loop_rate_.sleep();
}
pthread_exit(NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment