Public Member Functions | |
def | __init__ (self) |
def | callback (self, data) |
def | check_message_counter (self) |
def | fill_message (self, data, msg) |
Public Attributes | |
global_msg | |
pub | |
pub_a | |
pub_b | |
This is a Radar Node class, which instansiate a node and subscribig to received_messages topice to be able to read can messages. Then, publish the extracted message A on "can_messages_A", extracted message A on "can_messages_A" and both A,B on "radar_messages".
Definition at line 71 of file radar_pa_node.py.
def radar_pa_node.RadarPaNode.__init__ | ( | self | ) |
Definition at line 78 of file radar_pa_node.py.
def radar_pa_node.RadarPaNode.callback | ( | self, | |
data | |||
) |
This method calling the extection function and fill the msg with the result from the extraction function.
Definition at line 108 of file radar_pa_node.py.
def radar_pa_node.RadarPaNode.check_message_counter | ( | self | ) |
This function used to cehck all counters are the same before publishing the message to the topic
Definition at line 156 of file radar_pa_node.py.
def radar_pa_node.RadarPaNode.fill_message | ( | self, | |
data, | |||
msg | |||
) |
Ths function to fill the global message with the extracted result
Definition at line 141 of file radar_pa_node.py.
radar_pa_node.RadarPaNode.global_msg |
Definition at line 97 of file radar_pa_node.py.
radar_pa_node.RadarPaNode.pub |
Definition at line 94 of file radar_pa_node.py.
radar_pa_node.RadarPaNode.pub_a |
Definition at line 90 of file radar_pa_node.py.
radar_pa_node.RadarPaNode.pub_b |
Definition at line 92 of file radar_pa_node.py.