robotology / icub-tests

Contains tests for iCub robot Tests are written using the robot-testing framework
http://robotology.github.io/icub-tests/
Other
6 stars 13 forks source link

IMU Test - Fix logic of "no_legs" parameter #73

Closed martinaxgloria closed 6 months ago

martinaxgloria commented 6 months ago

With https://github.com/robotology/icub-tests/pull/72, we added the possibility to parse the remoteControlBoards list within the test_imu.ini file to search for the legs. Unfortunately, I found an error in the logic implementing this functionality since:

  for (auto part : partsList)
  {
      if(part.find("leg") != std::string::npos)
      {
          strParam = "no_legs";
      }
  }

searches if the substring leg is found and, if yes, it passes to the move.sh the parameter no_legs. This is the opposite of expected behavior.

This PR should fix this error

cc @pattacini