TeacherService.h 670 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef TEACHERSERVICE_H
#define TEACHERSERVICE_H

#include "std_msgs/Int32.h"
#include "d_fall_pps/CrazyflieData.h"
#include "StudentSubscriber.h"
//#include "ros/ros.h"

namespace d_fall_pps
{
	// Stores the connected student IDs
	std::vector<int> studentIDs;
	// and subscriptions
	std::vector<StudentSubscriber> studentSubscribers;

	// Callback once the refresh Student ID button is clicked
	void refreshStudents_callback(const std_msgs::Int32 &msg);

	// Updates the subscription to the localization data of the students
	void subscribeLocalization();

	ros::Publisher studentIDs_publisher;
	ros::Publisher CFData_publisher;
}

#endif //	TEACHERSERVICE_H included