Commit b3d8bc6f authored by oscar's avatar oscar

提交测试

parent d1972dec
......@@ -309,19 +309,19 @@ void map_kalman_update_batch( pybind11::array_t<float> Z,
MAKE SURE ALL INPUTS ARE TWO-DIM NUMPY ARRAY
*/
void kalman_update_batch(pybind11::array_t<float> Z,
pybind11::array_t<float> X, // in-place update
pybind11::array_t<float> P, // in-place update
pybind11::array_t<float> HX,
void kalman_update_batch(float** Z,
float** X, // in-place update
float** P, // in-place update
float** HX,
const int bs,
const int ns,
const int no
) {
pybind11::buffer_info ZZ = Z.request();
pybind11::buffer_info XX = X.request();
pybind11::buffer_info PP = P.request();
pybind11::buffer_info HXX = HX.request();
//pybind11::buffer_info ZZ = Z.request();
//pybind11::buffer_info XX = X.request();
//pybind11::buffer_info PP = P.request();
//pybind11::buffer_info HXX = HX.request();
int size_ZZ = ZZ.shape[0] * ZZ.shape[1] * sizeof(float);
int size_XX = XX.shape[0] * XX.shape[1] * sizeof(float);
......
......@@ -57,6 +57,7 @@ void TrackingRos::Init(ros::NodeHandle& nh)
mat(1, 1) = 0.4f;
float* f = mat.data();
f[3] = 0.5f;
float m[4];
memcpy(m, f, sizeof(float) * 4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment