topics.py
Go to the documentation of this file.
1 #!/usr/bin/env python3
2 
3 # Import configurations
4 from config import *
5 
6 # Import default callback funcitions
7 import defaultCallbacks as dc
8 
9 # Messages
10 from nav_msgs.msg import *
11 from sensor_msgs.msg import *
12 from geometry_msgs.msg import *
13 from ros_monitoring.msg import *
14 
15 # Other imports
16 import os, bson, datetime
17 
18 # ============== Callback function ============== #
19 # The function should always only have one variable 'data', where 'data' is the received message converted to a document
20 
21 
25 
26  # def debug(data, topic) -> None:
27  # print(data)
28 
29 
30 # ============== Nodes ============== #
31 
32 TOPICS = [
33 
46 
47  # ConnectionStatus
48  {
49  'topic' : '/connectionStatus',
50  'msg' : SignalInformation,
51  'sleep' : 5,
52  },
53  # NodesStatus
54  {
55  'topic' : '/nodesStatus',
56  'msg' : NodesInformation,
57  'sleep' : 5,
58  'callback': dc.diffStore
59  }
60 ]
msg
msg
msg
msg


cedri_node_monitoring
Author(s): Andre Luis Frana
autogenerated on Sat Jul 1 2023 02:34:25