title: How to create a geometry_msgs::Point?
body: <p>I'm using ROS melodic.</p>
  
  <p>This is not a robot problem, it is a C++ problem.</p>
  
  <p>I'm trying this C++ code:</p>
  
  <pre><code>#include "ros/ros.h"
  #include "geometry_msgs/Point.h"
  #include "geometry_msgs/Twist.h"
  #include "geometry_msgs/Quaternion.h"
  #include "tf/transform_datatypes.h"
  #include "tf/LinearMath/Matrix3x3.h"
  #include "nav_msgs/Odometry.h"
  
  #include &lt;sstream&gt;
  #include &lt;cmath&gt;
  #include &lt;cstdlib&gt;
  #include &lt;queue&gt;
  
  // ... More code
  
  geometry_msgs::Point p;
  </code></pre>
  
  <p>But I get the following error message:</p>
  
  <pre><code>no instance of constructor "geometry_msgs::Point_&lt;containerallocator&gt;::Point_ [with ContainerAllocator=std::allocator&lt;void&gt;]" matches the argument list -- argument types are: (double, double)
  </code></pre>
  
  <p>This is <a href="http://docs.ros.org/diamondback/api/geometry_msgs/html/Point_8h_source.html" rel="nofollow noreferrer">Point.h</a> header.</p>
  
  <p>What am I doing wrong?</p>