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 | previewClicked (int row, int column) |
void | toggleCheckBox (int j, int i) |
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 66 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 79 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 392 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 423 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 400 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 579 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 206 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 267 of file default_collisions_widget.cpp.
Load Link Pairs from SRDF Format.
Definition at line 523 of file default_collisions_widget.cpp.
Output Link Pairs to SRDF Format.
Definition at line 493 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 296 of file default_collisions_widget.cpp.
void moveit_setup_assistant::DefaultCollisionsWidget::previewClicked | ( | int | row, |
int | column | ||
) | [private, slot] |
Called when a row is clicked, to highlight links on robot
Definition at line 559 of file default_collisions_widget.cpp.
void moveit_setup_assistant::DefaultCollisionsWidget::toggleCheckBox | ( | int | j, |
int | i | ||
) | [private, slot] |
Called when user changes data in table, really just the checkbox.
i,j | Check coordinates, aka y,x (weird) |
Definition at line 438 of file default_collisions_widget.cpp.
QPushButton* moveit_setup_assistant::DefaultCollisionsWidget::btn_generate_ [private] |
Definition at line 146 of file default_collisions_widget.h.
QCheckBox* moveit_setup_assistant::DefaultCollisionsWidget::collision_checkbox_ [private] |
Definition at line 150 of file default_collisions_widget.h.
QTableWidget* moveit_setup_assistant::DefaultCollisionsWidget::collision_table_ [private] |
Definition at line 142 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 164 of file default_collisions_widget.h.
QGroupBox* moveit_setup_assistant::DefaultCollisionsWidget::controls_box_ [private] |
Definition at line 147 of file default_collisions_widget.h.
QGroupBox* moveit_setup_assistant::DefaultCollisionsWidget::controls_box_bottom_ [private] |
Definition at line 151 of file default_collisions_widget.h.
QSlider* moveit_setup_assistant::DefaultCollisionsWidget::density_slider_ [private] |
Definition at line 145 of file default_collisions_widget.h.
QLabel* moveit_setup_assistant::DefaultCollisionsWidget::density_value_label_ [private] |
Definition at line 144 of file default_collisions_widget.h.
QLabel* moveit_setup_assistant::DefaultCollisionsWidget::fraction_label_ [private] |
Definition at line 152 of file default_collisions_widget.h.
QSpinBox* moveit_setup_assistant::DefaultCollisionsWidget::fraction_spinbox_ [private] |
Definition at line 153 of file default_collisions_widget.h.
QVBoxLayout* moveit_setup_assistant::DefaultCollisionsWidget::layout_ [private] |
Definition at line 143 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 161 of file default_collisions_widget.h.
QLabel* moveit_setup_assistant::DefaultCollisionsWidget::page_title_ [private] |
Definition at line 141 of file default_collisions_widget.h.
QProgressBar* moveit_setup_assistant::DefaultCollisionsWidget::progress_bar_ [private] |
Definition at line 148 of file default_collisions_widget.h.
QLabel* moveit_setup_assistant::DefaultCollisionsWidget::progress_label_ [private] |
Definition at line 149 of file default_collisions_widget.h.
QTimer* moveit_setup_assistant::DefaultCollisionsWidget::update_timer_ [private] |
Definition at line 154 of file default_collisions_widget.h.