Skip to content

Commit

Permalink
Add tests for motion plan cache (but not cartesian)
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed Nov 22, 2023
1 parent 0af131f commit fdf594c
Show file tree
Hide file tree
Showing 3 changed files with 738 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nexus_motion_planner/src/motion_plan_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ MotionPlanCache::put_plan(
auto coll = db_->openCollection<moveit_msgs::msg::RobotTrajectory>(
"move_group_plan_cache", move_group_namespace);

// Pull out "exact" matching plans in cache.
// Pull out plans "exactly" keyed by request in cache.
Query::Ptr exact_query = coll.createQuery();

bool start_query_ok = this->extract_and_append_plan_start_to_query(
Expand Down Expand Up @@ -1111,15 +1111,14 @@ MotionPlanCache::put_cartesian_plan(
{
RCLCPP_ERROR(
node_->get_logger(),
"Skipping cartesian plan insert: "
"Frame IDs cannot be empty.");
"Skipping cartesian plan insert: Frame IDs cannot be empty.");
return false;
}

auto coll = db_->openCollection<moveit_msgs::msg::RobotTrajectory>(
"move_group_cartesian_plan_cache", move_group_namespace);

// Pull out "exact" matching plans in cache.
// Pull out plans "exactly" keyed by request in cache.
Query::Ptr exact_query = coll.createQuery();

bool start_query_ok = this->extract_and_append_cartesian_plan_start_to_query(
Expand Down
Loading

0 comments on commit fdf594c

Please sign in to comment.