All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
parser_urdf.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2012-2015 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _SDFORMAT_URDF2SDF_HH_
18 #define _SDFORMAT_URDF2SDF_HH_
19 
20 #include <tinyxml.h>
21 #include <string>
22 
23 #include "sdf/Console.hh"
24 #include "sdf/system_util.hh"
25 
26 namespace sdf
27 {
30  {
32  public: URDF2SDF();
33 
35  public: ~URDF2SDF();
36 
40  public: TiXmlDocument InitModelDoc(TiXmlDocument* _xmlDoc);
41 
45  public: TiXmlDocument InitModelFile(const std::string &_filename);
46 
52  public: TiXmlDocument InitModelString(const std::string &_urdfStr,
53  bool _enforceLimits = true);
54 
57  private: void ParseSDFExtension(TiXmlDocument &_urdfXml);
58 
60  private: void ListSDFExtensions();
61 
63  private: void ListSDFExtensions(const std::string &_reference);
64  };
65 }
66 #endif
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
URDF to SDF converter.
Definition: parser_urdf.hh:29