9 int main(
int argc,
char* argv[])
12 cerr <<
"Usage:" << argv[0] <<
" <URL of the original file> [--use-inline-shape]" 17 bool use_inline =
false;
19 for (
int i = 2;
i < argc;
i++) {
20 std::string
arg (argv[
i]);
21 if (arg ==
"--use-inline-shape") {
29 orb = CORBA::ORB_init(argc, argv);
32 binfo = ml->getBodyInfo(argv[1]);
35 writer.useInlineShape(use_inline);
36 writer.write(binfo, cout);
37 }
catch(ModelLoader::ModelLoaderException ex){
38 std::cerr << ex.description << std::endl;
40 }
catch (CORBA::SystemException& ex){
41 cerr << ex._rep_id() << endl;
HRPMODEL_API OpenHRP::ModelLoader_var getModelLoader(CosNaming::NamingContext_var cxt)
int main(int argc, char *argv[])