5 #include "pinocchio/parsers/srdf.hpp" 8 #include <boost/python.hpp> 31 const
bool verbose = false)
33 std::istringstream iss (xmlStream);
48 bp::def(
"removeCollisionPairs",
50 removeCollisionPairs_overload(
bp::args(
"model",
"geom_model",
"srdf_filename",
"verbose"),
51 "Parse an SRDF file in order to remove some collision pairs for a specific GeometryModel.\n""Parameters:\n" 53 "\tmodel: model of the robot\n" 54 "\tgeom_model: geometry model of the robot\n" 55 "\tsrdf_filename: path to the SRDF file containing the collision pairs to remove\n" 56 "\tverbose: [optional] display to the current terminal some internal information" 59 bp::def(
"removeCollisionPairsFromXML",
61 removeCollisionPairsFromXML_overload(
bp::args(
"model",
"geom_model",
"srdf_xml_stream",
"verbose"),
62 "Parse an SRDF file in order to remove some collision pairs for a specific GeometryModel.\n""Parameters:\n" 64 "\tmodel: model of the robot\n" 65 "\tgeom_model: geometry model of the robot\n" 66 "\tsrdf_xml_stream: XML stream containing the SRDF information with the collision pairs to remove\n" 67 "\tverbose: [optional] display to the current terminal some internal information" 70 bp::def(
"loadReferenceConfigurations",
72 loadReferenceConfigurations_overload(
bp::args(
"model",
"srdf_filename",
"verbose"),
73 "Retrieve all the reference configurations of a given model from the SRDF file.\n" 75 "\tmodel: model of the robot\n" 76 "\tsrdf_filename: path to the SRDF file containing the reference configurations\n" 77 "\tverbose: [optional] display to the current terminal some internal information" 80 bp::def(
"loadReferenceConfigurationsFromXML",
82 loadReferenceConfigurationsFromXML_overload(
bp::args(
"model",
"srdf_xml_stream",
"verbose"),
83 "Retrieve all the reference configurations of a given model from the SRDF file.\n" 85 "\tmodel: model of the robot\n" 86 "\tsrdf_xml_stream: XML stream containing the SRDF information with the reference configurations\n" 87 "\tverbose: [optional] display to the current terminal some internal information" 90 bp::def(
"loadRotorParameters",
92 loadRotorParameters_overload(
bp::args(
"model",
"srdf_filename",
"verbose"),
93 "Load the rotor parameters of a given model from a SRDF file.\n" 94 "Results are stored in model.rotorInertia and model.rotorGearRatio." 96 "\tmodel: model of the robot\n" 97 "\tsrdf_filename: path to the SRDF file containing the rotor parameters\n" 98 "\tverbose: [optional] display to the current terminal some internal information"
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...
void removeCollisionPairs(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, GeometryModel &geom_model, 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...
void removeCollisionPairsFromXML(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, GeometryModel &geom_model, const std::string &xmlString, const bool verbose=false)
Deactive all possible collision pairs mentioned in the SRDF file.
BOOST_PYTHON_FUNCTION_OVERLOADS(computeKKTContactDynamicMatrixInverse_overload, computeKKTContactDynamicMatrixInverse_proxy, 4, 5) static const Eigen
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...
const std::string & xmlStream
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...
Main pinocchio namespace.
JointCollectionTpl & model