Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
moveit_rviz_plugin::RemoteSolutionModel Class Reference

#include <remote_task_model.h>

Inheritance diagram for moveit_rviz_plugin::RemoteSolutionModel:
Inheritance graph
[legend]

Classes

struct  Data
 

Public Member Functions

int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
uint numFailed () const
 
uint numSuccessful () const
 
void processSolutionIDs (const std::vector< uint32_t > &successful, const std::vector< uint32_t > &failed, size_t num_failed, double total_compute_time)
 
 RemoteSolutionModel (QObject *parent=nullptr)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
void setSolutionData (uint32_t id, float cost, const QString &comment)
 
void sort (int column, Qt::SortOrder order) override
 
double totalComputeTime () const
 

Private Types

using DataList = std::list< Data >
 

Private Member Functions

bool isVisible (const Data &item) const
 
void processSolutionIDs (const std::vector< uint32_t > &ids, bool successful)
 
void sortInternal ()
 

Private Attributes

DataList data_
 
double max_cost_ = std::numeric_limits<double>::infinity()
 
size_t num_failed_ = 0
 
size_t num_failed_data_ = 0
 
int sort_column_ = -1
 
Qt::SortOrder sort_order_ = Qt::AscendingOrder
 
std::vector< DataList::iterator > sorted_
 
double total_compute_time_ = 0.0
 

Detailed Description

Model representing solutions of a remote task

Definition at line 127 of file remote_task_model.h.

Member Typedef Documentation

◆ DataList

Definition at line 144 of file remote_task_model.h.

Constructor & Destructor Documentation

◆ RemoteSolutionModel()

moveit_rviz_plugin::RemoteSolutionModel::RemoteSolutionModel ( QObject *  parent = nullptr)

Definition at line 463 of file remote_task_model.cpp.

Member Function Documentation

◆ columnCount()

int moveit_rviz_plugin::RemoteSolutionModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 469 of file remote_task_model.cpp.

◆ data()

QVariant moveit_rviz_plugin::RemoteSolutionModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

Definition at line 493 of file remote_task_model.cpp.

◆ headerData()

QVariant moveit_rviz_plugin::RemoteSolutionModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

Definition at line 473 of file remote_task_model.cpp.

◆ isVisible()

bool moveit_rviz_plugin::RemoteSolutionModel::isVisible ( const Data item) const
inlineprivate

Definition at line 659 of file remote_task_model.cpp.

◆ numFailed()

uint moveit_rviz_plugin::RemoteSolutionModel::numFailed ( ) const
inline

Definition at line 164 of file remote_task_model.h.

◆ numSuccessful()

uint moveit_rviz_plugin::RemoteSolutionModel::numSuccessful ( ) const
inline

Definition at line 163 of file remote_task_model.h.

◆ processSolutionIDs() [1/2]

void moveit_rviz_plugin::RemoteSolutionModel::processSolutionIDs ( const std::vector< uint32_t > &  ids,
bool  successful 
)
private

Definition at line 645 of file remote_task_model.cpp.

◆ processSolutionIDs() [2/2]

void moveit_rviz_plugin::RemoteSolutionModel::processSolutionIDs ( const std::vector< uint32_t > &  successful,
const std::vector< uint32_t > &  failed,
size_t  num_failed,
double  total_compute_time 
)

Definition at line 624 of file remote_task_model.cpp.

◆ rowCount()

int moveit_rviz_plugin::RemoteSolutionModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 465 of file remote_task_model.cpp.

◆ setSolutionData()

void moveit_rviz_plugin::RemoteSolutionModel::setSolutionData ( uint32_t  id,
float  cost,
const QString &  comment 
)

Definition at line 538 of file remote_task_model.cpp.

◆ sort()

void moveit_rviz_plugin::RemoteSolutionModel::sort ( int  column,
Qt::SortOrder  order 
)
override

Definition at line 563 of file remote_task_model.cpp.

◆ sortInternal()

void moveit_rviz_plugin::RemoteSolutionModel::sortInternal ( )
private

Definition at line 573 of file remote_task_model.cpp.

◆ totalComputeTime()

double moveit_rviz_plugin::RemoteSolutionModel::totalComputeTime ( ) const
inline

Definition at line 165 of file remote_task_model.h.

Member Data Documentation

◆ data_

DataList moveit_rviz_plugin::RemoteSolutionModel::data_
private

Definition at line 145 of file remote_task_model.h.

◆ max_cost_

double moveit_rviz_plugin::RemoteSolutionModel::max_cost_ = std::numeric_limits<double>::infinity()
private

Definition at line 153 of file remote_task_model.h.

◆ num_failed_

size_t moveit_rviz_plugin::RemoteSolutionModel::num_failed_ = 0
private

Definition at line 147 of file remote_task_model.h.

◆ num_failed_data_

size_t moveit_rviz_plugin::RemoteSolutionModel::num_failed_data_ = 0
private

Definition at line 146 of file remote_task_model.h.

◆ sort_column_

int moveit_rviz_plugin::RemoteSolutionModel::sort_column_ = -1
private

Definition at line 151 of file remote_task_model.h.

◆ sort_order_

Qt::SortOrder moveit_rviz_plugin::RemoteSolutionModel::sort_order_ = Qt::AscendingOrder
private

Definition at line 152 of file remote_task_model.h.

◆ sorted_

std::vector<DataList::iterator> moveit_rviz_plugin::RemoteSolutionModel::sorted_
private

Definition at line 154 of file remote_task_model.h.

◆ total_compute_time_

double moveit_rviz_plugin::RemoteSolutionModel::total_compute_time_ = 0.0
private

Definition at line 148 of file remote_task_model.h.


The documentation for this class was generated from the following files:


visualization
Author(s): Robert Haschke
autogenerated on Thu Feb 27 2025 03:39:51