Ask Your Question

Revision history [back]

click to hide/show revision 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.