How to initialize a Float64MultiArray?

asked 2017-02-11 01:22:45 -0500

Cerin gravatar image

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?

edit retag flag offensive close merge delete