ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
i have changed the function into this one
void scanValues(const sensor_msgs::LaserScan laser)
{
ROS_INFO("size[%d]: ", laser.intensities.size());
for (unsigned int i=0; i<laser.intensities.size();i++)
{
//intensities[i] = laser.intensities[i];
ROS_INFO("intens[%f]: ", laser.intensities[i]);
}
}
but i still get errors, i double-checked that rostopic echo /scan publishes tons of messages.