Closed Rezenders closed 5 years ago
Suppose that a particular msg type is:
MyMsg: string myname MyCustomMsg mycustommsg MyCustomMsg: string custom
In perception_manifest if we want to read the custom field of MyCustomMsg we would need to write the data field as: data = custom
data = custom
However, if we are reading MyMsg and want to get the custom field we want to write: data = mycustommsg.custom
data = mycustommsg.custom
In hw_controller.py at subscriber_callback hasattr doesn't find fields that are concataneted
In CommInfo class data must be an array of array and then at subscriber_callback hasattr/getattr must be called iteratively
Done 3d696d4
Expected
Suppose that a particular msg type is:
In perception_manifest if we want to read the custom field of MyCustomMsg we would need to write the data field as:
data = custom
However, if we are reading MyMsg and want to get the custom field we want to write:
data = mycustommsg.custom
What is happening
In hw_controller.py at subscriber_callback hasattr doesn't find fields that are concataneted
Solution
In CommInfo class data must be an array of array and then at subscriber_callback hasattr/getattr must be called iteratively