- changed status to resolved
Code repetition CSclParser
Issue #42
resolved
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)
-
repo owner - Log in to comment
Fixed as of a155b0118909e4a7c18909674e4dfcd8a1a00668