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 <memory>
23 #include <string>
24 #include <vector>
25 #include <ignition/math/Pose3.hh>
26 
28 #ifndef _WIN32
29 #pragma GCC diagnostic push
30 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
31 #endif
32 #include "sdf/Types.hh"
33 #ifndef _WIN32
34 #pragma GCC diagnostic pop
35 #endif
36 
37 namespace sdf
38 {
42  {
44  public: SDFExtension();
45 
48  public: SDFExtension(const SDFExtension &_ge);
49 
51  public: virtual ~SDFExtension() = default;
52 
53  // for reducing fixed joints and removing links
54  public: std::string oldLinkName;
55  public: ignition::math::Pose3d reductionTransform;
56 
57  // visual material
58  public: std::string material;
59 
61  public: std::vector<std::shared_ptr<TiXmlElement> > visual_blobs;
62 
88  public: std::vector<std::shared_ptr<TiXmlElement> > collision_blobs;
89 
90  // body, default off
91  public: bool setStaticFlag;
92  public: bool gravity;
93  public: bool isDampingFactor;
94  public: double dampingFactor;
95  public: bool isMaxContacts;
96  public: int maxContacts;
97  public: bool isMaxVel;
98  public: double maxVel;
99  public: bool isMinDepth;
100  public: double minDepth;
101  public: bool selfCollide;
102 
103  // geom, contact dynamics
104  public: bool isMu1, isMu2, isKp, isKd;
105  public: double mu1, mu2, kp, kd;
106  public: std::string fdir1;
107  public: bool isLaserRetro;
108  public: double laserRetro;
109 
110  // joint, joint limit dynamics
115  public: bool isProvideFeedback;
116  public: bool provideFeedback;
118  public: bool implicitSpringDamper;
119  public: bool isStopKp, isStopKd;
120  public: double stopKp, stopKd;
121 
122  // blobs into body or robot
123  public: std::vector<std::shared_ptr<TiXmlElement> > blobs;
124 
126  };
127 }
128 #endif
bool isFudgeFactor
Definition: SDFExtension.hh:111
bool isDampingFactor
Definition: SDFExtension.hh:93
double stopKp
Definition: SDFExtension.hh:120
std::vector< std::shared_ptr< TiXmlElement > > collision_blobs
blobs of xml to be copied into the collision sdf element An example might be: <gazebo reference="link...
Definition: SDFExtension.hh:88
std::vector< std::shared_ptr< TiXmlElement > > blobs
Definition: SDFExtension.hh:123
virtual ~SDFExtension()=default
Destructor.
std::string oldLinkName
Definition: SDFExtension.hh:54
bool isMaxContacts
Definition: SDFExtension.hh:95
bool isInitialJointPosition
Definition: SDFExtension.hh:111
bool isStopKp
Definition: SDFExtension.hh:119
bool isMinDepth
Definition: SDFExtension.hh:99
double mu2
Definition: SDFExtension.hh:105
bool isStopErp
Definition: SDFExtension.hh:111
double stopErp
Definition: SDFExtension.hh:112
Definition: SDFExtension.hh:41
double laserRetro
Definition: SDFExtension.hh:108
bool isMaxVel
Definition: SDFExtension.hh:97
bool isProvideFeedback
Definition: SDFExtension.hh:115
int maxContacts
Definition: SDFExtension.hh:96
double minDepth
Definition: SDFExtension.hh:100
bool provideFeedback
Definition: SDFExtension.hh:116
bool isKd
Definition: SDFExtension.hh:104
std::string material
Definition: SDFExtension.hh:58
double initialJointPosition
Definition: SDFExtension.hh:112
bool isMu1
Definition: SDFExtension.hh:104
ignition::math::Pose3d reductionTransform
Definition: SDFExtension.hh:55
double fudgeFactor
Definition: SDFExtension.hh:112
bool isImplicitSpringDamper
Definition: SDFExtension.hh:117
double kp
Definition: SDFExtension.hh:105
bool selfCollide
Definition: SDFExtension.hh:101
SDFExtension()
Constructor.
std::vector< std::shared_ptr< TiXmlElement > > visual_blobs
blobs of xml to be copied into the visual sdf element
Definition: SDFExtension.hh:61
bool setStaticFlag
Definition: SDFExtension.hh:91
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
bool isLaserRetro
Definition: SDFExtension.hh:107
bool isSpringStiffness
Definition: SDFExtension.hh:113
bool isKp
Definition: SDFExtension.hh:104
double stopKd
Definition: SDFExtension.hh:120
double maxVel
Definition: SDFExtension.hh:98
bool isStopCfm
Definition: SDFExtension.hh:111
double kd
Definition: SDFExtension.hh:105
bool gravity
Definition: SDFExtension.hh:92
double dampingFactor
Definition: SDFExtension.hh:94
bool isSpringReference
Definition: SDFExtension.hh:113
bool isMu2
Definition: SDFExtension.hh:104
double stopCfm
Definition: SDFExtension.hh:112
double mu1
Definition: SDFExtension.hh:105
bool implicitSpringDamper
Definition: SDFExtension.hh:118
std::string fdir1
Definition: SDFExtension.hh:106
bool isStopKd
Definition: SDFExtension.hh:119
URDF to SDF converter.
Definition: parser_urdf.hh:29
double springStiffness
Definition: SDFExtension.hh:114
double springReference
Definition: SDFExtension.hh:114