jason-lang / jason_ros

Jason and ROS integration
GNU General Public License v3.0
6 stars 2 forks source link

CommInfo data must be a list of list #13

Closed Rezenders closed 5 years ago

Rezenders commented 5 years ago

Expected

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

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

Rezenders commented 5 years ago

Done 3d696d4