Skip to content

Commit

Permalink
Declare the default_planning_pipeline parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephanie Eng committed May 13, 2022
1 parent 78574bc commit 6a0169d
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,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 @@ -631,10 +638,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 6a0169d

Please sign in to comment.