moveit_setup_assistant/src/widgets/controller_edit_widget.cpp
void ControllerEditWidget::loadControllersTypesComboBox()
{
  // Only load this combo box once
  if (has_loaded_)
    return;
  has_loaded_ = true;

  const std::vector<std::string> default_types = { "effort_controllers/JointTrajectoryController",
                                                   "velocity_controllers/JointTrajectoryController",
                                                   "position_controllers/JointTrajectoryController",
                                                   "FollowJointTrajectory", "GripperCommand" };

  // Remove all old items
  controller_type_field_->clear();

  // Loop through all controller default_types and add to combo box
  for (const std::string& type : default_types)
    controller_type_field_->addItem(type.c_str());
}
// ******************************************************************************************
// Populate the combo dropdown box with controllers types
// ******************************************************************************************
Populate the combo dropdown box with controllers types
Populate the combo dropdown box with controllers types
void ControllerEditWidget::loadControllersTypesComboBox()
{
  if (has_loaded_)
    return;
  has_loaded_ = true;
  const std::vector<std::string> default_types = { "effort_controllers/JointTrajectoryController",
                                                   "velocity_controllers/JointTrajectoryController",
                                                   "position_controllers/JointTrajectoryController",
                                                   "FollowJointTrajectory", "GripperCommand" };
  controller_type_field_->clear();
  for (const std::string& type : default_types)
    controller_type_field_->addItem(type.c_str());
}
void ControllerEditWidget :: loadControllersTypesComboBox ( ) { if ( has_loaded_ ) return ; has_loaded_ = true ; const std :: vector < std :: string > default_types = { " " , " " , " " , " " , " " } ; controller_type_field_ -> clear ( ) ; for ( const std :: string & type : default_types ) controller_type_field_ -> addItem ( type . c_str ( ) ) ; }
Populate the combo dropdown box with controllers types
Populate the combo dropdown box with controllers types
// Only load this combo box once // Remove all old items // Loop through all controller default_types and add to combo box