@@ -33,7 +33,7 @@ using namespace franky;
33
33
SequentialExecutor callback_executor;
34
34
35
35
template <int dims>
36
- std::string vecToStr (const Vector<dims> &vec) {
36
+ std::string vecToStr (const Eigen:: Vector<double , dims> &vec) {
37
37
std::stringstream ss;
38
38
ss << " [" ;
39
39
for (size_t i = 0 ; i < dims; i++) {
@@ -419,10 +419,10 @@ PYBIND11_MODULE(_franky, m) {
419
419
py::class_<Affine>(m, " Affine" )
420
420
.def (py::init<const Eigen::Matrix<double , 4 , 4 > &>(),
421
421
" transformation_matrix" _a = Eigen::Matrix<double , 4 , 4 >::Identity ())
422
- .def (py::init<>([](const Vector< 3 > &translation, const Vector< 4 > &quaternion) {
422
+ .def (py::init<>([](const Eigen::Vector3d &translation, const Eigen::Vector4d &quaternion) {
423
423
return Affine ().fromPositionOrientationScale (
424
- translation, Eigen::Quaterniond (quaternion), Vector< 3 > ::Ones ());
425
- }), " translation" _a = Vector< 3 > {0 , 0 , 0 }, " quaternion" _a = Vector< 4 > {0 , 0 , 0 , 1 })
424
+ translation, Eigen::Quaterniond (quaternion), Eigen::Vector3d ::Ones ());
425
+ }), " translation" _a = Eigen::Vector3d {0 , 0 , 0 }, " quaternion" _a = Eigen::Vector4d {0 , 0 , 0 , 1 })
426
426
.def (py::init<const Affine &>()) // Copy constructor
427
427
.def (py::self * py::self)
428
428
.def_property_readonly (" inverse" , [](const Affine &affine) { return affine.inverse (); })
@@ -444,7 +444,8 @@ PYBIND11_MODULE(_franky, m) {
444
444
if (t.size () != 2 )
445
445
throw std::runtime_error (" Invalid state!" );
446
446
return Affine ().fromPositionOrientationScale (
447
- t[0 ].cast <Vector<3 >>(), Eigen::Quaterniond (t[1 ].cast <Vector<4 >>()), Vector<3 >::Ones ());
447
+ t[0 ].cast <Eigen::Vector3d>(),
448
+ Eigen::Quaterniond (t[1 ].cast <Eigen::Vector4d>()), Eigen::Vector3d::Ones ());
448
449
}
449
450
));
450
451
0 commit comments