Skip to content

Commit

Permalink
temporarily added getName method to each type
Browse files Browse the repository at this point in the history
  • Loading branch information
jliersch committed Aug 27, 2024
1 parent 2d66cae commit 9ee2349
Show file tree
Hide file tree
Showing 21 changed files with 84 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Inertial.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "inertial";
configmaps::ConfigMap configMap;

Expand Down
4 changes: 4 additions & 0 deletions src/Link.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "link";
configmaps::ConfigMap configMap;

Expand Down
4 changes: 4 additions & 0 deletions src/World.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
std::string prefix;
static inline std::string const type = "world";
configmaps::ConfigMap configMap;
Expand Down
4 changes: 4 additions & 0 deletions src/geometry/Box.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "box";
base::Vector3d size;
std::shared_ptr<Material> material;
Expand Down
4 changes: 4 additions & 0 deletions src/geometry/Capsule.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "capsule";
double radius;
double length;
Expand Down
4 changes: 4 additions & 0 deletions src/geometry/Cylinder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "cylinder";
double radius;
double length;
Expand Down
4 changes: 4 additions & 0 deletions src/geometry/Heightfield.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "heightfield";
std::shared_ptr<Material> material;
configmaps::ConfigMap configMap;
Expand Down
4 changes: 4 additions & 0 deletions src/geometry/Material.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "material";
Color ambientColor;
Color diffuseColor;
Expand Down
4 changes: 4 additions & 0 deletions src/geometry/Mesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "mesh";
std::string filename;
base::Vector3d scale;
Expand Down
4 changes: 4 additions & 0 deletions src/geometry/Plane.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "plane";
base::Vector2d size;
std::shared_ptr<Material> material;
Expand Down
4 changes: 4 additions & 0 deletions src/geometry/Sphere.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "sphere";
double radius;
std::shared_ptr<Material> material;
Expand Down
4 changes: 4 additions & 0 deletions src/joints/Continuous.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "continuous";
configmaps::ConfigMap configMap;

Expand Down
4 changes: 4 additions & 0 deletions src/joints/Fixed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "fixed";
configmaps::ConfigMap configMap;

Expand Down
4 changes: 4 additions & 0 deletions src/joints/Prismatic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "prismatic";
configmaps::ConfigMap configMap;

Expand Down
4 changes: 4 additions & 0 deletions src/joints/Revolute.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "revolute";
configmaps::ConfigMap configMap;

Expand Down
4 changes: 4 additions & 0 deletions src/motors/DC.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "DC";
configmaps::ConfigMap configMap;

Expand Down
4 changes: 4 additions & 0 deletions src/motors/DirectEffort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "direct_effort";
configmaps::ConfigMap configMap;

Expand Down
4 changes: 4 additions & 0 deletions src/motors/FeedForwardEffort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "ff_torque";
configmaps::ConfigMap configMap;

Expand Down
4 changes: 4 additions & 0 deletions src/motors/PID.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
static inline std::string const type = "PID";
configmaps::ConfigMap configMap;

Expand Down
4 changes: 4 additions & 0 deletions src/sensors/RaySensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
configmaps::ConfigMap configMap;

double maxDistance;
Expand Down
4 changes: 4 additions & 0 deletions src/sensors/RotatingRaySensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ namespace envire
}

std::string name;
const std::string& getName() const
{
return name;
}
configmaps::ConfigMap configMap;

configmaps::ConfigMap getFullConfigMap() {
Expand Down

0 comments on commit 9ee2349

Please sign in to comment.