Code repetition CSclParser

Issue #42 resolved
Shameek Ganguly created an issue

The following code snippet is repeated twice, cleanup needed...

In CSclParser::readRobotFromFile: Line 251

xmlflags = _robot_handle.FirstChildElement( "flag_actuator_acc_limits" ).Element();
      if ( xmlflags )
      {
        std::stringstream ss(xmlflags->FirstChild()->Value());
        std::string sss;
        ss>>sss;
        if("true" == sss || "1" == sss)
        { arg_robot.flag_apply_actuator_acc_limits_ = true;  }
        else
        { arg_robot.flag_apply_actuator_acc_limits_ = false;  }
      }

Comments (1)

  1. Log in to comment