33 #include <QApplication> 34 #include <QVBoxLayout> 40 int main(
int argc,
char *argv[])
42 ros::init(argc, argv,
"static_transform_publisher_gui",
45 QApplication
app(argc, argv);
47 QWidget *
main =
new QWidget();
48 QVBoxLayout *l =
new QVBoxLayout();
53 l->addWidget(tf_widget);
58 QObject::connect(frames, SIGNAL(parentFrameChanged(QString)),
59 tf_pub, SLOT(setParentFrame(QString)));
60 QObject::connect(frames, SIGNAL(childFrameChanged(QString)),
61 tf_pub, SLOT(setChildFrame(QString)));
63 QObject::connect(tf_widget, SIGNAL(positionChanged(Eigen::Vector3d)),
64 tf_pub, SLOT(setPosition(Eigen::Vector3d)));
65 QObject::connect(tf_widget, SIGNAL(quaternionChanged(Eigen::Quaterniond)),
66 tf_pub, SLOT(setQuaternion(Eigen::Quaterniond)));
68 main->setWindowTitle(
"static transform publisher");
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)