Skip to content

Commit

Permalink
Fix bug in URDF loader
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiaskunz committed Dec 13, 2013
1 parent a2526ce commit e399f38
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dart/utils/urdf/urdf_world_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,13 @@ namespace urdf{
xml_model_string += (line + "\n");
}
xml_file.close();
ModelInterface* model = parseURDF( xml_model_string ).get();
entity.model = parseURDF( xml_model_string );

if( !model ) {
if( !entity.model ) {
std::cout<< "[parseWorldURDF] Model in "<<fileFullName<<" not found. Exiting and not loading!" <<std::endl;
return NULL;
}
else {
entity.model.reset(model);

// Parse location
TiXmlElement *o = entity_xml->FirstChildElement("origin");
if( o ) {
Expand Down

0 comments on commit e399f38

Please sign in to comment.