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

Use message, not hash for comparison in OMPL planner #266

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

zkingston
Copy link
Contributor

Fixes #256 from @werner291

@@ -102,11 +102,16 @@ void OMPL::OMPLInterfacePlanner::refreshContext(const SceneConstPtr &scene,
const planning_interface::MotionPlanRequest &request,
bool force) const
{
const auto &scene_id = scene->getKey();
const auto &request_hash = IO::getMessageMD5(request);
moveit_msgs::PlanningScene scene_msg = scene->getMessage();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think keeping the ID here would be more preferable. I am afraid that recomputing the scene message every time will incur a high-cost for big scenes that are represented as octomaps.

@zkingston
Copy link
Contributor Author

@ChamzasKonstantinos comment address, please review

Copy link
Collaborator

@ChamzasKonstantinos ChamzasKonstantinos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be ok now, just another comment

robowflex_ompl/src/ompl_interface.cpp Show resolved Hide resolved
@ChamzasKonstantinos
Copy link
Collaborator

ChamzasKonstantinos commented Nov 3, 2021

Hey @werner291 can you confirm that this solves your issue?

Copy link
Collaborator

@ChamzasKonstantinos ChamzasKonstantinos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, probably should merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Context is reused despite distinct requests, md5 hash is identical
2 participants