CartesianImpedanceControllerConfigWidget.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QSettings>
4 #include <QWidget>
5 
6 #include <VirtualRobot/RobotNodeSet.h>
7 
10 
11 #include <RobotAPI/interface/units/RobotUnit/TaskSpaceActiveImpedanceControl.h>
12 #include <RobotAPI/libraries/RobotAPINJointControllerWidgets/ui_CartesianImpedanceControllerConfigWidget.h>
13 
14 namespace armarx
15 {
17  {
18  public:
19  CartesianImpedanceControllerConfigWidget(QWidget* parent = nullptr);
20 
21  void loadSettings(QSettings* settings, const QString& prefix = "");
22 
23  void saveSettings(QSettings* settings, const QString& prefix = "");
24 
28 
29  NJointTaskSpaceImpedanceControlConfigPtr
30  readFullCFG(const Eigen::Vector3f& targPos, const Eigen::Quaternionf& targOri) const;
31  NJointTaskSpaceImpedanceControlRuntimeConfig readRuntimeCFG() const;
32  std::tuple<Eigen::VectorXf, Eigen::VectorXf, Eigen::VectorXf> readNullspaceCFG() const;
33 
34  ///if null -> send buttons deactivated
35  void setController(const NJointTaskSpaceImpedanceControlInterfacePrx& prx);
36  void setRNS(const VirtualRobot::RobotNodeSetPtr& rns);
37 
38  Ui::CartesianImpedanceControllerConfigWidget ui;
46 
47  private:
48  NJointTaskSpaceImpedanceControlInterfacePrx _controller;
49  VirtualRobot::RobotNodeSetPtr _rns;
50  };
51 } // namespace armarx
SpinBoxToVector.h
armarx::CartesianImpedanceControllerConfigWidget::jointDnull
SpinBoxToVector< QDoubleSpinBox > jointDnull
Definition: CartesianImpedanceControllerConfigWidget.h:45
armarx::CartesianImpedanceControllerConfigWidget::setController
void setController(const NJointTaskSpaceImpedanceControlInterfacePrx &prx)
if null -> send buttons deactivated
Definition: CartesianImpedanceControllerConfigWidget.cpp:189
armarx::CartesianImpedanceControllerConfigWidget
Definition: CartesianImpedanceControllerConfigWidget.h:16
armarx::CartesianImpedanceControllerConfigWidget::CartesianImpedanceControllerConfigWidget
CartesianImpedanceControllerConfigWidget(QWidget *parent=nullptr)
Definition: CartesianImpedanceControllerConfigWidget.cpp:24
armarx::CartesianImpedanceControllerConfigWidget::dxyz
SpinBoxToVector< QDoubleSpinBox, 3 > dxyz
Definition: CartesianImpedanceControllerConfigWidget.h:41
armarx::CartesianImpedanceControllerConfigWidget::saveSettings
void saveSettings(QSettings *settings, const QString &prefix="")
Definition: CartesianImpedanceControllerConfigWidget.cpp:85
armarx::CartesianImpedanceControllerConfigWidget::jointValues
SpinBoxToVector< QDoubleSpinBox > jointValues
Definition: CartesianImpedanceControllerConfigWidget.h:43
armarx::CartesianImpedanceControllerConfigWidget::loadSettings
void loadSettings(QSettings *settings, const QString &prefix="")
Definition: CartesianImpedanceControllerConfigWidget.cpp:70
armarx::CartesianImpedanceControllerConfigWidget::drpy
SpinBoxToVector< QDoubleSpinBox, 3 > drpy
Definition: CartesianImpedanceControllerConfigWidget.h:42
armarx::CartesianImpedanceControllerConfigWidget::readNullspaceCFG
std::tuple< Eigen::VectorXf, Eigen::VectorXf, Eigen::VectorXf > readNullspaceCFG() const
Definition: CartesianImpedanceControllerConfigWidget.cpp:145
armarx::CartesianImpedanceControllerConfigWidget::on_pushButtonNullspaceSend_clicked
void on_pushButtonNullspaceSend_clicked()
Definition: CartesianImpedanceControllerConfigWidget.cpp:155
armarx::CartesianImpedanceControllerConfigWidget::on_pushButtonNullspaceUpdateJoints_clicked
void on_pushButtonNullspaceUpdateJoints_clicked()
Definition: CartesianImpedanceControllerConfigWidget.cpp:167
armarx::SpinBoxToVector< QDoubleSpinBox, 3 >
armarx::CartesianImpedanceControllerConfigWidget::jointKnull
SpinBoxToVector< QDoubleSpinBox > jointKnull
Definition: CartesianImpedanceControllerConfigWidget.h:44
SpinBoxToPose.h
armarx::Quaternion< float, 0 >
armarx::CartesianImpedanceControllerConfigWidget::kxyz
SpinBoxToVector< QDoubleSpinBox, 3 > kxyz
Definition: CartesianImpedanceControllerConfigWidget.h:39
armarx::CartesianImpedanceControllerConfigWidget::on_pushButtonSettingsSend_clicked
void on_pushButtonSettingsSend_clicked()
Definition: CartesianImpedanceControllerConfigWidget.cpp:178
armarx::CartesianImpedanceControllerConfigWidget::setRNS
void setRNS(const VirtualRobot::RobotNodeSetPtr &rns)
Definition: CartesianImpedanceControllerConfigWidget.cpp:195
armarx::CartesianImpedanceControllerConfigWidget::readFullCFG
NJointTaskSpaceImpedanceControlConfigPtr readFullCFG(const Eigen::Vector3f &targPos, const Eigen::Quaternionf &targOri) const
Definition: CartesianImpedanceControllerConfigWidget.cpp:100
armarx::CartesianImpedanceControllerConfigWidget::ui
Ui::CartesianImpedanceControllerConfigWidget ui
Definition: CartesianImpedanceControllerConfigWidget.h:38
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::CartesianImpedanceControllerConfigWidget::krpy
SpinBoxToVector< QDoubleSpinBox, 3 > krpy
Definition: CartesianImpedanceControllerConfigWidget.h:40
armarx::CartesianImpedanceControllerConfigWidget::readRuntimeCFG
NJointTaskSpaceImpedanceControlRuntimeConfig readRuntimeCFG() const
Definition: CartesianImpedanceControllerConfigWidget.cpp:125