-
Notifications
You must be signed in to change notification settings - Fork 24
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
base: master
Are you sure you want to change the base?
Conversation
@@ -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(); |
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 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.
@ChamzasKonstantinos comment address, please review |
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.
Should be ok now, just another comment
Hey @werner291 can you confirm that this solves your issue? |
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.
Looks good, probably should merge
Fixes #256 from @werner291