Skip to content
Snippets Groups Projects
Commit 61582b41 authored by Joan Perez Ibarz's avatar Joan Perez Ibarz
Browse files

adding new files for iri_local_planner to test iri_core algorithm base

parent a02a37f4
No related branches found
No related tags found
No related merge requests found
......@@ -49,8 +49,6 @@ class IriBaseAlgorithm
template <class Algorithm>
IriBaseAlgorithm<Algorithm>::IriBaseAlgorithm(): private_node_handle_("~"), loop_rate(DEFAULT_RATE)
{
// this->driver_.setPostOpenHook(boost::bind(&CIriNode::postOpenHook, this));
// create the status thread
this->thread_server=CThreadServer::instance();
this->main_thread_id="main_thread";
......@@ -69,14 +67,8 @@ void *IriBaseAlgorithm<Algorithm>::mainThread(void *param)
while(ros::ok())
{
// std::cout << __LINE__ << ": driver state=" << iriNode->driver_.getStateName() << std::endl;
// if(iriNode->driver_.isRunning())
// {
iriNode->mainNodeThread();
// ros::spinOnce();
iriNode->loop_rate.sleep();
// }
}
pthread_exit(NULL);
......@@ -92,10 +84,10 @@ template <class AlgImplTempl>
int main(int argc, char **argv, std::string name)
{
ros::init(argc, argv, name);
AlgImplTempl algImpl;
// algImpl.AlgImplTempl::mainThread();
ros::spin();
return 0;
return ros::spin();
}
}
......
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