示例#1
0
Task* SCPCmd::perRobotExecution(Context &context, Robot &robot)
{
  if(fromRobot)
    return new SCPTask(context, &robot, scpCommandFromRobot(fromFile, robot.getBestIP(), toFile));
  else
    return new SCPTask(context, &robot, scpCommandToRobot(fromFile, robot.getBestIP(), toFile));
}
Task* UpdateWirelessCmd::perRobotExecution(Context& context, Robot& robot)
{
  std::string fromDir = std::string(File::getBHDir()) + "/Install/Network/Profiles/";
  std::string toDir = "/home/nao/";
  return new UpdateWirelessTask(context, &robot, scpCommandToRobot(fromDir, robot.getBestIP(), toDir));
}