How to initialize a Float64MultiArray?
How do you initialize a Float64MultiArray?
I'm trying:
std_msgs::Float64MultiArray vec3;
vec3.data.resize(3);
but this gets me the error:
line 2 'vec3' does not name a type
What am I doing wrong?
Asked by Cerin on 2017-02-11 02:22:45 UTC
Answers
add
#include <std_msgs/Float64MultiArray.h> //include the lib
Asked by AKHIL on 2020-01-18 01:28:04 UTC
Comments