Skip to content
Snippets Groups Projects
Commit 168eafdd authored by Francesco Morsillo's avatar Francesco Morsillo
Browse files

Fix a bug in FeaturePoint6dRelative

  Signal errordotSOUT was created twice. This raised an exception
  at instance creation.
parent 5cd795a5
No related branches found
No related tags found
No related merge requests found
......@@ -86,9 +86,6 @@ class SOTFEATUREPOINT6DRELATIVE_EXPORT FeaturePoint6dRelative
/*! Derivative of the reference position. */
dg::SignalPtr< MatrixHomogeneous,int > dotpositionReferenceSIN;
/*! @} */
/*! The derivative of the error.*/
dg::SignalTimeDependent<ml::Vector,int> errordotSOUT;
/*! @} */
using FeaturePoint6d::getReference;
......
......@@ -53,9 +53,6 @@ FeaturePoint6dRelative( const string& pointName )
,articularJacobianReferenceSIN( NULL,"sotFeaturePoint6dRelative("+name+")::input(matrix)::JqRef" )
,dotpositionSIN(NULL,"sotFeaturePoint6dRelative("+name+")::input(matrixHomo)::dotposition" )
,dotpositionReferenceSIN(NULL,"sotFeaturePoint6dRelative("+name+")::input(matrixHomo)::dotpositionRef" )
,errordotSOUT(boost::bind(&FeaturePoint6dRelative::computeErrorDot,this,_1,_2),
selectionSIN,
"sotFeatureAbstract("+name+")::output(vector)::errordot" )
{
jacobianSOUT.addDependency( positionReferenceSIN );
jacobianSOUT.addDependency( articularJacobianReferenceSIN );
......@@ -69,6 +66,9 @@ FeaturePoint6dRelative( const string& pointName )
signalRegistration( dotpositionSIN <<
dotpositionReferenceSIN <<
errordotSOUT );
errordotSOUT.setFunction (boost::bind (&FeaturePoint6dRelative::computeErrordot,
this, _1, _2));
initCommands();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment