CylindricalSurface.h
Go to the documentation of this file.
1 /*
2  * Copyright 2015-2019 CNRS-UM LIRMM, CNRS-AIST JRL
3  */
4 
5 #pragma once
6 
7 #include <mc_rbdyn/Surface.h>
8 
9 namespace mc_rbdyn
10 {
11 
12 struct Robot;
13 
14 struct CylindricalSurfaceImpl;
15 
17 {
18  CylindricalSurface(const std::string & name,
19  const std::string & bodyName,
20  const sva::PTransformd & X_b_s,
21  const std::string & materialName,
22  const double & radius,
23  const double & width);
24 
25  ~CylindricalSurface() override;
26 
27  void computePoints() override;
28 
29  const double & radius() const;
30 
31  const double & width() const;
32 
33  void width(const double & width);
34 
35  std::shared_ptr<Surface> copy() const override;
36 
37  std::string type() const override;
38 
39 private:
40  std::unique_ptr<CylindricalSurfaceImpl> impl;
41 };
42 
43 } // namespace mc_rbdyn
#define MC_RBDYN_DLLAPI
Definition: api.h:50
Definition: generic_gripper.h:15
auto Robot(const std::string &name, GetT get_fn)
Definition: Robot.h:56
Definition: CylindricalSurface.h:17
void computePoints() override
std::string type() const override
const double & radius() const
CylindricalSurface(const std::string &name, const std::string &bodyName, const sva::PTransformd &X_b_s, const std::string &materialName, const double &radius, const double &width)
const double & width() const
void width(const double &width)
std::shared_ptr< Surface > copy() const override
Definition: Surface.h:25