User interface for editing the default collision matrix list in an SRDF. More...
#include <default_collisions_widget.h>
Public Member Functions | |
DefaultCollisionsWidget (QWidget *parent, moveit_setup_assistant::MoveItConfigDataPtr config_data) | |
User interface for editing the default collision matrix list in an SRDF. | |
void | linkPairsFromSRDF () |
Load Link Pairs from SRDF Format. | |
void | linkPairsToSRDF () |
Output Link Pairs to SRDF Format. | |
Private Slots | |
void | changeDensityLabel (int value) |
GUI func for showing sampling density amount. | |
void | collisionCheckboxToggle () |
Changes the table to show or hide collisions that are not disabled (that have collision checking enabled. | |
void | focusGiven () |
Called when setup assistant navigation switches to this screen. | |
void | generateCollisionTable () |
Qt close event function for reminding user to saveCreates a thread and updates the GUI progress bar. | |
void | loadCollisionTable () |
Displays data in the link_pairs data structure into a QtTableWidget. | |
void | previewSelected (int row) |
Called when current row has changed. | |
void | toggleCheckBox (int row, int column) |
Called when user changes data in table, really just the checkbox. | |
Private Member Functions | |
void | disableControls (bool disable) |
Helper function to disable parts of GUI during computation. | |
void | generateCollisionTableThread (unsigned int *collision_progress) |
The thread that is called to allow the GUI to update. Calls an external function to do calcs. | |
Private Attributes | |
QPushButton * | btn_generate_ |
QCheckBox * | collision_checkbox_ |
QTableWidget * | collision_table_ |
moveit_setup_assistant::MoveItConfigDataPtr | config_data_ |
Contains all the configuration data for the setup assistant. | |
QGroupBox * | controls_box_ |
QGroupBox * | controls_box_bottom_ |
QSlider * | density_slider_ |
QLabel * | density_value_label_ |
QLabel * | fraction_label_ |
QSpinBox * | fraction_spinbox_ |
QVBoxLayout * | layout_ |
moveit_setup_assistant::LinkPairMap | link_pairs_ |
main storage of link pair data | |
QLabel * | page_title_ |
QProgressBar * | progress_bar_ |
QLabel * | progress_label_ |
QTimer * | update_timer_ |
User interface for editing the default collision matrix list in an SRDF.
Definition at line 65 of file default_collisions_widget.h.
moveit_setup_assistant::DefaultCollisionsWidget::DefaultCollisionsWidget | ( | QWidget * | parent, |
moveit_setup_assistant::MoveItConfigDataPtr | config_data | ||
) |
User interface for editing the default collision matrix list in an SRDF.
urdf_file | String srdf file location. It will create a new file or will edit an existing one |
Definition at line 75 of file default_collisions_widget.cpp.
void moveit_setup_assistant::DefaultCollisionsWidget::changeDensityLabel | ( | int | value | ) | [private, slot] |
GUI func for showing sampling density amount.
value | Sampling density |
Definition at line 389 of file default_collisions_widget.cpp.
void moveit_setup_assistant::DefaultCollisionsWidget::collisionCheckboxToggle | ( | ) | [private, slot] |
Changes the table to show or hide collisions that are not disabled (that have collision checking enabled.
Definition at line 420 of file default_collisions_widget.cpp.
void moveit_setup_assistant::DefaultCollisionsWidget::disableControls | ( | bool | disable | ) | [private] |
Helper function to disable parts of GUI during computation.
disable | A command |
Definition at line 397 of file default_collisions_widget.cpp.
void moveit_setup_assistant::DefaultCollisionsWidget::focusGiven | ( | ) | [private, virtual, slot] |
Called when setup assistant navigation switches to this screen.
Reimplemented from SetupScreenWidget.
Definition at line 574 of file default_collisions_widget.cpp.
void moveit_setup_assistant::DefaultCollisionsWidget::generateCollisionTable | ( | ) | [private, slot] |
Qt close event function for reminding user to saveCreates a thread and updates the GUI progress bar.
Definition at line 207 of file default_collisions_widget.cpp.
void moveit_setup_assistant::DefaultCollisionsWidget::generateCollisionTableThread | ( | unsigned int * | collision_progress | ) | [private] |
The thread that is called to allow the GUI to update. Calls an external function to do calcs.
collision_progress | A shared pointer between 3 threads to allow progress bar to update. See declaration location for more details and warning. |
Definition at line 270 of file default_collisions_widget.cpp.
Load Link Pairs from SRDF Format.
Definition at line 516 of file default_collisions_widget.cpp.
Output Link Pairs to SRDF Format.
Definition at line 487 of file default_collisions_widget.cpp.
void moveit_setup_assistant::DefaultCollisionsWidget::loadCollisionTable | ( | ) | [private, slot] |
Displays data in the link_pairs data structure into a QtTableWidget.
Definition at line 297 of file default_collisions_widget.cpp.
void moveit_setup_assistant::DefaultCollisionsWidget::previewSelected | ( | int | row | ) | [private, slot] |
Called when current row has changed.
Definition at line 552 of file default_collisions_widget.cpp.
void moveit_setup_assistant::DefaultCollisionsWidget::toggleCheckBox | ( | int | row, |
int | column | ||
) | [private, slot] |
Called when user changes data in table, really just the checkbox.
Definition at line 435 of file default_collisions_widget.cpp.
QPushButton* moveit_setup_assistant::DefaultCollisionsWidget::btn_generate_ [private] |
Definition at line 142 of file default_collisions_widget.h.
QCheckBox* moveit_setup_assistant::DefaultCollisionsWidget::collision_checkbox_ [private] |
Definition at line 146 of file default_collisions_widget.h.
QTableWidget* moveit_setup_assistant::DefaultCollisionsWidget::collision_table_ [private] |
Definition at line 138 of file default_collisions_widget.h.
moveit_setup_assistant::MoveItConfigDataPtr moveit_setup_assistant::DefaultCollisionsWidget::config_data_ [private] |
Contains all the configuration data for the setup assistant.
Definition at line 160 of file default_collisions_widget.h.
QGroupBox* moveit_setup_assistant::DefaultCollisionsWidget::controls_box_ [private] |
Definition at line 143 of file default_collisions_widget.h.
QGroupBox* moveit_setup_assistant::DefaultCollisionsWidget::controls_box_bottom_ [private] |
Definition at line 147 of file default_collisions_widget.h.
QSlider* moveit_setup_assistant::DefaultCollisionsWidget::density_slider_ [private] |
Definition at line 141 of file default_collisions_widget.h.
QLabel* moveit_setup_assistant::DefaultCollisionsWidget::density_value_label_ [private] |
Definition at line 140 of file default_collisions_widget.h.
QLabel* moveit_setup_assistant::DefaultCollisionsWidget::fraction_label_ [private] |
Definition at line 148 of file default_collisions_widget.h.
QSpinBox* moveit_setup_assistant::DefaultCollisionsWidget::fraction_spinbox_ [private] |
Definition at line 149 of file default_collisions_widget.h.
QVBoxLayout* moveit_setup_assistant::DefaultCollisionsWidget::layout_ [private] |
Definition at line 139 of file default_collisions_widget.h.
moveit_setup_assistant::LinkPairMap moveit_setup_assistant::DefaultCollisionsWidget::link_pairs_ [private] |
main storage of link pair data
Definition at line 157 of file default_collisions_widget.h.
QLabel* moveit_setup_assistant::DefaultCollisionsWidget::page_title_ [private] |
Definition at line 137 of file default_collisions_widget.h.
QProgressBar* moveit_setup_assistant::DefaultCollisionsWidget::progress_bar_ [private] |
Definition at line 144 of file default_collisions_widget.h.
QLabel* moveit_setup_assistant::DefaultCollisionsWidget::progress_label_ [private] |
Definition at line 145 of file default_collisions_widget.h.
QTimer* moveit_setup_assistant::DefaultCollisionsWidget::update_timer_ [private] |
Definition at line 150 of file default_collisions_widget.h.