Ejemplo n.º 1
0
Archivo: tasks.c Proyecto: eqmcc/zeppoo
void viewHiddenTasks(void){
	pTable *tasksmemory;
	pTable *tasksproc;
	pTable *tasksprocforce;
	pTable *tasksps;
	pTable *taskskill;
	pTable *taskscheck;
	
	tasksmemory = hash_new((void *)free_task);
	tasksproc = hash_new((void *)free_task);
	tasksprocforce = hash_new((void *)free_task);
    	tasksps = hash_new((void *)free_task);
	taskskill = hash_new((void *)free_task);
	taskscheck = hash_new((void *)free_task);
	
	getTasksMemory(tasksmemory);
	getTasksProc(tasksproc);
	getTasksProcForce(tasksprocforce);
	getTasksPS(tasksps);
	getTasksKill(taskskill);
		
	checkTasks(tasksproc, tasksps, taskscheck);
	checkTasks(tasksprocforce, tasksproc, taskscheck);
	checkTasks(tasksmemory, tasksproc, taskscheck);
	checkTasks(taskskill, tasksproc, taskscheck);
	viewCheckTasks(taskscheck);
	
	hash_delete(tasksmemory);
	hash_delete(tasksproc);
	hash_delete(tasksprocforce);
	hash_delete(tasksps);
	hash_delete(taskskill);
	hash_delete(taskscheck);
}
Ejemplo n.º 2
0
void Coop::spin() {
	ROS_INFO("Coop Node is up and running!!!");
	ros::Rate loop_rate(10.0);	
	while (ros::ok()) {
		checkLoggedRobots();
		checkIddleRobots();
		checkTasks();
		alocateRobotForAllTasks(robots_, tasks_);
		publishTaskState();
		spinOnce();		
		loop_rate.sleep();
	}
}