10 QLabel *out_label =
new QLabel();
11 out_label->setTextInteractionFlags(Qt::TextSelectableByMouse);
12 QVBoxLayout *layout =
new QVBoxLayout();
13 out_label->setLayout(layout);
14 ui_.scrollArea->setWidget(out_label);
15 ui_.scrollArea->setWidgetResizable(
true);
17 connect(
ui_.cancel_btn_, SIGNAL(pressed()),
this, SLOT(
onCancel()));
18 connect(
ui_.build_yaml_btn_, SIGNAL(pressed()),
this, SLOT(
onSaveYAML()));
19 connect(
ui_.yaml_name_, SIGNAL(textChanged(QString)),
this, SLOT(
onTextChanged(QString)));
25 "/play_motion_builder_node/store_motion");
30 ui_.yaml_name_->setText(
"");
31 ui_.name_->setText(
"");
32 ui_.usage_->setText(
"");
33 ui_.description_->setText(
"");
38 ui_.yaml_name_->setText(QString::fromStdString(yaml_name));
42 const std::string &description)
44 ui_.name_->setText(QString::fromStdString(name));
45 ui_.usage_->setText(QString::fromStdString(usage));
46 ui_.description_->setText(QString::fromStdString(description));
56 ui_.build_yaml_btn_->setEnabled(!text.isEmpty());
61 QString file = QFileDialog::getSaveFileName(
this);
64 play_motion_builder_msgs::StoreMotion sm;
65 sm.request.file_path = file.toStdString();
66 sm.request.ros_name =
ui_.yaml_name_->text().toStdString();
67 sm.request.meta.name =
ui_.name_->text().toStdString();
68 sm.request.meta.usage =
ui_.usage_->text().toStdString();
69 sm.request.meta.description =
ui_.description_->text().toStdString();
ServiceClient serviceClient(const std::string &service_name, bool persistent=false, const M_string &header_values=M_string())
MotionProperties(QWidget *parent=0)
void init(ros::NodeHandle &nh)
bool call(MReq &req, MRes &res)
void motionStored(QString motion_name)
ros::ServiceClient store_client_
void loadYamlName(const std::string &yaml_name)
#define ROS_INFO_STREAM(args)
#define ROS_ERROR_STREAM(args)
void onTextChanged(const QString &text)
void loadMeta(const std::string &name, const std::string &usage, const std::string &description)