sio_events
SioEvents
#
Bases: ClientNamespace
Handle all SocketIO events received by Detector.
Source code in cogip/tools/detector/sio_events.py
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
on_command(cmd)
#
Callback on command message from dashboard.
Source code in cogip/tools/detector/sio_events.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
|
on_connect()
#
On connection to cogip-server, start detector threads.
Source code in cogip/tools/detector/sio_events.py
20 21 22 23 24 25 26 27 28 |
|
on_connect_error(data)
#
On connection error, check if a Detector is already connected and exit, or retry connection.
Source code in cogip/tools/detector/sio_events.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
on_disconnect()
#
On disconnection from cogip-server, stop detector threads.
Source code in cogip/tools/detector/sio_events.py
30 31 32 33 34 35 |
|
on_pose_current(data)
#
Callback on robot pose message.
Source code in cogip/tools/detector/sio_events.py
75 76 77 78 79 |
|
on_sensors_data(data)
#
Callback on Lidar data.
Source code in cogip/tools/detector/sio_events.py
81 82 83 84 85 86 87 |
|