PoseWidget.cpp
Go to the documentation of this file.
1#include "PoseWidget.h"
2
3namespace armarx
4{
5 void
7 {
8 const auto adr = reinterpret_cast<std::intptr_t>(this);
9 layer.add(viz::Pose("Pose_" + std::to_string(adr))
10 .position(_ui.doubleSpinBoxTX->value(),
11 _ui.doubleSpinBoxTY->value(),
12 _ui.doubleSpinBoxTZ->value())
13 .orientation(_ui.doubleSpinBoxRX->value(),
14 _ui.doubleSpinBoxRY->value(),
15 _ui.doubleSpinBoxRZ->value())
16 .scale(_ui.doubleSpinBoxScale->value()));
17 }
18} // namespace armarx
void addTo(viz::Layer &layer) const override
Definition PoseWidget.cpp:6
DerivedT & orientation(Eigen::Quaternionf const &ori)
Definition ElementOps.h:152
DerivedT & scale(Eigen::Vector3f scale)
Definition ElementOps.h:254
This file offers overloads of toIce() and fromIce() functions for STL container types.
void add(ElementT const &element)
Definition Layer.h:31