roslibjs MultiArray Message
Hi all,
I am trying to create a web interface for a robot, and would like to publish a message of type:
std_msgs/Int32MultiArray
Thus in my code I have the following statement to create the message:
var msg = new ROSLIB.Message({
data : [1 , 2, 3]
});
However, when I attempt to publish that in my browser I see a Javascript error of type 'cannot read property of undefined.'
I suspect it has to do with the way I am trying to set the message data, but cannot find an example of the proper way to do so. Has anyone had any luck with this?
Thanks.