Go to the documentation of this file.
16 #include <boost/test/unit_test.hpp>
20 BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
31 BOOST_CHECK(broadphase_manager.
check());
38 + std::string(
"/example-robot-data/robots/romeo_description/urdf/romeo_small.urdf");
39 std::vector<std::string> packageDirs;
41 packageDirs.push_back(meshDir);
44 + std::string(
"/example-robot-data/robots/romeo_description/srdf/romeo.srdf");
57 Eigen::VectorXd
q =
model.referenceConfigurations[
"half_sitting"];
72 const int num_configs = 1000;
73 for (
int i = 0;
i < num_configs; ++
i)
76 q_rand.head<7>() =
q.head<7>();
84 BOOST_AUTO_TEST_SUITE_END()
bool computeCollisions(BroadPhaseManagerBase< BroadPhaseManagerDerived > &broadphase_manager, CollisionCallBackBase *callback)
Calls computeCollision for every active pairs of GeometryData. This function assumes that updateGeome...
void updateGeometryPlacements(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, DataTpl< Scalar, Options, JointCollectionTpl > &data, const GeometryModel &geom_model, GeometryData &geom_data, const Eigen::MatrixBase< ConfigVectorType > &q)
Apply a forward kinematics and update the placement of the geometry objects.
void randomConfiguration(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const Eigen::MatrixBase< ConfigVectorIn1 > &lowerLimits, const Eigen::MatrixBase< ConfigVectorIn2 > &upperLimits, const Eigen::MatrixBase< ReturnType > &qout)
Generate a configuration vector uniformly sampled among provided limits.
BOOST_AUTO_TEST_CASE(test_tree_broadphase_with_empty_models)
ModelTpl< Scalar, Options, JointCollectionTpl > & buildModel(const std::string &filename, const typename ModelTpl< Scalar, Options, JointCollectionTpl >::JointModel &rootJoint, const std::string &rootJointName, ModelTpl< Scalar, Options, JointCollectionTpl > &model, const bool verbose=false)
Build the model from a URDF file with a particular joint as root of the model tree inside the model g...
GeometryModel & buildGeom(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const std::string &filename, const GeometryType type, GeometryModel &geom_model, const std::vector< std::string > &package_paths=std::vector< std::string >(), ::hpp::fcl::MeshLoaderPtr mesh_loader=::hpp::fcl::MeshLoaderPtr())
Build The GeometryModel from a URDF file. Search for meshes in the directories specified by the user ...
bool check() const
Check whether the base broad phase manager is aligned with the current collision_objects.
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
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...
JointCollectionTpl & model
Main pinocchio namespace.
#define PINOCCHIO_MODEL_DIR
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...
pinocchio
Author(s):
autogenerated on Sun Nov 10 2024 03:43:02