Tesseract 0.28.4
Loading...
Searching...
No Matches
link.cpp File Reference

Parse link from xml string. More...

#include <tesseract/common/macros.h>
#include <stdexcept>
#include <boost/filesystem.hpp>
#include <tesseract/common/utils.h>
#include <tinyxml2.h>
#include <tesseract/scene_graph/link.h>
#include <tesseract/common/resource_locator.h>
#include <tesseract/urdf/collision.h>
#include <tesseract/urdf/inertial.h>
#include <tesseract/urdf/link.h>
#include <tesseract/urdf/utils.h>
#include <tesseract/urdf/visual.h>

Functions

tesseract::scene_graph::Link::Ptr tesseract::urdf::parseLink (const tinyxml2::XMLElement *xml_element, const tesseract::common::ResourceLocator &locator, bool make_convex_meshes, std::unordered_map< std::string, tesseract::scene_graph::Material::Ptr > &available_materials)
 
tinyxml2::XMLElement * tesseract::urdf::writeLink (const std::shared_ptr< const tesseract::scene_graph::Link > &link, tinyxml2::XMLDocument &doc, const std::string &package_path)
 writeLink Write a link to URDF XML
 

Detailed Description

Parse link 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

◆ writeLink()

tinyxml2::XMLElement * tesseract::urdf::writeLink ( const std::shared_ptr< const tesseract::scene_graph::Link > &  link,
tinyxml2::XMLDocument &  doc,
const std::string &  package_path 
)

writeLink Write a link to URDF XML

Parameters
linkLink object to be written
docXML Document to which element will belong
package_path/<path>/<to>/<your-package>. If set, geometry will be saved relative to the package. If not set, geometry will be saved with absolute paths.
Returns
XML element representing link in URDF format