Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 99

Publish multiarray Python msg

$
0
0
When I press a button of my joystick, I save one point [x y z r p y] if I press again I save another point. Here, I save two points: [[0.29845908995953135, 0.210860533103541, 1.2190388918130415, -2.746641670660039, -0.8329844111292952, 2.842403460148573], [0.29843708899253263, 0.2220901105357484, 1.2190362691066245, -2.7466506780478976, -0.8329799064852043, 2.842416429478355]] I want to publish something like this: file.msg int32 points float32[points][0] vector float32[points][1] vector float32[points][2] vector float32[points][3] vector float32[points][4] vector float32[points][5] vector If I use std_msgs/Float32MultiArray.msg MultiArrayLayout layout float32[][0] vector float32[][1] vector float32[][2] vector float32[][3] vector float32[][4] vector float32[][5] vector So, Currently only support 1-dimensional array types. How solve this?

Viewing all articles
Browse latest Browse all 99

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>