Commit 5f959225 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Add signal appliedConfigAtParam

parent a0bfae34
...@@ -137,6 +137,7 @@ namespace hpp { ...@@ -137,6 +137,7 @@ namespace hpp {
main->registerSlot("requestCreateJointGroup", this); main->registerSlot("requestCreateJointGroup", this);
main->registerSlot("getHppIIOPurl", this); main->registerSlot("getHppIIOPurl", this);
main->registerSlot("getSelectedJoint", jointTreeWidget_); main->registerSlot("getSelectedJoint", jointTreeWidget_);
main->registerSignal(SIGNAL(appliedConfigAtParam(int,double)), pathPlayer_);
ActionSearchBar* asb = main->actionSearchBar(); ActionSearchBar* asb = main->actionSearchBar();
JointAction* a; JointAction* a;
......
...@@ -300,6 +300,7 @@ namespace hpp { ...@@ -300,6 +300,7 @@ namespace hpp {
plugin_->client()->problem()->configAtParam ((short unsigned int)pathIndex()->value(),currentParam_); plugin_->client()->problem()->configAtParam ((short unsigned int)pathIndex()->value(),currentParam_);
plugin_->client()->robot()->setCurrentConfig (config.in()); plugin_->client()->robot()->setCurrentConfig (config.in());
gepetto::gui::MainWindow::instance()->requestApplyCurrentConfiguration(); gepetto::gui::MainWindow::instance()->requestApplyCurrentConfiguration();
emit appliedConfigAtParam (getCurrentPath(), currentParam_);
} }
inline double PathPlayer::sliderToLength(int v) const inline double PathPlayer::sliderToLength(int v) const
......
...@@ -48,6 +48,7 @@ namespace hpp { ...@@ -48,6 +48,7 @@ namespace hpp {
virtual void displayPath_impl (const std::string jointName); virtual void displayPath_impl (const std::string jointName);
signals: signals:
void displayPath_status (int progress); void displayPath_status (int progress);
void appliedConfigAtParam (int pid, double param);
private slots: private slots:
void pathIndexChanged (int i); void pathIndexChanged (int i);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment