src/walker.cpp
void walker::laserScanCallback(const sensor_msgs::LaserScan::ConstPtr &range) {
  for (auto i = 0; i < range->ranges.size(); ++i) {
    if (range->ranges[i] < 0.3) {
      obstacleRange = true;
      return;
    }
  }
  obstacleRange = false;
  return;
}
/*
 * @brief: Implementation of the laserScanCallback method of walker class
 * @param: Laser Scan sensor message
 */
@brief: Implementation of the laserScanCallback method of walker class
@param: Laser Scan sensor message
@brief : Implementation of the laserScanCallback method of walker class @param : Laser Scan sensor message
void walker::laserScanCallback(const sensor_msgs::LaserScan::ConstPtr &range) {
  for (auto i = 0; i < range->ranges.size(); ++i) {
    if (range->ranges[i] < 0.3) {
      obstacleRange = true;
      return;
    }
  }
  obstacleRange = false;
  return;
}
void walker :: laserScanCallback ( const sensor_msgs :: LaserScan :: ConstPtr & range ) { for ( auto i = 0 ; i < range -> ranges . size ( ) ; ++ i ) { if ( range -> ranges [ i ] < 0.3 ) { obstacleRange = true ; return ; } } obstacleRange = false ; return ; }
@brief: Implementation of the laserScanCallback method of walker class
 @param: Laser Scan sensor message
@brief : Implementation of the laserScanCallback method of walker class @param : Laser Scan sensor message