All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
SDFExtension.hh
Go to the documentation of this file.
1 /*
2  * Copyright 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 
18 #ifndef _SDFORMAT_SDFEXTENSION_HH_
19 #define _SDFORMAT_SDFEXTENSION_HH_
20 
21 #include <tinyxml.h>
22 #include <string>
23 #include <vector>
24 #include <ignition/math/Pose3.hh>
25 
27 #ifndef _WIN32
28 #pragma GCC diagnostic push
29 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
30 #endif
31 #include "sdf/Types.hh"
32 #ifndef _WIN32
33 #pragma GCC diagnostic pop
34 #endif
35 
36 namespace sdf
37 {
41  {
43  public: SDFExtension();
44 
47  public: SDFExtension(const SDFExtension &_ge);
48 
50  public: virtual ~SDFExtension() = default;
51 
52  // for reducing fixed joints and removing links
53  public: std::string oldLinkName;
54  public: ignition::math::Pose3d reductionTransform;
55 
56  // visual
57  public: std::string material;
58  public: std::vector<boost::shared_ptr<TiXmlElement> > visual_blobs;
59 
60  // body, default off
61  public: bool setStaticFlag;
62  public: bool gravity;
63  public: bool isDampingFactor;
64  public: double dampingFactor;
65  public: bool isMaxContacts;
66  public: int maxContacts;
67  public: bool isMaxVel;
68  public: double maxVel;
69  public: bool isMinDepth;
70  public: double minDepth;
71  public: bool selfCollide;
72 
73  // geom, contact dynamics
74  public: bool isMu1, isMu2, isKp, isKd;
75  public: double mu1, mu2, kp, kd;
76  public: std::string fdir1;
77  public: bool isLaserRetro;
78  public: double laserRetro;
79 
80  // joint, joint limit dynamics
83  public: bool isProvideFeedback;
84  public: bool provideFeedback;
85  public: bool isImplicitSpringDamper;
86  public: bool implicitSpringDamper;
87  public: bool isStopKp, isStopKd;
88  public: double stopKp, stopKd;
89 
90  // blobs into body or robot
91  public: std::vector<boost::shared_ptr<TiXmlElement> > blobs;
92 
93  friend class SDFORMAT_VISIBLE URDF2SDF;
94  };
95 }
96 #endif
bool isFudgeFactor
Definition: SDFExtension.hh:81
bool isDampingFactor
Definition: SDFExtension.hh:63
double stopKp
Definition: SDFExtension.hh:88
virtual ~SDFExtension()=default
Destructor.
std::string oldLinkName
Definition: SDFExtension.hh:53
bool isMaxContacts
Definition: SDFExtension.hh:65
bool isInitialJointPosition
Definition: SDFExtension.hh:81
bool isStopKp
Definition: SDFExtension.hh:87
bool isMinDepth
Definition: SDFExtension.hh:69
double mu2
Definition: SDFExtension.hh:75
bool isStopErp
Definition: SDFExtension.hh:81
double stopErp
Definition: SDFExtension.hh:82
Definition: SDFExtension.hh:40
double laserRetro
Definition: SDFExtension.hh:78
bool isMaxVel
Definition: SDFExtension.hh:67
bool isProvideFeedback
Definition: SDFExtension.hh:83
int maxContacts
Definition: SDFExtension.hh:66
double minDepth
Definition: SDFExtension.hh:70
bool provideFeedback
Definition: SDFExtension.hh:84
bool isKd
Definition: SDFExtension.hh:74
std::string material
Definition: SDFExtension.hh:57
double initialJointPosition
Definition: SDFExtension.hh:82
bool isMu1
Definition: SDFExtension.hh:74
ignition::math::Pose3d reductionTransform
Definition: SDFExtension.hh:54
double fudgeFactor
Definition: SDFExtension.hh:82
bool isImplicitSpringDamper
Definition: SDFExtension.hh:85
double kp
Definition: SDFExtension.hh:75
bool selfCollide
Definition: SDFExtension.hh:71
SDFExtension()
Constructor.
bool setStaticFlag
Definition: SDFExtension.hh:61
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
bool isLaserRetro
Definition: SDFExtension.hh:77
bool isKp
Definition: SDFExtension.hh:74
double stopKd
Definition: SDFExtension.hh:88
double maxVel
Definition: SDFExtension.hh:68
bool isStopCfm
Definition: SDFExtension.hh:81
double kd
Definition: SDFExtension.hh:75
bool gravity
Definition: SDFExtension.hh:62
double dampingFactor
Definition: SDFExtension.hh:64
bool isMu2
Definition: SDFExtension.hh:74
std::vector< TiXmlElement > * visual_blobs
Definition: SDFExtension.hh:58
double stopCfm
Definition: SDFExtension.hh:82
double mu1
Definition: SDFExtension.hh:75
bool implicitSpringDamper
Definition: SDFExtension.hh:86
std::string fdir1
Definition: SDFExtension.hh:76
bool isStopKd
Definition: SDFExtension.hh:87
std::vector< TiXmlElement > * blobs
Definition: SDFExtension.hh:91
URDF to SDF converter.
Definition: parser_urdf.hh:29