Commit 547e75e3 authored by Rohan Budhiraja's avatar Rohan Budhiraja
Browse files

[sdf][geometry] fix issue with parsing non-existing geometry elements

parent 25ab6af0
Pipeline #15389 passed with stage
in 151 minutes and 3 seconds
......@@ -67,7 +67,9 @@ namespace pinocchio
while (geomElement)
{
//Inserting data in std::map
if (geomElement->Get<std::string>("name") != "__default__") {
geometry_array.push_back(geomElement);
}
geomElement = link->GetNextElement("collision");
}
return geometry_array;
......@@ -82,7 +84,9 @@ namespace pinocchio
while (geomElement)
{
//Inserting data in std::map
if (geomElement->Get<std::string>("name") != "__default__") {
geometry_array.push_back(geomElement);
}
geomElement = link->GetNextElement("visual");
}
return geometry_array;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment