Skip to content
Snippets Groups Projects
Commit 991fd170 authored by Francois Bleibel's avatar Francois Bleibel
Browse files

Ported commit 53ef45d27b77 from StackOfTasks.

parent 0bbf6179
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
#include <sot-core/feature-task.h> #include <sot-core/feature-task.h>
#include <sot-core/exception-feature.h> #include <sot-core/exception-feature.h>
#include <dynamic-graph/pool.h> #include <dynamic-graph/pool.h>
#include <sot-core/task.h>
using namespace std; using namespace std;
using namespace sot; using namespace sot;
using namespace dynamicgraph; using namespace dynamicgraph;
...@@ -126,10 +128,10 @@ commandLine( const std::string& cmdLine, ...@@ -126,10 +128,10 @@ commandLine( const std::string& cmdLine,
if( cmdArgs.good() ) if( cmdArgs.good() )
{ {
std::string name; cmdArgs >> name; std::string name; cmdArgs >> name;
TaskAbstract& task = dynamic_cast< TaskAbstract & > (g_pool .getEntity( name )); Task& task = dynamic_cast< Task & > (g_pool .getEntity( name ));
taskPtr = &task; taskPtr = &task;
errorSIN.plug( &task.taskSOUT ); errorSIN.plug( &task.errorSOUT );
jacobianSIN.plug( &task.jacobianSOUT ); jacobianSIN.plug( &task.jacobianSOUT );
activationSIN.plug( &task.featureActivationSOUT ); activationSIN.plug( &task.featureActivationSOUT );
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment