Skip to content

Commit

Permalink
Declare the default_planning_pipeline parameter (#1227)
Browse files Browse the repository at this point in the history
Co-authored-by: AndyZe <zelenak@picknik.ai>
  • Loading branch information
stephanie-eng and AndyZe authored May 14, 2022
1 parent 3dcf953 commit 28f87cf
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,13 @@ void MotionPlanningFrame::initFromMoveGroupNS()
planning_scene_world_publisher_ =
node_->create_publisher<moveit_msgs::msg::PlanningSceneWorld>("planning_scene_world", 1);

// Declare parameter for default planning pipeline
if (!node_->has_parameter(planning_display_->getMoveGroupNS() + "default_planning_pipeline"))
node_->declare_parameter<std::string>(planning_display_->getMoveGroupNS() + "default_planning_pipeline", "");

// Query default planning pipeline id
node_->get_parameter(planning_display_->getMoveGroupNS() + "default_planning_pipeline", default_planning_pipeline_);

// Set initial velocity and acceleration scaling factors from ROS parameters
double factor;
node_->get_parameter_or("robot_description_planning.default_velocity_scaling_factor", factor, 0.1);
Expand All @@ -638,10 +645,6 @@ void MotionPlanningFrame::initFromMoveGroupNS()
{
ui_->database_port->setValue(port);
}

// Query default planning pipeline id
node_->get_parameter(planning_display_->getMoveGroupNS() + "/move_group/default_planning_pipeline",
default_planning_pipeline_);
}

void MotionPlanningFrame::disable()
Expand Down

0 comments on commit 28f87cf

Please sign in to comment.