Hello All,
I am getting the following error when compiling my rosserial_arduino code for sampling and sending a LaserScan msg.
This code works just fine in a standard ros c++ node. Does this member not exist? Am I not accessing it correctly? Thanks!
Compilation Error:
error: request for member ‘resize’ in ‘scan_msg.sensor_msgs::LaserScan::ranges’, which is of non-class type ‘float’*
Code in Question:
unsigned int node_count = 10;
scan_msg.ranges.resize(node_count);
Originally posted by Kent Williams on ROS Answers with karma: 91 on 2014-07-31
Post score: 0