Go to the documentation of this file.
42 #include <QAbstractItemModel>
44 #include <QStyledItemDelegate>
52 class MotionPlanningFrameJointsUI;
77 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
78 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
79 Qt::ItemFlags
flags(
const QModelIndex& index)
const override;
80 QVariant
data(
const QModelIndex& index,
int role)
const override;
81 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const override;
82 bool setData(
const QModelIndex& index,
const QVariant& value,
int role)
override;
105 const QModelIndex& index)
const;
119 bool eventFilter(QObject* target, QEvent* event)
override;
134 const robot_interaction::InteractionHandlerPtr& start_state_handler,
135 const robot_interaction::InteractionHandlerPtr& goal_state_handler);
155 Ui::MotionPlanningFrameJointsUI*
ui_;
164 Eigen::JacobiSVD<Eigen::MatrixXd>
svd_;
195 void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
196 QWidget*
createEditor(QWidget* parent,
const QStyleOptionViewItem& option,
const QModelIndex& index)
const override;
198 void setEditorData(QWidget* editor,
const QModelIndex& index)
const override;
199 void setModelData(QWidget* editor, QAbstractItemModel* model,
const QModelIndex& index)
const override;
230 return QSlider::value() *
maximum_ / QSlider::maximum();
239 using QSlider::setMaximum;
240 using QSlider::setMinimum;
241 using QSlider::setRange;
JogSlider(QWidget *parent=nullptr)
void triggered(double value)
int rowCount(const QModelIndex &parent=QModelIndex()) const override
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
Qt::ItemFlags flags(const QModelIndex &index) const override
const moveit::core::JointModelGroup * getJointModelGroup() const
const moveit::core::JointModelGroup * jmg_
void setUnit(RevoluteUnit unit)
void setTimerInterval(int ms)
moveit::core::RobotState robot_state_
void setResolution(unsigned int resolution)
moveit::core::RobotState & getRobotState()
int columnCount(const QModelIndex &parent=QModelIndex()) const override
void onEditorDestroyed(QObject *) const
void mouseReleaseEvent(QMouseEvent *event) override
ProgressBarDelegate(QWidget *parent=nullptr)
MOVEIT_CLASS_FORWARD(InteractionHandler)
const moveit::core::VariableBounds * getVariableBounds(const moveit::core::JointModel *jm, const QModelIndex &index) const
retrieve the variable bounds referenced by variable index
QVariant data(const QModelIndex &index, int role) const override
void updateRobotState(const moveit::core::RobotState &state)
call this on any external change of the RobotState
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
int timerInterval() const
void setMaximum(double value)
bool setData(const QModelIndex &index, const QVariant &value, int role) override
Slider that jumps back to zero.
JMGItemModel(const moveit::core::RobotState &robot_state, const std::string &group_name, QObject *parent=nullptr)
Delegate to show the joint value as with a progress bar indicator between min and max.
void mousePressEvent(QMouseEvent *event) override
void timerEvent(QTimerEvent *event) override
const moveit::core::RobotState & getRobotState() const
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
const moveit::core::JointModel * getJointModel(const QModelIndex &index) const
retrieve the JointModel corresponding to the variable referenced by index
void setEditorData(QWidget *editor, const QModelIndex &index) const override
visualization
Author(s): Ioan Sucan
, Dave Coleman , Sachin Chitta
autogenerated on Sat Mar 15 2025 02:27:25