-
Notifications
You must be signed in to change notification settings - Fork 40
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
Draft: Revise OMPL planner and profile to support different types of state spaces #555
Open
marip8
wants to merge
7
commits into
tesseract-robotics:master
Choose a base branch
from
marip8:update/remove-ompl-state-extractor
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4878e05
Removed OMPL state extractor concept
marip8 4684840
Moved RVSS components to separate subdirectory
marip8 74d7dda
Added state converter function back to RVSS motion and state validators
marip8 e2a756d
Remove unused include
marip8 8cbdbce
Added function to OMPL profile for generating state space object inde…
marip8 27f376e
Added state converter object in RVSS profile
marip8 792626f
Added a constrained RVSS plan profile
marip8 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
.../ompl/include/tesseract_motion_planners/ompl/profile/ompl_constrained_rvss_plan_profile.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/** | ||
* @file ompl_constrained_rvss_plan_profile.h | ||
* @brief Tesseract OMPL constrained real vector state space plan profile | ||
* | ||
* @author Michael Ripperger | ||
* @date December 26, 2024 | ||
* @version TODO | ||
* @bug No known bugs | ||
* | ||
* @copyright Copyright (c) 2020, Southwest Research Institute | ||
* | ||
* @par License | ||
* Software License Agreement (Apache License) | ||
* @par | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* @par | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#ifndef TESSERACT_MOTION_PLANNERS_OMPL_PROFILE_CONSTRAINED_RVSS_PLAN_PROFILE_H | ||
#define TESSERACT_MOTION_PLANNERS_OMPL_PROFILE_CONSTRAINED_RVSS_PLAN_PROFILE_H | ||
|
||
#ifndef OMPL_LESS_1_4_0 | ||
|
||
#include <tesseract_common/macros.h> | ||
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH | ||
#include <vector> | ||
#include <memory> | ||
TESSERACT_COMMON_IGNORE_WARNINGS_POP | ||
|
||
#include <tesseract_motion_planners/ompl/profile/ompl_real_vector_plan_profile.h> | ||
|
||
namespace ompl::base | ||
{ | ||
class Constraint; | ||
using ConstraintPtr = std::shared_ptr<Constraint>; | ||
} | ||
|
||
namespace tesseract_planning | ||
{ | ||
class OMPLConstrainedRvssPlanProfile : public OMPLRealVectorPlanProfile | ||
{ | ||
public: | ||
OMPLConstrainedRvssPlanProfile(); | ||
|
||
protected: | ||
virtual std::vector<ompl::base::ConstraintPtr> createConstraints(const tesseract_common::ManipulatorInfo& mi, | ||
const std::shared_ptr<const tesseract_environment::Environment>& env) const; | ||
|
||
ompl::base::StateSpacePtr createStateSpace(const tesseract_common::ManipulatorInfo& mi, | ||
const std::shared_ptr<const tesseract_environment::Environment>& env) const override; | ||
|
||
friend class boost::serialization::access; | ||
template <class Archive> | ||
void serialize(Archive&, const unsigned int); // NOLINT | ||
}; | ||
|
||
} // namespace tesseract_planning | ||
|
||
BOOST_CLASS_EXPORT_KEY(tesseract_planning::OMPLConstrainedRvssPlanProfile) | ||
|
||
#endif // OMPL_LESS_1_4_0 | ||
|
||
#endif // TESSERACT_MOTION_PLANNERS_OMPL_PROFILE_CONSTRAINED_RVSS_PLAN_PROFILE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To mirror what is currently being done in
assignTrajectory
, do we also need to pass in the UUIDs of the start and end waypoints or those waypoints themselves?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this change. I was using the minimum needed but you could also pass the waypoint or instruction.