title: What format do I need to publish a ROS message geometry/Point32
body: <p>I have a JavaScript web application publishing/subscribing to ROS using rosbridge_suite/web sockets.</p>
  
  <p>I can successfully publish/subscribe to topics with std_msgs/String, std_msgs/Int32, etc, so I know that my connection is fine. What I'm having issues with is knowing how to format data to be published to a topic that accepts geometry/Point32.</p>
  
  <p>Here's an example:</p>
  
  <pre><code>const topic = new ROSLIB.Topic({
    ros, // defined elsewhere
    name: '/my_topic',
    messageType: 'geometry_msgs/Point32'
  });
  
  
  topic.publish({ data: { x: 1.0, y: 1.0, z: 1.0 } });
  </code></pre>
  
  <p>Then, I run <code>rostopic echo /my_topic</code> but I can't get it to show up. Again, all my other topics work and they're structured the same way. My coworkers and I ended up changing he messageType to a string and parsing out the values, but I really think this should be possible. Any ideas?</p>
  
  <p><strong>Here's what I've tried:</strong></p>
  
  <pre><code>publish({ data: { x: 1.0, y: 1.0, z: 1.0 } })
  publish({ x: 1.0, y: 1.0, z: 1.0 })
  publish(JSON.stringify({ x: 1.0, y: 1.0, z: 1.0 } }))
  publish({ data: JSON.stringify({ x: 1.0, y: 1.0, z: 1.0 } }) })
  publish({ data: 'x: 1.0, y: 1.0' })
  
  const coords = ROSLIB.Message({
    x: 1.0,
    y: 1.0,
    z: 1.0
  });
  
  publish({ data: coords });
  publish(coords);
  </code></pre>
  
  <p>...</p>
  
  <p>You get the idea.</p>
  
  <p>I'm using ROS Kinetic.</p>