driver/src/sick_scan_services.cpp
bool sick_scan::SickScanServices::sendRun()
{
  std::string sopasCmd = std::string("sMN Run");
  std::vector<unsigned char> sopasReplyBin;
  std::string sopasReplyString;

  if(!sendSopasAndCheckAnswer(sopasCmd, sopasReplyBin, sopasReplyString))
  {
    ROS_ERROR_STREAM("## ERROR SickScanServices::sendSopasAndCheckAnswer failed on sending command\"" << sopasCmd << "\"");
    return false;
  }

  ROS_INFO_STREAM("SickScanServices: request: \"" << sopasCmd << "\"");
  ROS_INFO_STREAM("SickScanServices: response: \"" << sopasReplyString << "\"");
  
  return true;
}
/*!
 * Sends the SOPAS command "sMN Run", which applies previous send settings
 */
Sends the SOPAS command "sMN Run", which applies previous send settings
Sends the SOPAS command " sMN Run " which applies previous send settings
bool sick_scan::SickScanServices::sendRun()
{
  std::string sopasCmd = std::string("sMN Run");
  std::vector<unsigned char> sopasReplyBin;
  std::string sopasReplyString;
  if(!sendSopasAndCheckAnswer(sopasCmd, sopasReplyBin, sopasReplyString))
  {
    ROS_ERROR_STREAM("## ERROR SickScanServices::sendSopasAndCheckAnswer failed on sending command\"" << sopasCmd << "\"");
    return false;
  }
  ROS_INFO_STREAM("SickScanServices: request: \"" << sopasCmd << "\"");
  ROS_INFO_STREAM("SickScanServices: response: \"" << sopasReplyString << "\"");
  return true;
}
bool sick_scan :: SickScanServices :: sendRun ( ) { std :: string sopasCmd = std :: string ( " " ) ; std :: vector < unsigned char > sopasReplyBin ; std :: string sopasReplyString ; if ( ! sendSopasAndCheckAnswer ( sopasCmd , sopasReplyBin , sopasReplyString ) ) { ROS_ERROR_STREAM ( " \" " << sopasCmd << " \" " ) ; return false ; } ROS_INFO_STREAM ( " \" " << sopasCmd << " \" " ) ; ROS_INFO_STREAM ( " \" " << sopasReplyString << " \" " ) ; return true ; }
Sends the SOPAS command "sMN Run", which applies previous send settings
Sends the SOPAS command " sMN Run " which applies previous send settings