예제 #1
0
파일: tasks.c 프로젝트: 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);
}
예제 #2
0
파일: Coop.cpp 프로젝트: Heverton29/CoopPkg
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();
	}
}