Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates related to profiles #257

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 24 additions & 32 deletions tesseract_planning_server/src/tesseract_planning_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,53 +163,45 @@ struct TesseractPlanningServer::Implementation
void loadDefaultPlannerProfiles()
{
// Add Simple Default Profiles
profiles->addProfile<tesseract_planning::SimplePlannerPlanProfile>(
SIMPLE_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::SimplePlannerLVSNoIKPlanProfile>());
profiles->addProfile(SIMPLE_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::SimplePlannerLVSNoIKPlanProfile>());

// Add TrajOpt Default Profiles
#ifdef TESSERACT_PLANNING_SERVER_HAS_TRAJOPT
profiles->addProfile<tesseract_planning::TrajOptPlanProfile>(
TRAJOPT_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::TrajOptDefaultPlanProfile>());
profiles->addProfile<tesseract_planning::TrajOptCompositeProfile>(
TRAJOPT_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::TrajOptDefaultCompositeProfile>());
profiles->addProfile<tesseract_planning::TrajOptSolverProfile>(
TRAJOPT_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::TrajOptDefaultSolverProfile>());
profiles->addProfile(TRAJOPT_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::TrajOptDefaultPlanProfile>());
profiles->addProfile(TRAJOPT_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::TrajOptDefaultCompositeProfile>());
profiles->addProfile(TRAJOPT_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::TrajOptDefaultSolverProfile>());
#endif

// Add TrajOpt IFOPT Default Profiles
#ifdef TESSERACT_PLANNING_SERVER_HAS_TRAJOPT_IFOPT
profiles->addProfile<tesseract_planning::TrajOptIfoptPlanProfile>(
TRAJOPT_IFOPT_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::TrajOptIfoptDefaultPlanProfile>());
profiles->addProfile<tesseract_planning::TrajOptIfoptCompositeProfile>(
TRAJOPT_IFOPT_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::TrajOptIfoptDefaultCompositeProfile>());
profiles->addProfile(TRAJOPT_IFOPT_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::TrajOptIfoptDefaultPlanProfile>());
profiles->addProfile(TRAJOPT_IFOPT_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::TrajOptIfoptDefaultCompositeProfile>());
#endif

// Add Descartes Default Profiles
#ifdef TESSERACT_PLANNING_SERVER_HAS_DESCARTES
profiles->addProfile<tesseract_planning::DescartesPlanProfile<double>>(
DESCARTES_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::DescartesDefaultPlanProfile<double>>());
profiles->addProfile(DESCARTES_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::DescartesDefaultPlanProfile<double>>());
#endif

// Add OMPL Default Profiles
#ifdef TESSERACT_PLANNING_SERVER_HAS_OMPL
profiles->addProfile<tesseract_planning::OMPLPlanProfile>(
OMPL_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::OMPLDefaultPlanProfile>());
profiles->addProfile(OMPL_DEFAULT_NAMESPACE,
tesseract_planning::DEFAULT_PROFILE_KEY,
std::make_shared<tesseract_planning::OMPLDefaultPlanProfile>());
#endif
}

Expand Down
Loading