smurf
Inertial.hpp
Go to the documentation of this file.
1 #ifndef INERTIAL_H
2 #define INERTIAL_H
3 
4 #include <string>
5 #include <urdf_model/model.h>
6 
7 
8 namespace smurf{
9 
10  class Inertial
11  {
12  public:
13  Inertial(){};
14  Inertial(const urdf::Inertial& inertial);
15  void setGroupId(const int id)
16  {
17  this->groupId = id;
18  }
19  int getGroupId() const
20  {
21  return this->groupId;
22  }
23  urdf::Inertial getUrdfInertial() const
24  {
25  return this->inertial;
26  };
27  void setName(std::string name)
28  {
29  this->name = name;
30  };
31  std::string getName() const
32  {
33  return this->name;
34  };
35  private:
36  urdf::Inertial inertial;
37  int groupId;
38  std::string name;
39  };
40 
41 };
42 
43 
44 #endif // INERTIAL_H
void setGroupId(const int id)
Definition: Inertial.hpp:15
Definition: Inertial.hpp:10
Inertial()
Definition: Inertial.hpp:13
std::string getName() const
Definition: Inertial.hpp:31
void setName(std::string name)
Definition: Inertial.hpp:27
int getGroupId() const
Definition: Inertial.hpp:19
urdf::Inertial getUrdfInertial() const
Definition: Inertial.hpp:23
Definition: Collidable.hpp:11