From 3c9ee805046ef26fd971eb5fd62b762080da43c0 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 1 Aug 2014 14:25:56 -0700 Subject: [PATCH] fix compile error --- Demos3/ImportURDFDemo/ImportURDFSetup.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Demos3/ImportURDFDemo/ImportURDFSetup.cpp b/Demos3/ImportURDFDemo/ImportURDFSetup.cpp index 393bec06e..3db2ed3f0 100644 --- a/Demos3/ImportURDFDemo/ImportURDFSetup.cpp +++ b/Demos3/ImportURDFDemo/ImportURDFSetup.cpp @@ -274,7 +274,7 @@ void ImportUrdfDemo::initPhysics(GraphicsPhysicsBridge& gfxBridge) my_shared_ptr robot = parseURDF(xml_string); if (!robot){ std::cerr << "ERROR: Model Parsing the xml failed" << std::endl; - return -1; + return ; } std::cout << "robot name is: " << robot->getName() << std::endl; @@ -282,7 +282,7 @@ void ImportUrdfDemo::initPhysics(GraphicsPhysicsBridge& gfxBridge) std::cout << "---------- Successfully Parsed XML ---------------" << std::endl; // get root link my_shared_ptr root_link=robot->getRoot(); - if (!root_link) return -1; + if (!root_link) return ; std::cout << "root Link: " << root_link->name << " has " << root_link->child_links.size() << " child(ren)" << std::endl; @@ -294,4 +294,4 @@ void ImportUrdfDemo::initPhysics(GraphicsPhysicsBridge& gfxBridge) } -} \ No newline at end of file +}