matrix message
Hi! I would like to save a 2x2 matrix from a c++ script in a ros message. How can I do this? what kind od meassage type should I use? Thanks
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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).
Asked: 2020-06-15 08:18:08 -0600
Seen: 1,563 times
Last updated: Jun 15 '20