Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu 22.04 段错误 #139

Open
iceriver97 opened this issue Nov 19, 2024 · 0 comments
Open

ubuntu 22.04 段错误 #139

iceriver97 opened this issue Nov 19, 2024 · 0 comments

Comments

@iceriver97
Copy link

出错代码部分如下:


bool YawCalib::GetYawSegs(const DataTable &sample_x, const DataTable &sample_y, std::vector<DataTable> &samples_yaw){
    
    BSpline bspline_x = BSpline::Builder(sample_x).degree(bspine_degree_).smoothing(BSpline::Smoothing::PSPLINE).alpha(0.03).build();
    BSpline bspline_y = BSpline::Builder(sample_y).degree(bspine_degree_).smoothing(BSpline::Smoothing::PSPLINE).alpha(0.03).build();

    int discarded_nums = int(pose_num_ * 0.05);
    DataTable tmp_yaw;
    int last_t = 0;
    double last_yaw = 0;
    std::cout << "discarded_nums: " << discarded_nums << std::endl;
    for (int i = discarded_nums; i < pose_num_ - discarded_nums; i += time_gap_)
    {
        DenseVector t(1);
        t(0) = i;        
        std::cout << "i: " << i <<  std::endl;
        double dx = bspline_x.evalJacobian(t)(0, 0);

环境: g++ 9.5.0 / g++ 11.3 / g++ 12.3 + Eigen 3.4.0 都是一样的在 double dx = bspline_x.evalJacobian(t)(0, 0); 出现了段错误。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant