// ****************************************************************************************** // Constructor // ****************************************************************************************** VirtualJointsWidget::VirtualJointsWidget( QWidget *parent, moveit_setup_assistant::MoveItConfigDataPtr config_data ) : SetupScreenWidget( parent ), config_data_(config_data) { // Basic widget container QVBoxLayout *layout = new QVBoxLayout( ); // Top Header Area ------------------------------------------------ HeaderWidget *header = new HeaderWidget( "Virtual Joints", "Define a virtual joint between a robot link and an external frame of reference (considered fixed with respect to the robot).", this); layout->addWidget( header ); // Create contents screens --------------------------------------- vjoint_list_widget_ = createContentsWidget(); vjoint_edit_widget_ = createEditWidget(); // Create stacked layout ----------------------------------------- stacked_layout_ = new QStackedLayout( this ); stacked_layout_->addWidget( vjoint_list_widget_ ); // screen index 0 stacked_layout_->addWidget( vjoint_edit_widget_ ); // screen index 1 // Create Widget wrapper for layout QWidget *stacked_layout_widget = new QWidget( this ); stacked_layout_widget->setLayout( stacked_layout_ ); layout->addWidget( stacked_layout_widget ); // Finish Layout -------------------------------------------------- this->setLayout(layout); }
// ****************************************************************************************** // Constructor // ****************************************************************************************** EndEffectorsWidget::EndEffectorsWidget( QWidget *parent, moveit_setup_assistant::MoveItConfigDataPtr config_data ) : SetupScreenWidget( parent ), config_data_(config_data) { // Basic widget container QVBoxLayout *layout = new QVBoxLayout( ); // Top Header Area ------------------------------------------------ HeaderWidget *header = new HeaderWidget( "End Effectors", "Setup grippers and other end effectors for your robot", this); layout->addWidget( header ); // Create contents screens --------------------------------------- effector_list_widget_ = createContentsWidget(); effector_edit_widget_ = createEditWidget(); // Create stacked layout ----------------------------------------- stacked_layout_ = new QStackedLayout( this ); stacked_layout_->addWidget( effector_list_widget_ ); // screen index 0 stacked_layout_->addWidget( effector_edit_widget_ ); // screen index 1 // Create Widget wrapper for layout QWidget *stacked_layout_widget = new QWidget( this ); stacked_layout_widget->setLayout( stacked_layout_ ); layout->addWidget( stacked_layout_widget ); // Finish Layout -------------------------------------------------- this->setLayout(layout); }