mc_rtc  2.17.1
RobotModule.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/BodySensor.h>
8 #include <mc_rbdyn/Collision.h>
10 #include <mc_rbdyn/Flexibility.h>
11 #include <mc_rbdyn/ForceSensor.h>
12 #include <mc_rbdyn/JointSensor.h>
13 #include <mc_rbdyn/Mimic.h>
15 #include <mc_rbdyn/Springs.h>
16 #include <mc_rbdyn/api.h>
18 
19 #include <mc_rtc/constants.h>
20 #include <mc_rtc/deprecated.h>
21 
22 #include <RBDyn/parsers/common.h>
23 
24 #include <sch/S_Object/S_Object.h>
25 
26 /* This is an interface designed to provide additionnal information about a robot */
27 
28 namespace mc_rbdyn
29 {
30 
31 using S_ObjectPtr = std::shared_ptr<sch::S_Object>;
32 
37 struct DevicePtrVector : public std::vector<DevicePtr>
38 {
39  inline DevicePtrVector() = default;
40 
43 
44  inline DevicePtrVector(DevicePtrVector && v) = default;
45  inline DevicePtrVector & operator=(DevicePtrVector && v) = default;
46 };
47 
52 struct VisualMap : public std::map<std::string, std::vector<rbd::parsers::Visual>>
53 {
54  inline VisualMap() = default;
55 
56  inline VisualMap(const VisualMap & v) = default;
57  inline VisualMap & operator=(const VisualMap & v) = default;
58 
59  inline VisualMap(VisualMap && v) = default;
60  inline VisualMap & operator=(VisualMap && v) = default;
61 
62  using std::map<std::string, std::vector<rbd::parsers::Visual>>::operator=;
63 };
64 
66 {
67  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
68 
78  using bounds_t = std::vector<std::map<std::string, std::vector<double>>>;
79 
87  using accelerationBounds_t = std::vector<std::map<std::string, std::vector<double>>>;
88 
96  using jerkBounds_t = std::vector<std::map<std::string, std::vector<double>>>;
97 
105  using torqueDerivativeBounds_t = std::vector<std::map<std::string, std::vector<double>>>;
106 
109  {
112  {
114  static constexpr double DEFAULT_PERCENT_VMAX = 0.25;
116  static constexpr double DEFAULT_ACTUAL_COMMAND_DIFF_TRIGGER = mc_rtc::constants::toRad(8.);
118  static constexpr double DEFAULT_RELEASE_OFFSET = mc_rtc::constants::toRad(2);
120  static constexpr unsigned int DEFAULT_OVER_COMMAND_LIMIT_ITER_N = 5;
121 
122  // FIXME These constructors are only needed to facilitate initialization and not required in C++14
123  inline Safety() : Safety(DEFAULT_PERCENT_VMAX) {}
124 
125  inline Safety(double percentVMax,
126  double actualCommandDiffTrigger = DEFAULT_ACTUAL_COMMAND_DIFF_TRIGGER,
127  double releaseSafetyOffset = DEFAULT_RELEASE_OFFSET,
128  unsigned int overCommandLimitIterN = DEFAULT_OVER_COMMAND_LIMIT_ITER_N)
129  : percentVMax(percentVMax), actualCommandDiffTrigger(actualCommandDiffTrigger),
130  releaseSafetyOffset(releaseSafetyOffset), overCommandLimitIterN(overCommandLimitIterN)
131  {
132  }
133 
135  void load(const mc_rtc::Configuration & config);
138 
140  double percentVMax;
146  unsigned int overCommandLimitIterN;
147  };
148 
150  Gripper(const std::string & name, const std::vector<std::string> & joints, bool reverse_limits);
151 
153  Gripper(const std::string & name,
154  const std::vector<std::string> & joints,
155  bool reverse_limits,
156  const Safety & safety);
157 
159  Gripper(const std::string & name,
160  const std::vector<std::string> & joints,
161  bool reverse_limits,
162  const Safety & safety,
163  const std::vector<Mimic> & mimics);
164 
166  std::string name;
168  std::vector<std::string> joints;
171 
172  // FIXME In C++17 std::optional is a better semantic
174  inline const Safety * safety() const { return hasSafety_ ? &safety_ : nullptr; }
175 
177  inline const std::vector<Mimic> * mimics() const { return hasMimics_ ? &mimics_ : nullptr; }
178 
179  private:
181  bool hasSafety_ = false;
183  Safety safety_;
185  bool hasMimics_ = false;
187  std::vector<Mimic> mimics_;
189  Gripper(const std::string & name,
190  const std::vector<std::string> & joints,
191  bool reverse_limits,
192  const Safety * safety,
193  const std::vector<Mimic> * mimics);
194  };
195 
205  {
207  FrameDescription(const std::string & n, const std::string & p, const sva::PTransformd & pt, bool baked = false)
208  : name(n), parent(p), X_p_f(pt), baked(baked)
209  {
210  }
211 
213  std::string name;
215  std::string parent;
219  bool baked = false;
220  };
221 
237  RobotModule(const std::string & path, const std::string & name)
238  : RobotModule(path, name, path + "/urdf/" + name + ".urdf")
239  {
240  }
241 
254  RobotModule(const std::string & path, const std::string & name, const std::string & urdf_path);
255 
257  RobotModule(const std::string & name, const rbd::parsers::ParserResult & res);
258 
261  {
262 
268 #define CONNECTION_PROPERTY(NAME, TYPE, DEFAULT) \
269  TYPE NAME##_ = DEFAULT; \
270  inline ConnectionParameters & NAME(const TYPE & b) noexcept \
271  { \
272  NAME##_ = b; \
273  return *this; \
274  } \
275  inline auto & NAME() noexcept \
276  { return NAME##_; }
277 
286  CONNECTION_PROPERTY(path, std::string, "")
288  CONNECTION_PROPERTY(name, std::string, "")
290  CONNECTION_PROPERTY(urdf_path, std::string, "")
292  CONNECTION_PROPERTY(rsdf_dir, std::string, "")
294  CONNECTION_PROPERTY(calib_dir, std::string, "")
296  CONNECTION_PROPERTY(useGripperSafetyFromThis, bool, true)
298  CONNECTION_PROPERTY(useLIPMStabilizerConfigFromThis, bool, true)
299 
301  /* End General parameters section */
302 
311  CONNECTION_PROPERTY(jointType, rbd::Joint::Type, rbd::Joint::Type::Fixed)
312 
314  CONNECTION_PROPERTY(jointAxis, Eigen::Vector3d, Eigen::Vector3d::UnitZ())
316  CONNECTION_PROPERTY(jointForward, bool, true)
318  CONNECTION_PROPERTY(jointName, std::string, "")
320  CONNECTION_PROPERTY(jointStance, std::vector<double>, {})
323  using JointLimits = std::array<std::vector<double>, 6>;
324  CONNECTION_PROPERTY(jointLimits, JointLimits, {})
327  using JointAccelerationLimits = std::array<std::vector<double>, 2>;
328  CONNECTION_PROPERTY(jointAccelerationLimits, JointAccelerationLimits, {})
331  using JointJerkLimits = std::array<std::vector<double>, 2>;
332  CONNECTION_PROPERTY(jointJerkLimits, JointJerkLimits, {})
335  using JointTorqueDerivativeLimits = std::array<std::vector<double>, 2>;
336  CONNECTION_PROPERTY(jointTorqueDerivativeLimits, JointTorqueDerivativeLimits, {})
340  CONNECTION_PROPERTY(X_other_connection, sva::PTransformd, sva::PTransformd::Identity())
341 
343  /* End Connection joint section */
344 
354  using mapping_t = std::unordered_map<std::string, std::string>;
355 
357  CONNECTION_PROPERTY(bodyMapping, mapping_t, {})
358 
360  CONNECTION_PROPERTY(jointMapping, mapping_t, {})
361 
363  CONNECTION_PROPERTY(convexMapping, mapping_t, {})
364 
366  CONNECTION_PROPERTY(gripperMapping, mapping_t, {})
367 
369  CONNECTION_PROPERTY(surfaceMapping, mapping_t, {})
370 
371  /* Remap frame names */
372  CONNECTION_PROPERTY(frameMapping, mapping_t, {})
373 
375  CONNECTION_PROPERTY(forceSensorMapping, mapping_t, {})
376 
378  CONNECTION_PROPERTY(bodySensorMapping, mapping_t, {})
379 
381  CONNECTION_PROPERTY(deviceMapping, mapping_t, {})
382 
383 #undef CONNECTION_PROPERTY
385  /* End Name mapping section */
386  };
387 
412  const std::string & this_body,
413  const std::string & other_body,
414  const std::string & prefix,
415  const ConnectionParameters & params) const;
416 
441  const std::string & this_body,
442  const std::string & other_body,
443  const std::string & prefix,
444  const ConnectionParameters & params) const;
445 
457  void init(const rbd::parsers::ParserResult & res);
458 
484  void generate_convexes(bool regenerate = false, unsigned int sampling_point = 4000);
485 
496 
508  const std::vector<std::map<std::string, std::vector<double>>> & bounds() const { return _bounds; }
509 
519  const std::vector<std::map<std::string, std::vector<double>>> & accelerationBounds() const
520  { return _accelerationBounds; }
521 
531  const std::vector<std::map<std::string, std::vector<double>>> & jerkBounds() const { return _jerkBounds; }
532 
542  const std::vector<std::map<std::string, std::vector<double>>> & torqueDerivativeBounds() const
543  { return _torqueDerivativeBounds; }
544 
555  const std::map<std::string, std::vector<double>> & stance() const { return _stance; }
556 
570  const std::map<std::string, std::pair<std::string, std::string>> & convexHull() const { return _convexHull; }
571 
585  const std::map<std::string, std::pair<std::string, S_ObjectPtr>> & collisionObjects() const
586  { return _collisionObjects; }
587 
599  const std::map<std::string, std::pair<std::string, std::string>> & stpbvHull() const { return _stpbvHull; }
600 
607  const std::map<std::string, sva::PTransformd> & collisionTransforms() const { return _collisionTransforms; }
608 
613  const std::vector<Flexibility> & flexibility() const { return _flexibility; }
614 
619  const std::vector<ForceSensor> & forceSensors() const { return _forceSensors; }
620 
625  const BodySensorVector & bodySensors() const { return _bodySensors; }
626 
631  const std::vector<JointSensor> & jointSensors() const { return _jointSensors; }
632 
637  const Springs & springs() const { return _springs; }
638 
646  const std::vector<mc_rbdyn::Collision> & minimalSelfCollisions() const { return _minimalSelfCollisions; }
647 
656  const std::vector<mc_rbdyn::Collision> & commonSelfCollisions() const { return _commonSelfCollisions; }
657 
662  const std::vector<Gripper> & grippers() const { return _grippers; }
663 
670  inline const Gripper::Safety & gripperSafety() const { return _gripperSafety; }
671 
677  const std::vector<std::string> & ref_joint_order() const { return _ref_joint_order; }
678 
683  const std::array<double, 7> & default_attitude() const { return _default_attitude; }
684 
687  { return _lipmStabilizerConfig; }
688 
696  void boundsFromURDF(const rbd::parsers::Limits & limits);
697 
706 
714 
719  inline const CompoundJointConstraintDescriptionVector & compoundJoints() const { return _compoundJoints; }
720 
722  inline const std::vector<std::string> & parameters() const { return _parameters; }
723 
728  inline const std::vector<std::string> & canonicalParameters() const { return _canonicalParameters; }
729 
739 
740  /* Post-processing for control to canonical
741  *
742  * The default implementation does nothing
743  *
744  * This function is called automatically by mc_rtc after each iteration of MCGlobalController::run()
745  *
746  * It is called last, after the controller/observer/grippers have run and before the plugins/log/GUI
747  */
748  std::function<void(const mc_rbdyn::Robot & control, mc_rbdyn::Robot & canonical)> controlToCanonicalPostProcess =
749  [](const mc_rbdyn::Robot &, mc_rbdyn::Robot &) {};
750 
758  std::string real_urdf() const { return _real_urdf; }
759 
761  inline const DevicePtrVector & devices() const { return _devices; }
762 
764  inline const std::vector<FrameDescription> & frames() const noexcept { return _frames; }
765 
766 public:
773  static void set_loading_location(std::string_view location);
774  inline const std::string & get_loading_location() const noexcept { return loading_location_; }
775 
776  /* Path to the folder containing the robot module library */
777  std::string loading_location_;
779  std::string path;
781  std::string name;
783  std::string urdf_path;
785  std::string convex_dir;
787  std::string rsdf_dir;
789  std::string calib_dir;
805  std::map<std::string, std::vector<double>> _stance;
807  std::map<std::string, std::pair<std::string, std::string>> _convexHull;
809  std::map<std::string, std::pair<std::string, S_ObjectPtr>> _collisionObjects;
811  std::map<std::string, std::pair<std::string, std::string>> _stpbvHull;
817  std::map<std::string, sva::PTransformd> _collisionTransforms;
819  std::vector<Flexibility> _flexibility;
821  std::vector<ForceSensor> _forceSensors;
825  std::vector<JointSensor> _jointSensors;
829  std::vector<mc_rbdyn::Collision> _minimalSelfCollisions;
831  std::vector<mc_rbdyn::Collision> _commonSelfCollisions;
833  std::vector<Gripper> _grippers;
837  std::vector<std::string> _ref_joint_order;
839  std::array<double, 7> _default_attitude = {{1., 0., 0., 0., 0., 0., 0.}};
843  std::vector<std::string> _parameters;
845  std::vector<std::string> _canonicalParameters;
849  std::string _real_urdf;
853  std::vector<FrameDescription> _frames;
854 };
855 
856 typedef std::shared_ptr<RobotModule> RobotModulePtr;
857 
864 
865 using RobotModuleVector = std::vector<RobotModule, Eigen::aligned_allocator<RobotModule>>;
866 
880 
882 {
886 }
887 
888 inline bool operator==(const RobotModule::Gripper & lhs, const RobotModule::Gripper & rhs)
889 {
890  auto compareMimics = [&]()
891  {
892  auto lmimics = lhs.mimics();
893  auto rmimics = rhs.mimics();
894  if(lmimics == nullptr && rmimics == nullptr) { return true; }
895  if(lmimics == nullptr || rmimics == nullptr) { return false; }
896  return *lmimics == *rmimics;
897  };
898  auto compareSafety = [&]()
899  {
900  auto lsafety = lhs.safety();
901  auto rsafety = rhs.safety();
902  if(lsafety == nullptr && rsafety == nullptr) { return true; }
903  if(lsafety == nullptr || rsafety == nullptr) { return false; }
904  return *lsafety == *rsafety;
905  };
906  return lhs.name == rhs.name && lhs.joints == rhs.joints && lhs.reverse_limits == rhs.reverse_limits && compareSafety()
907  && compareMimics();
908 }
909 
910 } // namespace mc_rbdyn
911 
912 #ifdef WIN32
913 # define ROBOT_MODULE_API __declspec(dllexport)
914 #else
915 # if __GNUC__ >= 4
916 # define ROBOT_MODULE_API __attribute__((visibility("default")))
917 # else
918 # define ROBOT_MODULE_API
919 # endif
920 #endif
#define CONNECTION_PROPERTY(NAME, TYPE, DEFAULT)
Definition: RobotModule.h:268
static PTransform< T > Identity()
#define MC_RBDYN_DLLAPI
Definition: api.h:50
Definition: generic_gripper.h:15
std::vector< BodySensor, Eigen::aligned_allocator< BodySensor > > BodySensorVector
Definition: BodySensor.h:139
MC_RBDYN_DLLAPI bool check_module_compatibility(const RobotModule &lhs, const RobotModule &rhs)
std::vector< RobotModule, Eigen::aligned_allocator< RobotModule > > RobotModuleVector
Definition: RobotModule.h:865
std::vector< CompoundJointConstraintDescription, Eigen::aligned_allocator< CompoundJointConstraintDescription > > CompoundJointConstraintDescriptionVector
Definition: CompoundJointConstraintDescription.h:33
std::shared_ptr< sch::S_Object > S_ObjectPtr
Definition: RobotModule.h:31
bool operator==(const mc_rbdyn::BodySensor &lhs, const mc_rbdyn::BodySensor &rhs)
Definition: BodySensor.h:141
MC_RBDYN_DLLAPI RobotModule::bounds_t urdf_limits_to_bounds(const rbd::parsers::Limits &limits)
Converts limits provided by RBDyn parsers to bounds.
std::shared_ptr< RobotModule > RobotModulePtr
Definition: RobotModule.h:856
constexpr double toRad(const double degrees)
Converts degrees to radians.
Definition: constants.h:37
PTransform< double > PTransformd
Type
std::unordered_map< KeyWithId, Value, HashId< KeyWithId >, IdEqual< KeyWithId >, Allocator > unordered_map
Definition: RobotModule.h:38
DevicePtrVector & operator=(DevicePtrVector &&v)=default
DevicePtrVector(DevicePtrVector &&v)=default
MC_RBDYN_DLLAPI DevicePtrVector(const DevicePtrVector &v)
MC_RBDYN_DLLAPI DevicePtrVector & operator=(const DevicePtrVector &v)
Configuration for mc_rbdyn::RobotConverter.
Definition: RobotConverterConfig.h:16
Definition: RobotModule.h:261
std::array< std::vector< double >, 2 > JointAccelerationLimits
Definition: RobotModule.h:327
std::array< std::vector< double >, 6 > JointLimits
Definition: RobotModule.h:323
std::unordered_map< std::string, std::string > mapping_t
Definition: RobotModule.h:354
std::array< std::vector< double >, 2 > JointJerkLimits
Definition: RobotModule.h:331
std::array< std::vector< double >, 2 > JointTorqueDerivativeLimits
Definition: RobotModule.h:335
Definition: RobotModule.h:205
std::string name
Definition: RobotModule.h:213
std::string parent
Definition: RobotModule.h:215
FrameDescription(const std::string &n, const std::string &p, const sva::PTransformd &pt, bool baked=false)
Definition: RobotModule.h:207
sva::PTransformd X_p_f
Definition: RobotModule.h:217
Definition: RobotModule.h:112
double actualCommandDiffTrigger
Definition: RobotModule.h:142
Safety()
Definition: RobotModule.h:123
mc_rtc::Configuration save() const
double percentVMax
Definition: RobotModule.h:140
Safety(double percentVMax, double actualCommandDiffTrigger=DEFAULT_ACTUAL_COMMAND_DIFF_TRIGGER, double releaseSafetyOffset=DEFAULT_RELEASE_OFFSET, unsigned int overCommandLimitIterN=DEFAULT_OVER_COMMAND_LIMIT_ITER_N)
Definition: RobotModule.h:125
unsigned int overCommandLimitIterN
Definition: RobotModule.h:146
void load(const mc_rtc::Configuration &config)
double releaseSafetyOffset
Definition: RobotModule.h:144
Definition: RobotModule.h:109
Gripper(const std::string &name, const std::vector< std::string > &joints, bool reverse_limits)
Gripper(const std::string &name, const std::vector< std::string > &joints, bool reverse_limits, const Safety &safety)
std::string name
Definition: RobotModule.h:166
bool reverse_limits
Definition: RobotModule.h:170
std::vector< std::string > joints
Definition: RobotModule.h:168
Gripper(const std::string &name, const std::vector< std::string > &joints, bool reverse_limits, const Safety &safety, const std::vector< Mimic > &mimics)
const std::vector< Mimic > * mimics() const
Definition: RobotModule.h:177
const Safety * safety() const
Definition: RobotModule.h:174
Definition: RobotModule.h:66
const std::string & get_loading_location() const noexcept
Definition: RobotModule.h:774
std::vector< mc_rbdyn::Collision > _commonSelfCollisions
Definition: RobotModule.h:831
std::map< std::string, std::pair< std::string, std::string > > _stpbvHull
Definition: RobotModule.h:811
CompoundJointConstraintDescriptionVector _compoundJoints
Definition: RobotModule.h:841
std::vector< ForceSensor > _forceSensors
Definition: RobotModule.h:821
const std::vector< Flexibility > & flexibility() const
Definition: RobotModule.h:613
std::vector< std::string > _parameters
Definition: RobotModule.h:843
std::vector< std::map< std::string, std::vector< double > >> accelerationBounds_t
Definition: RobotModule.h:87
const std::vector< Gripper > & grippers() const
Definition: RobotModule.h:662
RobotConverterConfig controlToCanonicalConfig
Definition: RobotModule.h:738
const std::vector< ForceSensor > & forceSensors() const
Definition: RobotModule.h:619
void make_default_ref_joint_order()
RobotModule(const std::string &name, const rbd::parsers::ParserResult &res)
std::vector< std::map< std::string, std::vector< double > >> torqueDerivativeBounds_t
Definition: RobotModule.h:105
const Springs & springs() const
Definition: RobotModule.h:637
const CompoundJointConstraintDescriptionVector & compoundJoints() const
Definition: RobotModule.h:719
const std::array< double, 7 > & default_attitude() const
Definition: RobotModule.h:683
VisualMap _visual
Definition: RobotModule.h:813
std::string calib_dir
Definition: RobotModule.h:789
const std::vector< std::map< std::string, std::vector< double > > > & torqueDerivativeBounds() const
Definition: RobotModule.h:542
void init(const rbd::parsers::ParserResult &res)
accelerationBounds_t _accelerationBounds
Definition: RobotModule.h:799
const DevicePtrVector & devices() const
Definition: RobotModule.h:761
std::string loading_location_
Definition: RobotModule.h:777
RobotModule connect(const mc_rbdyn::RobotModule &other, const std::string &this_body, const std::string &other_body, const std::string &prefix, const ConnectionParameters &params) const
const BodySensorVector & bodySensors() const
Definition: RobotModule.h:625
const std::vector< mc_rbdyn::Collision > & minimalSelfCollisions() const
Definition: RobotModule.h:646
std::map< std::string, sva::PTransformd > _collisionTransforms
Definition: RobotModule.h:817
std::string _real_urdf
Definition: RobotModule.h:849
Gripper::Safety _gripperSafety
Definition: RobotModule.h:835
std::vector< std::map< std::string, std::vector< double > >> bounds_t
Definition: RobotModule.h:78
RobotModule disconnect(const mc_rbdyn::RobotModule &other, const std::string &this_body, const std::string &other_body, const std::string &prefix, const ConnectionParameters &params) const
std::string path
Definition: RobotModule.h:779
const std::map< std::string, std::pair< std::string, S_ObjectPtr > > & collisionObjects() const
Definition: RobotModule.h:585
std::string convex_dir
Definition: RobotModule.h:785
std::map< std::string, std::pair< std::string, std::string > > _convexHull
Definition: RobotModule.h:807
std::vector< Flexibility > _flexibility
Definition: RobotModule.h:819
rbd::MultiBodyGraph mbg
Definition: RobotModule.h:795
std::vector< FrameDescription > _frames
Definition: RobotModule.h:853
const std::map< std::string, std::pair< std::string, std::string > > & stpbvHull() const
Definition: RobotModule.h:599
const std::vector< JointSensor > & jointSensors() const
Definition: RobotModule.h:631
const std::vector< std::map< std::string, std::vector< double > > > & accelerationBounds() const
Definition: RobotModule.h:519
std::string urdf_path
Definition: RobotModule.h:783
void boundsFromURDF(const rbd::parsers::Limits &limits)
const std::vector< FrameDescription > & frames() const noexcept
Definition: RobotModule.h:764
mc_rbdyn::lipm_stabilizer::StabilizerConfiguration _lipmStabilizerConfig
Definition: RobotModule.h:847
std::map< std::string, std::vector< double > > _stance
Definition: RobotModule.h:805
const std::vector< std::string > & parameters() const
Definition: RobotModule.h:722
BodySensorVector _bodySensors
Definition: RobotModule.h:823
std::vector< std::string > _canonicalParameters
Definition: RobotModule.h:845
std::vector< std::map< std::string, std::vector< double > >> jerkBounds_t
Definition: RobotModule.h:96
std::vector< JointSensor > _jointSensors
Definition: RobotModule.h:825
std::string rsdf_dir
Definition: RobotModule.h:787
std::map< std::string, std::pair< std::string, S_ObjectPtr > > _collisionObjects
Definition: RobotModule.h:809
const std::vector< std::string > & canonicalParameters() const
Definition: RobotModule.h:728
std::string real_urdf() const
Definition: RobotModule.h:758
VisualMap _collision
Definition: RobotModule.h:815
rbd::MultiBody mb
Definition: RobotModule.h:791
DevicePtrVector _devices
Definition: RobotModule.h:851
static void set_loading_location(std::string_view location)
const std::map< std::string, sva::PTransformd > & collisionTransforms() const
Definition: RobotModule.h:607
const std::vector< std::map< std::string, std::vector< double > > > & jerkBounds() const
Definition: RobotModule.h:531
std::vector< mc_rbdyn::Collision > _minimalSelfCollisions
Definition: RobotModule.h:829
std::string name
Definition: RobotModule.h:781
const std::vector< std::string > & ref_joint_order() const
Definition: RobotModule.h:677
const std::map< std::string, std::vector< double > > & stance() const
Definition: RobotModule.h:555
const std::vector< std::map< std::string, std::vector< double > > > & bounds() const
Definition: RobotModule.h:508
std::vector< std::string > _ref_joint_order
Definition: RobotModule.h:837
RobotModule(const std::string &path, const std::string &name)
Definition: RobotModule.h:237
rbd::MultiBodyConfig mbc
Definition: RobotModule.h:793
Springs _springs
Definition: RobotModule.h:827
const Gripper::Safety & gripperSafety() const
Definition: RobotModule.h:670
jerkBounds_t _jerkBounds
Definition: RobotModule.h:801
const std::map< std::string, std::pair< std::string, std::string > > & convexHull() const
Definition: RobotModule.h:570
RobotModule(const std::string &path, const std::string &name, const std::string &urdf_path)
const mc_rbdyn::lipm_stabilizer::StabilizerConfiguration & defaultLIPMStabilizerConfiguration() const
Definition: RobotModule.h:686
bounds_t _bounds
Definition: RobotModule.h:797
const std::vector< mc_rbdyn::Collision > & commonSelfCollisions() const
Definition: RobotModule.h:656
torqueDerivativeBounds_t _torqueDerivativeBounds
Definition: RobotModule.h:803
void generate_convexes(bool regenerate=false, unsigned int sampling_point=4000)
std::vector< Gripper > _grippers
Definition: RobotModule.h:833
Definition: Robot.h:63
Definition: Springs.h:17
Definition: RobotModule.h:53
VisualMap & operator=(VisualMap &&v)=default
VisualMap & operator=(const VisualMap &v)=default
VisualMap(VisualMap &&v)=default
VisualMap(const VisualMap &v)=default
Configuration of the LIPMStabilizer. This configuration is meant to be overriden from the RobotModule...
Definition: StabilizerConfiguration.h:429
Simplify access to values hold within a JSON file.
Definition: Configuration.h:166