ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You could use the Multi Arrays in std_msgs, although they seem to be overkill for a simple 2x2 matrix.
If it's always a 2x2 matrix, a custom message using a one dimensional array would be sufficient. In that case you would have to take care of the reassembly yourself. Should your matrix dimensions vary, you could add those as extra fields to your message (similar to Image).