Skip to content
Snippets Groups Projects
Commit 2f93b32f authored by Jerome Dias's avatar Jerome Dias
Browse files

[fix] Add bracket to get vector size.

Some brackets to get vector size are missing. This can cause a build error
in some case.
parent 299d6c91
No related branches found
No related tags found
1 merge request!142[fix] Add bracket to get vector size.
Pipeline #200343 failed
Pipeline: LidarView

#200344

    ......@@ -198,7 +198,7 @@ Eigen::Isometry3d ParseCalibFile(const std::string &filename)
    // Transform Tr_velo_to_cam into a 4x4 matrix using by adding a 1 as the bottom-right
    // element and 0's elsewhere.
    assert(R0_rect.size == 9 && "R0_rect has an incorrect size, it should contain 3x3 elements");
    assert(R0_rect.size() == 9 && "R0_rect has an incorrect size, it should contain 3x3 elements");
    std::vector<double>::iterator it = R0_rect.begin();
    R0_rect.insert(it+3, 0);
    it = R0_rect.begin();
    ......@@ -210,7 +210,7 @@ Eigen::Isometry3d ParseCalibFile(const std::string &filename)
    // Transform Tr_velo_to_cam into a 4x4 matrix using by adding a 1 as the bottom-right
    // element and 0's elsewhere.
    assert(Tr_velo_to_cam.size == 12 && "Tr_velo_to_cam has an incorrect size, it should contain 3x4 elements");
    assert(Tr_velo_to_cam.size() == 12 && "Tr_velo_to_cam has an incorrect size, it should contain 3x4 elements");
    Tr_velo_to_cam.insert(Tr_velo_to_cam.end(), { 0, 0, 0, 1});
    Eigen::Matrix<double, 4, 4, Eigen::RowMajor> lidar2cam(Tr_velo_to_cam.data());
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment