TeacherService.h 1.7 KB
Newer Older
flashingx's avatar
flashingx committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//    ROS node that handles subscription to and position data from
//	  students regardless of position data source used.
//
//    Copyright (C) 2018
//          Yvan Bosshard           byvan       @ee.ethz.ch
//          Michael Rogenmoser      michaero    @ee.ethz.ch
//          Tiago Salzmann          tiagos      @ee.ethz.ch
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.

22
23
24
25
#ifndef TEACHERSERVICE_H
#define TEACHERSERVICE_H

#include "std_msgs/Int32.h"
flashingx's avatar
flashingx committed
26

27
#include "d_fall_pps/CrazyflieData.h"
flashingx's avatar
flashingx committed
28

29
30
31
32
33
34
#include "StudentSubscriber.h"

namespace d_fall_pps
{
	// Stores the connected student IDs
	std::vector<int> studentIDs;
flashingx's avatar
flashingx committed
35

36
37
38
39
40
41
	// and subscriptions
	std::vector<StudentSubscriber> studentSubscribers;

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

flashingx's avatar
flashingx committed
42
43
44
45
46
47

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

#endif //	TEACHERSERVICE_H included