For more infomation about this bug, visit <https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=618>
Summary: Constructor of Mixture does not work with vector of
Gaussian*
Product: BFL
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: bfl [..] ...
ReportedBy: tinne [dot] delaet [..] ...
CC: bfl [..] ...
Estimated Hours: 0.0
The constructor of Mixture does not work with a vector of Gaussian*, nor with
any specialization of abstract class Pdf<T>.
vector<Gaussian*> componentVec(2);
Mixture<ColumnVector> mixtureVec(componentVec);
This results in the following error when compiling:
/Volumes/Untitled/bfl/tests/pdf_test.cpp: In member function 'void
PdfTest::testMixture()':
/Volumes/Untitled/bfl/tests/pdf_test.cpp:990: error: no matching function
for call to
'BFL::Mixture<MatrixWrapper::ColumnVector>::Mixture(std::vector<BFL::Gaussian*,
std::allocator
BFL::Mixture<T>::Mixture(const BFL::Mixture<T>&) [with T =
MatrixWrapper::ColumnVector]
/Volumes/Untitled/bfl/src/pdf/mixture.h:192: note:
BFL::Mixture<T>::Mixture(std::vector<BFL::Pdf
std::allocator<BFL::Pdf
/Volumes/Untitled/bfl/src/pdf/mixture.h:175: note:
BFL::Mixture<T>::Mixture(unsigned int) [with T = MatrixWrapper::ColumnVector]
make[2]: *** [tests/CMakeFiles/test_pdf.dir/pdf_test.o] Error 1
make[1]: *** [tests/CMakeFiles/test_pdf.dir/all] Error 2
make: *** [all] Error 2
The constructor only works with a vector of Pdf<T>*:
vector<Pdf
Tinne
[Bug 618] Constructor of Mixture does not work with vector of Ga
For more infomation about this bug, visit <https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=618>
Tinne De Laet <tinne [dot] delaet [..] ...> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Tinne De Laet <tinne [dot] delaet [..] ...> 2009-02-05 10:55:29 ---
Forgot to change the bug to fixed :(
[Bug 618] Constructor of Mixture does not work with vector of Ga
For more infomation about this bug, visit <https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=618>
--- Comment #2 from Tinne De Laet <tinne [dot] delaet [..] ...> 2009-02-05 10:54:53 ---
Patch applied in revision 29903:
Sending src/pdf/mixture.h
Sending tests/pdf_test.cpp
Transmitting file data ..
Committed revision 29903.
[Bug 618] Constructor of Mixture does not work with vector of Ga
For more infomation about this bug, visit <https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=618>
Tinne De Laet <tinne [dot] delaet [..] ...> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|bfl [..] ... |tinne [dot] delaet [..] ...en.b
| |e
--- Comment #1 from Tinne De Laet <tinne [dot] delaet [..] ...> 2009-02-05 10:53:28 ---
Created an attachment (id=382)
--> (https://www.fmtc.be/bugzilla/orocos/attachment.cgi?id=382)
this patch changes the constructor with vector of Pdf<T*>
This patch solves the bug by using an extra template for Pdf<T>* !
Tinne