Skip to content

Instantly share code, notes, and snippets.

@JeroenDM
Created August 28, 2020 11:39
Show Gist options
  • Save JeroenDM/ed2b84ac769730084d35e348f4bb8f53 to your computer and use it in GitHub Desktop.
Save JeroenDM/ed2b84ac769730084d35e348f4bb8f53 to your computer and use it in GitHub Desktop.
// debug code for MoveIt ompl interface ConstrainedPlanningStateSpace::getValueAddressAtIndex method
// (jeroendm) left in the debug code, because it is not unlikely that issues will arise here when adding new things in
// the future. Use dynamic casting to make our debugging live easier.
// --------------------------------------------------------------------------
// auto casted_state = dynamic_cast<ompl_interface::ConstrainedPlanningStateSpace::StateType*>(ompl_state);
// if (casted_state)
// {
// return casted_state->values + index;
// }
// else
// {
// ROS_ERROR_STREAM("ompl_interface::ConstrainedPlanningStateSpace::getValueAddressAtIndex:"
// " got unexpected state type!!.");
// }
// return nullptr;
// --------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment