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

Revision history [back]

The datatype std_msgs::Float64 is not the same as a c++ 64 bit float (double). It is a message object that contains a member called data which is a 64bit float type.

To add a std_msgs::Float64 to the velodyne_n vector you'll need to create a std_msgs::Float64 object set it's data member to one of the values from velodynenormal then push_back that object.