9 #include <boost/filesystem.hpp>
11 #include <qi/applicationsession.hpp>
13 #include <qi/session.hpp>
19 qiLogInfo() <<
">>>> File Transfer Progress = " << (progress * 100.0) <<
"%";
22 int main(
int argc,
char** argv)
24 qi::ApplicationSession
app(argc, argv);
28 qiLogError() <<
"This test takes 2 arguments!";
35 qiLogError() <<
"Failed to connect to the remote naoqi!";
39 const std::string image_file_path = argv[1];
45 qi::AnyObject alsystem =
session->service(
"ALSystem").value();
48 qiLogError() <<
"Failed access ALSystem service!";
52 qiLogInfo() <<
"setRobotIcon..." << std::endl;
53 alsystem.async<
void>(
"setRobotIcon", imageFile).wait();
54 qiLogInfo() <<
"setRobotIcon - DONE" << std::endl;