Tesseract 0.28.4
Loading...
Searching...
No Matches
material.h File Reference

Parse material from xml string. More...

#include <tesseract/common/macros.h>
#include <memory>
#include <unordered_map>
#include <string_view>
#include <tesseract/scene_graph/fwd.h>

Functions

std::shared_ptr< tesseract::scene_graph::Materialtesseract::urdf::parseMaterial (const tinyxml2::XMLElement *xml_element, std::unordered_map< std::string, std::shared_ptr< tesseract::scene_graph::Material > > &available_materials, bool allow_anonymous)
 Parse xml element material.
 
tinyxml2::XMLElement * tesseract::urdf::writeMaterial (const std::shared_ptr< const tesseract::scene_graph::Material > &material, tinyxml2::XMLDocument &doc)
 

Detailed Description

Parse material from xml string.

Author
Levi Armstrong
Date
September 1, 2019
License
Software License Agreement (Apache License)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ parseMaterial()

std::shared_ptr< tesseract::scene_graph::Material > tesseract::urdf::parseMaterial ( const tinyxml2::XMLElement *  xml_element,
std::unordered_map< std::string, std::shared_ptr< tesseract::scene_graph::Material > > &  available_materials,
bool  allow_anonymous 
)

Parse xml element material.

Parameters
xml_elementThe xml element
available_materialsThe current available materials
allow_anonymousIndicate if anonymouse materials are allowed
versionThe version number
Returns
A Tesseract Material