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 -0500
Seen: 1,427 times
Last updated: Jun 15 '20
How to correctly publish and receive cv::Mat using cv_bridge? (C++)
How to get length of array of geometry_msg:Points in service handle?
Custom QT GUI in ROS for real time data freeze
waitForTransform fails in Callback
Unable to install because of missing ninja
Is the Tag in Package.xml redundant?