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 
27 #include "sdf/Types.hh"
28 
29 namespace sdf
30 {
34  {
36  public: SDFExtension();
37 
40  public: SDFExtension(const SDFExtension &_ge);
41 
43  public: virtual ~SDFExtension() = default;
44 
45  // for reducing fixed joints and removing links
46  public: std::string oldLinkName;
47  public: ignition::math::Pose3d reductionTransform;
48 
49  // visual material
50  public: std::string material;
51 
53  public: std::vector<std::shared_ptr<TiXmlElement> > visual_blobs;
54 
80  public: std::vector<std::shared_ptr<TiXmlElement> > collision_blobs;
81 
82  // body, default off
83  public: bool setStaticFlag;
84  public: bool gravity;
85  public: bool isDampingFactor;
86  public: double dampingFactor;
87  public: bool isMaxContacts;
88  public: int maxContacts;
89  public: bool isMaxVel;
90  public: double maxVel;
91  public: bool isMinDepth;
92  public: double minDepth;
93  public: bool isSelfCollide;
94  public: bool selfCollide;
95 
96  // geom, contact dynamics
97  public: bool isMu1, isMu2, isKp, isKd;
98  public: double mu1, mu2, kp, kd;
99  public: std::string fdir1;
100  public: bool isLaserRetro;
101  public: double laserRetro;
102 
103  // joint, joint limit dynamics
108  public: bool isProvideFeedback;
109  public: bool provideFeedback;
111  public: bool implicitSpringDamper;
112  public: bool isStopKp, isStopKd;
113  public: double stopKp, stopKd;
114 
115  // blobs into body or robot
116  public: std::vector<std::shared_ptr<TiXmlElement> > blobs;
117 
119  };
120 }
121 #endif
bool isFudgeFactor
Definition: SDFExtension.hh:104
bool isDampingFactor
Definition: SDFExtension.hh:85
double stopKp
Definition: SDFExtension.hh:113
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:80
std::vector< std::shared_ptr< TiXmlElement > > blobs
Definition: SDFExtension.hh:116
virtual ~SDFExtension()=default
Destructor.
std::string oldLinkName
Definition: SDFExtension.hh:46
bool isMaxContacts
Definition: SDFExtension.hh:87
bool isInitialJointPosition
Definition: SDFExtension.hh:104
bool isStopKp
Definition: SDFExtension.hh:112
bool isMinDepth
Definition: SDFExtension.hh:91
double mu2
Definition: SDFExtension.hh:98
bool isStopErp
Definition: SDFExtension.hh:104
double stopErp
Definition: SDFExtension.hh:105
Definition: SDFExtension.hh:33
double laserRetro
Definition: SDFExtension.hh:101
bool isMaxVel
Definition: SDFExtension.hh:89
bool isProvideFeedback
Definition: SDFExtension.hh:108
int maxContacts
Definition: SDFExtension.hh:88
double minDepth
Definition: SDFExtension.hh:92
bool provideFeedback
Definition: SDFExtension.hh:109
bool isKd
Definition: SDFExtension.hh:97
std::string material
Definition: SDFExtension.hh:50
double initialJointPosition
Definition: SDFExtension.hh:105
bool isMu1
Definition: SDFExtension.hh:97
ignition::math::Pose3d reductionTransform
Definition: SDFExtension.hh:47
double fudgeFactor
Definition: SDFExtension.hh:105
bool isImplicitSpringDamper
Definition: SDFExtension.hh:110
double kp
Definition: SDFExtension.hh:98
bool selfCollide
Definition: SDFExtension.hh:94
SDFExtension()
Constructor.
std::vector< std::shared_ptr< TiXmlElement > > visual_blobs
blobs of xml to be copied into the visual sdf element
Definition: SDFExtension.hh:53
bool setStaticFlag
Definition: SDFExtension.hh:83
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
bool isLaserRetro
Definition: SDFExtension.hh:100
bool isSpringStiffness
Definition: SDFExtension.hh:106
bool isKp
Definition: SDFExtension.hh:97
double stopKd
Definition: SDFExtension.hh:113
double maxVel
Definition: SDFExtension.hh:90
bool isStopCfm
Definition: SDFExtension.hh:104
double kd
Definition: SDFExtension.hh:98
bool gravity
Definition: SDFExtension.hh:84
double dampingFactor
Definition: SDFExtension.hh:86
bool isSpringReference
Definition: SDFExtension.hh:106
bool isMu2
Definition: SDFExtension.hh:97
bool isSelfCollide
Definition: SDFExtension.hh:93
double stopCfm
Definition: SDFExtension.hh:105
double mu1
Definition: SDFExtension.hh:98
bool implicitSpringDamper
Definition: SDFExtension.hh:111
std::string fdir1
Definition: SDFExtension.hh:99
bool isStopKd
Definition: SDFExtension.hh:112
URDF to SDF converter.
Definition: parser_urdf.hh:29
double springStiffness
Definition: SDFExtension.hh:107
double springReference
Definition: SDFExtension.hh:107