pinocchio  2.1.3
srdf.hpp
1 //
2 // Copyright (c) 2016-2018 CNRS
3 //
4 
5 #ifndef __pinocchio_parser_srdf_hpp__
6 #define __pinocchio_parser_srdf_hpp__
7 
8 #include "pinocchio/multibody/model.hpp"
9 #include "pinocchio/multibody/geometry.hpp"
10 
11 namespace pinocchio
12 {
13  namespace srdf
14  {
15 
16 #ifdef PINOCCHIO_WITH_HPP_FCL
17 
28  template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl>
29  void removeCollisionPairs(const ModelTpl<Scalar,Options,JointCollectionTpl> & model,
30  GeometryModel & geomModel,
31  const std::string & filename,
32  const bool verbose = false);
33 
35  template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl>
36  PINOCCHIO_DEPRECATED
38  GeometryModel & geomModel,
39  const std::string & filename,
40  const bool verbose = false)
41  {
42  removeCollisionPairs(model,geomModel,filename,verbose);
43  }
44 
54  template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl>
56  GeometryModel & geomModel,
57  const std::string & xmlString,
58  const bool verbose = false);
59 
61  template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl>
62  PINOCCHIO_DEPRECATED
64  GeometryModel & geomModel,
65  const std::string & xmlString,
66  const bool verbose = false)
67  {
68  removeCollisionPairsFromXML(model,geomModel,xmlString,verbose);
69  }
70 
71 #endif // ifdef PINOCCHIO_WITH_HPP_FCL
72 
83  template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl>
84  PINOCCHIO_DEPRECATED
87  const std::string & filename,
88  const bool verbose = false);
89 
91  template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl>
92  PINOCCHIO_DEPRECATED
95  const std::string & filename,
96  const bool verbose = false)
97  { return getNeutralConfiguration(model,filename,verbose); }
98 
99 
108  template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl>
109  void
111  const std::string & filename,
112  const bool verbose = false);
113 
122  template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl>
123  void
125  std::istream & xmlStream,
126  const bool verbose = false);
127 
128 
139  template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl>
141  const std::string & filename,
142  const bool verbose = false);
143 
145  template<typename Scalar, int Options, template<typename,int> class JointCollectionTpl>
146  PINOCCHIO_DEPRECATED
148  const std::string & filename,
149  const bool verbose = false)
150  {
151  return loadRotorParameters(model,filename,verbose);
152  }
153 
154  }
155 } // namespace pinocchio
156 
157 #include "pinocchio/parsers/srdf.hxx"
158 
159 #endif // ifndef __pinocchio_parser_srdf_hpp__
void loadReferenceConfigurations(ModelTpl< Scalar, Options, JointCollectionTpl > &model, const std::string &filename, const bool verbose=false)
Get the reference configurations of a given model associated to a SRDF file. It throws if the SRDF fi...
PINOCCHIO_DEPRECATED ModelTpl< Scalar, Options, JointCollectionTpl >::ConfigVectorType getNeutralConfigurationFromSrdf(ModelTpl< Scalar, Options, JointCollectionTpl > &model, const std::string &filename, const bool verbose=false)
Get the neutral configuration of a given model associated to a SRDF file. It throws if the SRDF file ...
Definition: srdf.hpp:94
void removeCollisionPairsFromXML(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, GeometryModel &geomModel, const std::string &xmlString, const bool verbose=false)
Deactive all possible collision pairs mentioned in the SRDF file.
VectorXs ConfigVectorType
Dense vectorized version of a joint configuration vector.
PINOCCHIO_DEPRECATED bool loadRotorParamsFromSrdf(ModelTpl< Scalar, Options, JointCollectionTpl > &model, const std::string &filename, const bool verbose=false)
Load the rotor params of a given model associated to a SRDF file. It throws if the SRDF file is incor...
Definition: srdf.hpp:147
void removeCollisionPairs(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, GeometryModel &geomModel, const std::string &filename, const bool verbose=false)
Deactive all possible collision pairs mentioned in the SRDF file. It throws if the SRDF file is incor...
bool loadRotorParameters(ModelTpl< Scalar, Options, JointCollectionTpl > &model, const std::string &filename, const bool verbose=false)
Load the rotor params of a given model associated to a SRDF file. It throws if the SRDF file is incor...
PINOCCHIO_DEPRECATED ModelTpl< Scalar, Options, JointCollectionTpl >::ConfigVectorType getNeutralConfiguration(ModelTpl< Scalar, Options, JointCollectionTpl > &model, const std::string &filename, const bool verbose=false)
Get the neutral configuration of a given model associated to a SRDF file. It throws if the SRDF file ...
void loadReferenceConfigurationsFromXML(ModelTpl< Scalar, Options, JointCollectionTpl > &model, std::istream &xmlStream, const bool verbose=false)
Get the reference configurations of a given model associated to a SRDF file. It throws if the SRDF fi...
PINOCCHIO_DEPRECATED void removeCollisionPairsFromSrdf(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, GeometryModel &geomModel, const std::string &filename, const bool verbose=false)
Deactive all possible collision pairs mentioned in the SRDF file. It throws if the SRDF file is incor...
Definition: srdf.hpp:37
Main pinocchio namespace.
Definition: treeview.dox:24
PINOCCHIO_DEPRECATED void removeCollisionPairsFromSrdfString(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, GeometryModel &geomModel, const std::string &xmlString, const bool verbose=false)
Deactive all possible collision pairs mentioned in the SRDF file.
Definition: srdf.hpp:63