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

sotFeatureTask depends on sotTask, not sotAbstractTask

    ml::vector errorSIN cannot be plugged on
     taskSOUT (which is a sotVectorMultiBound),
    but can be plugged on
     errorSOUT (which is a ml::vector)
parent 4a849705
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <sot-core/debug.h> #include <sot-core/debug.h>
#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 <sot-core/task.h>
#include <dynamic-graph/pool.h> #include <dynamic-graph/pool.h>
using namespace std; using namespace std;
using namespace sot; using namespace sot;
...@@ -126,10 +127,10 @@ commandLine( const std::string& cmdLine, ...@@ -126,10 +127,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