10 fromIce(Eigen::Vector2f& e,
const Ice::FloatSeq& ice)
17 toIce(
const Eigen::Vector2f& e, Ice::FloatSeq& ice)
19 ice = std::vector<float>({e(0, 0), e(1, 0)});
23 fromIce(Eigen::Vector2d& e,
const Ice::DoubleSeq& ice)
30 toIce(
const Eigen::Vector2d& e, Ice::DoubleSeq& ice)
32 ice = std::vector<double>({e(0, 0), e(1, 0)});
36 fromIce(Eigen::Vector3f& e,
const Ice::FloatSeq& ice)
39 e << ice[0], ice[1], ice[2];
43 toIce(
const Eigen::Vector3f& e, Ice::FloatSeq& ice)
45 ice = std::vector<float>({e(0, 0), e(1, 0), e(2, 0)});
49 fromIce(Eigen::Vector3d& e,
const Ice::DoubleSeq& ice)
52 e << ice[0], ice[1], ice[2];
56 toIce(
const Eigen::Vector3d& e, Ice::DoubleSeq& ice)
58 ice = std::vector<double>({e(0, 0), e(1, 0), e(2, 0)});
62 fromIce(Eigen::Vector4f& e,
const Ice::FloatSeq& ice)
65 e << ice[0], ice[1], ice[2], ice[3];
69 toIce(
const Eigen::Vector4f& e, Ice::FloatSeq& ice)
71 ice = std::vector<float>({e(0, 0), e(1, 0), e(2, 0), e(3, 0)});
75 fromIce(Eigen::Vector4d& e,
const Ice::DoubleSeq& ice)
78 e << ice[0], ice[1], ice[2], ice[3];
82 toIce(
const Eigen::Vector4d& e, Ice::DoubleSeq& ice)
84 ice = std::vector<double>({e(0, 0), e(1, 0), e(2, 0), e(3, 0)});
91 for (
const auto& x : ice)
96 e << ice[0][0], ice[0][1], ice[1][0], ice[1][1], ice[2][0], ice[2][1];
102 ice = std::vector<std::vector<float>>(
103 {{e(0, 0), e(0, 1)}, {e(1, 0), e(1, 1)}, {e(2, 0), e(2, 1)}});
107 fromIce(Eigen::Matrix2d& e,
const armarx::DoubleSeqSeq& ice)
110 for (
const auto& x : ice)
115 e << ice[0][0], ice[0][1], ice[1][0], ice[1][1], ice[2][0], ice[2][1];
119 toIce(
const Eigen::Matrix2d& e, armarx::DoubleSeqSeq& ice)
121 ice = std::vector<std::vector<double>>(
122 {{e(0, 0), e(0, 1)}, {e(1, 0), e(1, 1)}, {e(2, 0), e(2, 1)}});
129 for (
const auto& x : ice)
134 e << ice[0][0], ice[0][1], ice[0][2], ice[1][0], ice[1][1], ice[1][2], ice[2][0], ice[2][1],
141 ice = std::vector<std::vector<float>>({{e(0, 0), e(0, 1), e(0, 2)},
142 {e(1, 0), e(1, 1), e(1, 2)},
143 {e(2, 0), e(2, 1), e(2, 2)}});
147 fromIce(Eigen::Matrix3d& e,
const armarx::DoubleSeqSeq& ice)
150 for (
const auto& x : ice)
155 e << ice[0][0], ice[0][1], ice[0][2], ice[1][0], ice[1][1], ice[1][2], ice[2][0], ice[2][1],
160 toIce(
const Eigen::Matrix3d& e, armarx::DoubleSeqSeq& ice)
162 ice = std::vector<std::vector<double>>({{e(0, 0), e(0, 1), e(0, 2)},
163 {e(1, 0), e(1, 1), e(1, 2)},
164 {e(2, 0), e(2, 1), e(2, 2)}});
171 for (
const auto& x : ice)
175 e << ice[0][0], ice[0][1], ice[0][2], ice[0][3], ice[1][0], ice[1][1], ice[1][2], ice[1][3],
176 ice[2][0], ice[2][1], ice[2][2], ice[2][3], ice[3][0], ice[3][1], ice[3][2], ice[3][3];
182 ice = std::vector<std::vector<float>>({{e(0, 0), e(0, 1), e(0, 2), e(0, 3)},
183 {e(1, 0), e(1, 1), e(1, 2), e(1, 3)},
184 {e(2, 0), e(2, 1), e(2, 2), e(2, 3)},
185 {e(3, 0), e(3, 1), e(3, 2), e(3, 3)}});
189 fromIce(Eigen::Matrix4d& e,
const armarx::DoubleSeqSeq& ice)
192 for (
const auto& x : ice)
196 e << ice[0][0], ice[0][1], ice[0][2], ice[0][3], ice[1][0], ice[1][1], ice[1][2], ice[1][3],
197 ice[2][0], ice[2][1], ice[2][2], ice[2][3], ice[3][0], ice[3][1], ice[3][2], ice[3][3];
201 toIce(
const Eigen::Matrix4d& e, armarx::DoubleSeqSeq& ice)
203 ice = std::vector<std::vector<double>>({{e(0, 0), e(0, 1), e(0, 2), e(0, 3)},
204 {e(1, 0), e(1, 1), e(1, 2), e(1, 3)},
205 {e(2, 0), e(2, 1), e(2, 2), e(2, 3)},
206 {e(3, 0), e(3, 1), e(3, 2), e(3, 3)}});
215 for (
const auto& x : ice)
220 e << ice[0][0], ice[0][1], ice[1][0], ice[1][1], ice[2][0], ice[2][1];
226 ice = std::vector<std::vector<float>>(
227 {{e(0, 0), e(0, 1)}, {e(1, 0), e(1, 1)}, {e(2, 0), e(2, 1)}});
234 for (
const auto& x : ice)
239 e << ice[0][0], ice[0][1], ice[1][0], ice[1][1], ice[2][0], ice[2][1];
245 ice = std::vector<std::vector<double>>(
246 {{e(0, 0), e(0, 1)}, {e(1, 0), e(1, 1)}, {e(2, 0), e(2, 1)}});
253 for (
const auto& x : ice)
258 e << ice[0][0], ice[0][1], ice[0][2], ice[1][0], ice[1][1], ice[1][2], ice[2][0], ice[2][1],
265 ice = std::vector<std::vector<float>>({{e(0, 0), e(0, 1), e(0, 2)},
266 {e(1, 0), e(1, 1), e(1, 2)},
267 {e(2, 0), e(2, 1), e(2, 2)}});
274 for (
const auto& x : ice)
279 e << ice[0][0], ice[0][1], ice[0][2], ice[1][0], ice[1][1], ice[1][2], ice[2][0], ice[2][1],
286 ice = std::vector<std::vector<double>>({{e(0, 0), e(0, 1), e(0, 2)},
287 {e(1, 0), e(1, 1), e(1, 2)},
288 {e(2, 0), e(2, 1), e(2, 2)}});
295 for (
const auto& x : ice)
299 e << ice[0][0], ice[0][1], ice[0][2], ice[0][3], ice[1][0], ice[1][1], ice[1][2], ice[1][3],
300 ice[2][0], ice[2][1], ice[2][2], ice[2][3], ice[3][0], ice[3][1], ice[3][2], ice[3][3];
306 ice = std::vector<std::vector<float>>({{e(0, 0), e(0, 1), e(0, 2), e(0, 3)},
307 {e(1, 0), e(1, 1), e(1, 2), e(1, 3)},
308 {e(2, 0), e(2, 1), e(2, 2), e(2, 3)},
309 {e(3, 0), e(3, 1), e(3, 2), e(3, 3)}});
316 for (
const auto& x : ice)
320 e << ice[0][0], ice[0][1], ice[0][2], ice[0][3], ice[1][0], ice[1][1], ice[1][2], ice[1][3],
321 ice[2][0], ice[2][1], ice[2][2], ice[2][3], ice[3][0], ice[3][1], ice[3][2], ice[3][3];
327 ice = std::vector<std::vector<double>>({{e(0, 0), e(0, 1), e(0, 2), e(0, 3)},
328 {e(1, 0), e(1, 1), e(1, 2), e(1, 3)},
329 {e(2, 0), e(2, 1), e(2, 2), e(2, 3)},
330 {e(3, 0), e(3, 1), e(3, 2), e(3, 3)}});