collada_urdf: cleanup

This commit is contained in:
tfield 2010-04-23 22:30:44 +00:00
parent 275955babf
commit b031e157a8
2 changed files with 3 additions and 6 deletions

View File

@ -876,8 +876,6 @@ domRotateRef ColladaWriter::addRotate(daeElementRef parent, urdf::Rotation const
}
string ColladaWriter::getTimeStampString() const {
//"2009-04-06T17:01:00.891550"
// facet becomes owned by locale, so no need to explicitly delete
boost::posix_time::time_facet* facet = new boost::posix_time::time_facet("%Y-%m-%dT%H:%M:%s");

View File

@ -44,15 +44,14 @@ int main(int argc, char** argv)
try
{
collada_urdf::ColladaWriter writer(argv[1]);
if (!writer.writeDocument(argv[2])) {
std::cerr << "Error writing document" << std::endl;
return -1;
}
writer.writeDocument(argv[2]);
}
catch (collada_urdf::ColladaWriterException ex) {
std::cerr << "Error converting document: " << ex.what() << std::endl;
return -1;
}
std::cout << "Document successfully written to " << argv[2] << std::endl;
return 0;
}