Piping through the flag to parse sensors

This commit is contained in:
mbennice
2018-09-27 09:49:59 -07:00
parent 173cc2538f
commit 30d4c4136a
7 changed files with 10 additions and 10 deletions

View File

@@ -117,7 +117,7 @@ struct BulletErrorLogger : public ErrorLogger
}
};
bool BulletURDFImporter::loadURDF(const char* fileName, bool forceFixedBase)
bool BulletURDFImporter::loadURDF(const char* fileName, bool forceFixedBase, int flags)
{
if (strlen(fileName) == 0)
return false;
@@ -155,7 +155,7 @@ bool BulletURDFImporter::loadURDF(const char* fileName, bool forceFixedBase)
BulletErrorLogger loggie;
m_data->m_urdfParser.setParseSDF(false);
bool result = m_data->m_urdfParser.loadUrdf(xml_string.c_str(), &loggie, forceFixedBase);
bool result = m_data->m_urdfParser.loadUrdf(xml_string.c_str(), &loggie, forceFixedBase, (flags & CUF_PARSE_SENSORS));
return result;
}