forked from ShunyaoWang/quadruped_locomotion
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
1,436 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
control_panel/include/rqt_control_panel_plugin/twst_plugin_ui.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
#include "twst_plugin_ui.h" | ||
|
||
twst_plugin_ui::twst_plugin_ui(QObject *parent) | ||
: QAbstractItemModel(parent) | ||
{ | ||
} | ||
|
||
QVariant twst_plugin_ui::headerData(int section, Qt::Orientation orientation, int role) const | ||
{ | ||
// FIXME: Implement me! | ||
} | ||
|
||
bool twst_plugin_ui::setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role) | ||
{ | ||
if (value != headerData(section, orientation, role)) { | ||
// FIXME: Implement me! | ||
emit headerDataChanged(orientation, section, section); | ||
return true; | ||
} | ||
return false; | ||
} | ||
|
||
QModelIndex twst_plugin_ui::index(int row, int column, const QModelIndex &parent) const | ||
{ | ||
// FIXME: Implement me! | ||
} | ||
|
||
QModelIndex twst_plugin_ui::parent(const QModelIndex &index) const | ||
{ | ||
// FIXME: Implement me! | ||
} | ||
|
||
int twst_plugin_ui::rowCount(const QModelIndex &parent) const | ||
{ | ||
if (!parent.isValid()) | ||
return 0; | ||
|
||
// FIXME: Implement me! | ||
} | ||
|
||
int twst_plugin_ui::columnCount(const QModelIndex &parent) const | ||
{ | ||
if (!parent.isValid()) | ||
return 0; | ||
|
||
// FIXME: Implement me! | ||
} | ||
|
||
QVariant twst_plugin_ui::data(const QModelIndex &index, int role) const | ||
{ | ||
if (!index.isValid()) | ||
return QVariant(); | ||
|
||
// FIXME: Implement me! | ||
return QVariant(); | ||
} | ||
|
||
bool twst_plugin_ui::setData(const QModelIndex &index, const QVariant &value, int role) | ||
{ | ||
if (data(index, role) != value) { | ||
// FIXME: Implement me! | ||
emit dataChanged(index, index, QVector<int>() << role); | ||
return true; | ||
} | ||
return false; | ||
} | ||
|
||
Qt::ItemFlags twst_plugin_ui::flags(const QModelIndex &index) const | ||
{ | ||
if (!index.isValid()) | ||
return Qt::NoItemFlags; | ||
|
||
return Qt::ItemIsEditable; // FIXME: Implement me! | ||
} | ||
|
||
bool twst_plugin_ui::insertRows(int row, int count, const QModelIndex &parent) | ||
{ | ||
beginInsertRows(parent, row, row + count - 1); | ||
// FIXME: Implement me! | ||
endInsertRows(); | ||
} | ||
|
||
bool twst_plugin_ui::insertColumns(int column, int count, const QModelIndex &parent) | ||
{ | ||
beginInsertColumns(parent, column, column + count - 1); | ||
// FIXME: Implement me! | ||
endInsertColumns(); | ||
} | ||
|
||
bool twst_plugin_ui::removeRows(int row, int count, const QModelIndex &parent) | ||
{ | ||
beginRemoveRows(parent, row, row + count - 1); | ||
// FIXME: Implement me! | ||
endRemoveRows(); | ||
} | ||
|
||
bool twst_plugin_ui::removeColumns(int column, int count, const QModelIndex &parent) | ||
{ | ||
beginRemoveColumns(parent, column, column + count - 1); | ||
// FIXME: Implement me! | ||
endRemoveColumns(); | ||
} |
45 changes: 45 additions & 0 deletions
45
control_panel/include/rqt_control_panel_plugin/twst_plugin_ui.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#ifndef TWST_PLUGIN_UI_H | ||
#define TWST_PLUGIN_UI_H | ||
|
||
#include <QAbstractItemModel> | ||
|
||
class twst_plugin_ui : public QAbstractItemModel | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit twst_plugin_ui(QObject *parent = nullptr); | ||
|
||
// Header: | ||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; | ||
|
||
bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role = Qt::EditRole) override; | ||
|
||
// Basic functionality: | ||
QModelIndex index(int row, int column, | ||
const QModelIndex &parent = QModelIndex()) const override; | ||
QModelIndex parent(const QModelIndex &index) const override; | ||
|
||
int rowCount(const QModelIndex &parent = QModelIndex()) const override; | ||
int columnCount(const QModelIndex &parent = QModelIndex()) const override; | ||
|
||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; | ||
|
||
// Editable: | ||
bool setData(const QModelIndex &index, const QVariant &value, | ||
int role = Qt::EditRole) override; | ||
|
||
Qt::ItemFlags flags(const QModelIndex& index) const override; | ||
|
||
// Add data: | ||
bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()) override; | ||
bool insertColumns(int column, int count, const QModelIndex &parent = QModelIndex()) override; | ||
|
||
// Remove data: | ||
bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()) override; | ||
bool removeColumns(int column, int count, const QModelIndex &parent = QModelIndex()) override; | ||
|
||
private: | ||
}; | ||
|
||
#endif // TWST_PLUGIN_UI_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+64 Bytes
(100%)
free_gait_action_loader/src/free_gait_action_loader/action_handling.pyc
Binary file not shown.
Binary file modified
BIN
+60 Bytes
(100%)
free_gait_action_loader/src/free_gait_action_loader/collection_handling.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.