Buran Motion Planning Framework
link.h
1 #pragma once
2 
3 #include <string>
4 #include <Eigen/Core>
5 #include <utility>
6 #include <vector>
7 #include <memory>
8 
9 namespace bmpf {
13  class Link {
14  public:
18  std::string modelPath;
22  std::string name;
26  std::shared_ptr<Eigen::Matrix4d> linkTransformMatrix;
30  Eigen::Matrix3d inertia;
34  std::vector<double> massCenter;
35 
44  Link(std::string model_path, std::shared_ptr<Eigen::Matrix4d> linkTransformMatrix,
45  std::string name, Eigen::Matrix3d inertia, std::vector<double> massCenter
46  ) : modelPath(std::move(model_path)), linkTransformMatrix(std::move(linkTransformMatrix)),
47  name(std::move(name)), inertia(std::move(inertia)), massCenter(std::move(massCenter)) {}
48 
53  std::string toString() const;
54  };
55 }