forked from MathiasCiarlo/ROSBridgeLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ROSBridgeSubscriber.cs
40 lines (33 loc) · 1.01 KB
/
ROSBridgeSubscriber.cs
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
27
28
29
30
31
32
33
34
35
36
37
38
39
using System.Collections;
using SimpleJSON;
/**
* This defines a subscriber. Subscribers listen to publishers in ROS. Now if we could have inheritance
* on static classes then we could do this differently. But basically, you have to make up one of these
* for every subscriber you need.
*
* Subscribers require a ROSBridgePacket to subscribe to (its type). They need the name of
* the message, and they need something to draw it.
*
* Version History
* 3.1 - changed methods to start with an upper case letter to be more consistent with c#
* style.
* 3.0 - modification from hand crafted version 2.0
*
* @author Michael Jenkin, Robert Codd-Downey and Andrew Speers
* @version 3.1
*/
namespace ROSBridgeLib {
public class ROSBridgeSubscriber {
public static string GetMessageTopic() {
return null;
}
public static string GetMessageType() {
return null;
}
public static ROSBridgeMsg ParseMessage(JSONNode msg) {
return null;
}
public static void CallBack(ROSBridgeMsg msg) {
}
}
}