ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to initialize a Float64MultiArray?

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

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

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-01-18 00:28:04 -0600

AKHIL gravatar image

add

  #include <std_msgs/Float64MultiArray.h> //include the lib
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-02-11 01:22:45 -0600

Seen: 1,228 times

Last updated: Feb 11 '17