parser_urdf.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2012 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 <sdf/sdf_config.h>
22 
23 #include <string>
24 
25 #include "sdf/Console.hh"
26 #include "sdf/system_util.hh"
27 
28 namespace sdf
29 {
30  // Inline bracket to help doxygen filtering.
31  inline namespace SDF_VERSION_NAMESPACE {
32  //
33 
36  {
38  public: URDF2SDF();
39 
41  public: ~URDF2SDF();
42 
46  public: TiXmlDocument InitModelDoc(TiXmlDocument* _xmlDoc);
47 
51  public: TiXmlDocument InitModelFile(const std::string &_filename);
52 
58  public: TiXmlDocument InitModelString(const std::string &_urdfStr,
59  bool _enforceLimits = true);
60 
64  public: static bool IsURDF(const std::string &_filename);
65 
68  private: void ParseSDFExtension(TiXmlDocument &_urdfXml);
69 
71  private: void ListSDFExtensions();
72 
74  private: void ListSDFExtensions(const std::string &_reference);
75  };
76  }
77 }
78 #endif
URDF to SDF converter.
Definition: parser_urdf.hh:35
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
namespace for Simulation Description Format parser
Definition: Actor.hh:32