GripperSurface.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 GripperSurfaceImpl;
13 
15 {
16 public:
17  GripperSurface(const std::string & name,
18  const std::string & bodyName,
19  const sva::PTransformd & X_b_s,
20  const std::string & materialName,
21  const std::vector<sva::PTransformd> & pointsFromOrigin,
22  const sva::PTransformd & X_b_motor,
23  const double & motorMaxTorque);
24 
25  ~GripperSurface() override;
26 
27  void computePoints() override;
28 
29  void originTransform(const sva::PTransformd & X_s_sp);
30 
31  std::shared_ptr<Surface> copy() const override;
32 
33  std::string type() const override;
34 
35  const std::vector<sva::PTransformd> & pointsFromOrigin() const;
36 
37  const sva::PTransformd & X_b_motor() const;
38 
39  const double & motorMaxTorque() const;
40 
41 private:
42  std::unique_ptr<GripperSurfaceImpl> impl;
43 };
44 
45 } // namespace mc_rbdyn
Surface.h
mc_rbdyn::computePoints
MC_RBDYN_DLLAPI std::vector< sva::PTransformd > computePoints(const mc_rbdyn::Surface &robotSurface, const mc_rbdyn::Surface &envSurface, const sva::PTransformd &X_es_rs)
mc_rbdyn::Surface
Definition: Surface.h:24
MC_RBDYN_DLLAPI
#define MC_RBDYN_DLLAPI
Definition: api.h:50
mc_rbdyn::GripperSurface
Definition: GripperSurface.h:14
mc_rbdyn
Definition: generic_gripper.h:14