54 ui_.path_color->setColor(Qt::green);
58 p.setColor(QPalette::Background, Qt::white);
62 QPalette p3(
ui_.status->palette());
63 p3.setColor(QPalette::Text, Qt::red);
64 ui_.status->setPalette(p3);
66 connect(
ui_.selecttopic, SIGNAL(clicked()),
this, SLOT(
SelectTopic()));
67 connect(
ui_.topic, SIGNAL(editingFinished()),
this, SLOT(
TopicEdited()));
68 connect(
ui_.path_color, SIGNAL(colorEdited(
const QColor&)),
this,
82 if (!topic.
name.empty())
84 ui_.topic->setText(QString::fromStdString(topic.
name));
91 std::string topic =
ui_.topic->text().trimmed().toStdString();
121 for (
unsigned int i = 0; i < path->poses.size(); i++)
124 stamped_point.
stamp = path->header.stamp;
127 path->poses[i].pose.position.y, 0);
166 QColor old_color =
ui_.path_color->color();
167 QColor color = old_color.dark(200);
185 node[
"topic"] >> topic;
186 ui_.topic->setText(topic.c_str());
193 node[
"color"] >> color;
194 QColor qcolor(color.c_str());
196 ui_.path_color->setColor(qcolor);
202 std::string topic =
ui_.topic->text().toStdString();
203 emitter << YAML::Key <<
"topic" << YAML::Value << topic;
205 std::string color =
ui_.path_color->color().name().toStdString();
206 emitter << YAML::Key <<
"color" << YAML::Value << color;