mc_rtc  2.16.0
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  : path(path), name(name), urdf_path(urdf_path), convex_dir(""), rsdf_dir(path + "/rsdf/" + name),
256  calib_dir(path + "/calib/" + name), _real_urdf(urdf_path)
257  {
258  }
259 
261  RobotModule(const std::string & name, const rbd::parsers::ParserResult & res);
262 
265  {
266 
272 #define CONNECTION_PROPERTY(NAME, TYPE, DEFAULT) \
273  TYPE NAME##_ = DEFAULT; \
274  inline ConnectionParameters & NAME(const TYPE & b) noexcept \
275  { \
276  NAME##_ = b; \
277  return *this; \
278  } \
279  inline auto & NAME() noexcept \
280  { return NAME##_; }
281 
290  CONNECTION_PROPERTY(path, std::string, "")
292  CONNECTION_PROPERTY(name, std::string, "")
294  CONNECTION_PROPERTY(urdf_path, std::string, "")
296  CONNECTION_PROPERTY(rsdf_dir, std::string, "")
298  CONNECTION_PROPERTY(calib_dir, std::string, "")
300  CONNECTION_PROPERTY(useGripperSafetyFromThis, bool, true)
302  CONNECTION_PROPERTY(useLIPMStabilizerConfigFromThis, bool, true)
303 
305  /* End General parameters section */
306 
315  CONNECTION_PROPERTY(jointType, rbd::Joint::Type, rbd::Joint::Type::Fixed)
316 
318  CONNECTION_PROPERTY(jointAxis, Eigen::Vector3d, Eigen::Vector3d::UnitZ())
320  CONNECTION_PROPERTY(jointForward, bool, true)
322  CONNECTION_PROPERTY(jointName, std::string, "")
324  CONNECTION_PROPERTY(jointStance, std::vector<double>, {})
327  using JointLimits = std::array<std::vector<double>, 6>;
328  CONNECTION_PROPERTY(jointLimits, JointLimits, {})
331  using JointAccelerationLimits = std::array<std::vector<double>, 2>;
332  CONNECTION_PROPERTY(jointAccelerationLimits, JointAccelerationLimits, {})
335  using JointJerkLimits = std::array<std::vector<double>, 2>;
336  CONNECTION_PROPERTY(jointJerkLimits, JointJerkLimits, {})
339  using JointTorqueDerivativeLimits = std::array<std::vector<double>, 2>;
340  CONNECTION_PROPERTY(jointTorqueDerivativeLimits, JointTorqueDerivativeLimits, {})
344  CONNECTION_PROPERTY(X_other_connection, sva::PTransformd, sva::PTransformd::Identity())
345 
347  /* End Connection joint section */
348 
358  using mapping_t = std::unordered_map<std::string, std::string>;
359 
361  CONNECTION_PROPERTY(bodyMapping, mapping_t, {})
362 
364  CONNECTION_PROPERTY(jointMapping, mapping_t, {})
365 
367  CONNECTION_PROPERTY(convexMapping, mapping_t, {})
368 
370  CONNECTION_PROPERTY(gripperMapping, mapping_t, {})
371 
373  CONNECTION_PROPERTY(surfaceMapping, mapping_t, {})
374 
375  /* Remap frame names */
376  CONNECTION_PROPERTY(frameMapping, mapping_t, {})
377 
379  CONNECTION_PROPERTY(forceSensorMapping, mapping_t, {})
380 
382  CONNECTION_PROPERTY(bodySensorMapping, mapping_t, {})
383 
385  CONNECTION_PROPERTY(deviceMapping, mapping_t, {})
386 
387 #undef CONNECTION_PROPERTY
389  /* End Name mapping section */
390  };
391 
416  const std::string & this_body,
417  const std::string & other_body,
418  const std::string & prefix,
419  const ConnectionParameters & params) const;
420 
445  const std::string & this_body,
446  const std::string & other_body,
447  const std::string & prefix,
448  const ConnectionParameters & params) const;
449 
461  void init(const rbd::parsers::ParserResult & res);
462 
488  void generate_convexes(bool regenerate = false, unsigned int sampling_point = 4000);
489 
500 
512  const std::vector<std::map<std::string, std::vector<double>>> & bounds() const { return _bounds; }
513 
523  const std::vector<std::map<std::string, std::vector<double>>> & accelerationBounds() const
524  { return _accelerationBounds; }
525 
535  const std::vector<std::map<std::string, std::vector<double>>> & jerkBounds() const { return _jerkBounds; }
536 
546  const std::vector<std::map<std::string, std::vector<double>>> & torqueDerivativeBounds() const
547  { return _torqueDerivativeBounds; }
548 
559  const std::map<std::string, std::vector<double>> & stance() const { return _stance; }
560 
574  const std::map<std::string, std::pair<std::string, std::string>> & convexHull() const { return _convexHull; }
575 
589  const std::map<std::string, std::pair<std::string, S_ObjectPtr>> & collisionObjects() const
590  { return _collisionObjects; }
591 
603  const std::map<std::string, std::pair<std::string, std::string>> & stpbvHull() const { return _stpbvHull; }
604 
611  const std::map<std::string, sva::PTransformd> & collisionTransforms() const { return _collisionTransforms; }
612 
617  const std::vector<Flexibility> & flexibility() const { return _flexibility; }
618 
623  const std::vector<ForceSensor> & forceSensors() const { return _forceSensors; }
624 
629  const BodySensorVector & bodySensors() const { return _bodySensors; }
630 
635  const std::vector<JointSensor> & jointSensors() const { return _jointSensors; }
636 
641  const Springs & springs() const { return _springs; }
642 
650  const std::vector<mc_rbdyn::Collision> & minimalSelfCollisions() const { return _minimalSelfCollisions; }
651 
660  const std::vector<mc_rbdyn::Collision> & commonSelfCollisions() const { return _commonSelfCollisions; }
661 
666  const std::vector<Gripper> & grippers() const { return _grippers; }
667 
674  inline const Gripper::Safety & gripperSafety() const { return _gripperSafety; }
675 
681  const std::vector<std::string> & ref_joint_order() const { return _ref_joint_order; }
682 
687  const std::array<double, 7> & default_attitude() const { return _default_attitude; }
688 
691  { return _lipmStabilizerConfig; }
692 
700  void boundsFromURDF(const rbd::parsers::Limits & limits);
701 
710 
718 
723  inline const CompoundJointConstraintDescriptionVector & compoundJoints() const { return _compoundJoints; }
724 
726  inline const std::vector<std::string> & parameters() const { return _parameters; }
727 
732  inline const std::vector<std::string> & canonicalParameters() const { return _canonicalParameters; }
733 
743 
744  /* Post-processing for control to canonical
745  *
746  * The default implementation does nothing
747  *
748  * This function is called automatically by mc_rtc after each iteration of MCGlobalController::run()
749  *
750  * It is called last, after the controller/observer/grippers have run and before the plugins/log/GUI
751  */
752  std::function<void(const mc_rbdyn::Robot & control, mc_rbdyn::Robot & canonical)> controlToCanonicalPostProcess =
753  [](const mc_rbdyn::Robot &, mc_rbdyn::Robot &) {};
754 
762  std::string real_urdf() const { return _real_urdf; }
763 
765  inline const DevicePtrVector & devices() const { return _devices; }
766 
768  inline const std::vector<FrameDescription> & frames() const noexcept { return _frames; }
769 
770 public:
772  std::string path;
774  std::string name;
776  std::string urdf_path;
778  std::string convex_dir;
780  std::string rsdf_dir;
782  std::string calib_dir;
798  std::map<std::string, std::vector<double>> _stance;
800  std::map<std::string, std::pair<std::string, std::string>> _convexHull;
802  std::map<std::string, std::pair<std::string, S_ObjectPtr>> _collisionObjects;
804  std::map<std::string, std::pair<std::string, std::string>> _stpbvHull;
810  std::map<std::string, sva::PTransformd> _collisionTransforms;
812  std::vector<Flexibility> _flexibility;
814  std::vector<ForceSensor> _forceSensors;
818  std::vector<JointSensor> _jointSensors;
822  std::vector<mc_rbdyn::Collision> _minimalSelfCollisions;
824  std::vector<mc_rbdyn::Collision> _commonSelfCollisions;
826  std::vector<Gripper> _grippers;
830  std::vector<std::string> _ref_joint_order;
832  std::array<double, 7> _default_attitude = {{1., 0., 0., 0., 0., 0., 0.}};
836  std::vector<std::string> _parameters;
838  std::vector<std::string> _canonicalParameters;
842  std::string _real_urdf;
846  std::vector<FrameDescription> _frames;
847 };
848 
849 typedef std::shared_ptr<RobotModule> RobotModulePtr;
850 
857 
858 using RobotModuleVector = std::vector<RobotModule, Eigen::aligned_allocator<RobotModule>>;
859 
873 
875 {
879 }
880 
881 inline bool operator==(const RobotModule::Gripper & lhs, const RobotModule::Gripper & rhs)
882 {
883  auto compareMimics = [&]()
884  {
885  auto lmimics = lhs.mimics();
886  auto rmimics = rhs.mimics();
887  if(lmimics == nullptr && rmimics == nullptr) { return true; }
888  if(lmimics == nullptr || rmimics == nullptr) { return false; }
889  return *lmimics == *rmimics;
890  };
891  auto compareSafety = [&]()
892  {
893  auto lsafety = lhs.safety();
894  auto rsafety = rhs.safety();
895  if(lsafety == nullptr && rsafety == nullptr) { return true; }
896  if(lsafety == nullptr || rsafety == nullptr) { return false; }
897  return *lsafety == *rsafety;
898  };
899  return lhs.name == rhs.name && lhs.joints == rhs.joints && lhs.reverse_limits == rhs.reverse_limits && compareSafety()
900  && compareMimics();
901 }
902 
903 } // namespace mc_rbdyn
904 
905 #ifdef WIN32
906 # define ROBOT_MODULE_API __declspec(dllexport)
907 #else
908 # if __GNUC__ >= 4
909 # define ROBOT_MODULE_API __attribute__((visibility("default")))
910 # else
911 # define ROBOT_MODULE_API
912 # endif
913 #endif
#define CONNECTION_PROPERTY(NAME, TYPE, DEFAULT)
Definition: RobotModule.h:272
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:858
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:849
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:265
std::array< std::vector< double >, 2 > JointAccelerationLimits
Definition: RobotModule.h:331
std::array< std::vector< double >, 6 > JointLimits
Definition: RobotModule.h:327
std::unordered_map< std::string, std::string > mapping_t
Definition: RobotModule.h:358
std::array< std::vector< double >, 2 > JointJerkLimits
Definition: RobotModule.h:335
std::array< std::vector< double >, 2 > JointTorqueDerivativeLimits
Definition: RobotModule.h:339
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
std::vector< mc_rbdyn::Collision > _commonSelfCollisions
Definition: RobotModule.h:824
std::map< std::string, std::pair< std::string, std::string > > _stpbvHull
Definition: RobotModule.h:804
CompoundJointConstraintDescriptionVector _compoundJoints
Definition: RobotModule.h:834
std::vector< ForceSensor > _forceSensors
Definition: RobotModule.h:814
const std::vector< Flexibility > & flexibility() const
Definition: RobotModule.h:617
std::vector< std::string > _parameters
Definition: RobotModule.h:836
std::vector< std::map< std::string, std::vector< double > >> accelerationBounds_t
Definition: RobotModule.h:87
const std::vector< Gripper > & grippers() const
Definition: RobotModule.h:666
RobotConverterConfig controlToCanonicalConfig
Definition: RobotModule.h:742
const std::vector< ForceSensor > & forceSensors() const
Definition: RobotModule.h:623
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:641
const CompoundJointConstraintDescriptionVector & compoundJoints() const
Definition: RobotModule.h:723
const std::array< double, 7 > & default_attitude() const
Definition: RobotModule.h:687
VisualMap _visual
Definition: RobotModule.h:806
std::string calib_dir
Definition: RobotModule.h:782
const std::vector< std::map< std::string, std::vector< double > > > & torqueDerivativeBounds() const
Definition: RobotModule.h:546
void init(const rbd::parsers::ParserResult &res)
accelerationBounds_t _accelerationBounds
Definition: RobotModule.h:792
const DevicePtrVector & devices() const
Definition: RobotModule.h:765
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:629
const std::vector< mc_rbdyn::Collision > & minimalSelfCollisions() const
Definition: RobotModule.h:650
std::map< std::string, sva::PTransformd > _collisionTransforms
Definition: RobotModule.h:810
std::string _real_urdf
Definition: RobotModule.h:842
Gripper::Safety _gripperSafety
Definition: RobotModule.h:828
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:772
const std::map< std::string, std::pair< std::string, S_ObjectPtr > > & collisionObjects() const
Definition: RobotModule.h:589
std::string convex_dir
Definition: RobotModule.h:778
std::map< std::string, std::pair< std::string, std::string > > _convexHull
Definition: RobotModule.h:800
std::vector< Flexibility > _flexibility
Definition: RobotModule.h:812
rbd::MultiBodyGraph mbg
Definition: RobotModule.h:788
std::vector< FrameDescription > _frames
Definition: RobotModule.h:846
const std::map< std::string, std::pair< std::string, std::string > > & stpbvHull() const
Definition: RobotModule.h:603
const std::vector< JointSensor > & jointSensors() const
Definition: RobotModule.h:635
const std::vector< std::map< std::string, std::vector< double > > > & accelerationBounds() const
Definition: RobotModule.h:523
std::string urdf_path
Definition: RobotModule.h:776
void boundsFromURDF(const rbd::parsers::Limits &limits)
const std::vector< FrameDescription > & frames() const noexcept
Definition: RobotModule.h:768
mc_rbdyn::lipm_stabilizer::StabilizerConfiguration _lipmStabilizerConfig
Definition: RobotModule.h:840
std::map< std::string, std::vector< double > > _stance
Definition: RobotModule.h:798
const std::vector< std::string > & parameters() const
Definition: RobotModule.h:726
BodySensorVector _bodySensors
Definition: RobotModule.h:816
std::vector< std::string > _canonicalParameters
Definition: RobotModule.h:838
std::vector< std::map< std::string, std::vector< double > >> jerkBounds_t
Definition: RobotModule.h:96
std::vector< JointSensor > _jointSensors
Definition: RobotModule.h:818
std::string rsdf_dir
Definition: RobotModule.h:780
std::map< std::string, std::pair< std::string, S_ObjectPtr > > _collisionObjects
Definition: RobotModule.h:802
const std::vector< std::string > & canonicalParameters() const
Definition: RobotModule.h:732
std::string real_urdf() const
Definition: RobotModule.h:762
VisualMap _collision
Definition: RobotModule.h:808
rbd::MultiBody mb
Definition: RobotModule.h:784
DevicePtrVector _devices
Definition: RobotModule.h:844
const std::map< std::string, sva::PTransformd > & collisionTransforms() const
Definition: RobotModule.h:611
const std::vector< std::map< std::string, std::vector< double > > > & jerkBounds() const
Definition: RobotModule.h:535
std::vector< mc_rbdyn::Collision > _minimalSelfCollisions
Definition: RobotModule.h:822
std::string name
Definition: RobotModule.h:774
const std::vector< std::string > & ref_joint_order() const
Definition: RobotModule.h:681
const std::map< std::string, std::vector< double > > & stance() const
Definition: RobotModule.h:559
const std::vector< std::map< std::string, std::vector< double > > > & bounds() const
Definition: RobotModule.h:512
std::vector< std::string > _ref_joint_order
Definition: RobotModule.h:830
RobotModule(const std::string &path, const std::string &name)
Definition: RobotModule.h:237
rbd::MultiBodyConfig mbc
Definition: RobotModule.h:786
Springs _springs
Definition: RobotModule.h:820
const Gripper::Safety & gripperSafety() const
Definition: RobotModule.h:674
jerkBounds_t _jerkBounds
Definition: RobotModule.h:794
const std::map< std::string, std::pair< std::string, std::string > > & convexHull() const
Definition: RobotModule.h:574
RobotModule(const std::string &path, const std::string &name, const std::string &urdf_path)
Definition: RobotModule.h:254
const mc_rbdyn::lipm_stabilizer::StabilizerConfiguration & defaultLIPMStabilizerConfiguration() const
Definition: RobotModule.h:690
bounds_t _bounds
Definition: RobotModule.h:790
const std::vector< mc_rbdyn::Collision > & commonSelfCollisions() const
Definition: RobotModule.h:660
torqueDerivativeBounds_t _torqueDerivativeBounds
Definition: RobotModule.h:796
void generate_convexes(bool regenerate=false, unsigned int sampling_point=4000)
std::vector< Gripper > _grippers
Definition: RobotModule.h:826
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