15
/
22
Copyright (c) 2016-2017 Shanghai Slamtec Co., Ltd.
28.
//load map
29.
apollo.setCompositeMap(*map, apollo_pose);
30.
//set compositemap
31.
rpos::core::Pose home_pose = rpos::core::Pose(rpos::core::Location(0, 0, 0));
32.
//the home pose in map(home_pose should be the home's real pose in new map)
33.
//using apollo.gethomepose() to get the old home pose
34.
apollo.setHomePose(home_pose);
35.
//set home pose
36.
}
37.
catch
(rpos::robot_platforms::ConnectionFailException &e)
38.
{
39.
cout <<
"connect failed on "
<< e.what() << endl;
40.
}
41.
catch
(rpos::system::detail::ExceptionBase &e)
42.
{
43.
cout <<
"failed on "
<< e.what() << endl;
44.
}
45.
46.
return
0;
47.
}
Please refer to our SDK reference for more movement deployment.