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

How to understand this part of code? #114

Open
wangx1996 opened this issue Apr 9, 2022 · 1 comment
Open

How to understand this part of code? #114

wangx1996 opened this issue Apr 9, 2022 · 1 comment

Comments

@wangx1996
Copy link

wangx1996 commented Apr 9, 2022

in livox_feature_extractor.cpp 497 colum

` // TODO: handle this case.
screen_out << "First point should be normal!!!" << std::endl;

                pt_info->pt_2d_img << 0.01, 0.01;
                pt_info->polar_dis_sq2 = 0.0001;
                add_mask_of_point( pt_info, e_pt_000 );
                //return 0;`

and column 588

if ( m_pts_info_vec[ split_idx[ val_index + 1 ] ].polar_dis_sq2 > 10000 ) { pt_angle_index = split_idx[ val_index + 1 ] - ( int ) ( internal_size * 0.20 ); scan_angle = atan2( m_pts_info_vec[ pt_angle_index ].pt_2d_img( 1 ), m_pts_info_vec[ pt_angle_index ].pt_2d_img( 0 ) ) * 57.3; scan_angle = scan_angle + 180.0; } else { pt_angle_index = split_idx[ val_index + 1 ] - ( int ) ( internal_size * 0.80 ); scan_angle = atan2( m_pts_info_vec[ pt_angle_index ].pt_2d_img( 1 ), m_pts_info_vec[ pt_angle_index ].pt_2d_img( 0 ) ) * 57.3; scan_angle = scan_angle + 180.0; }

@Fellowflyingsky
Copy link

in livox_feature_extractor.cpp 497 colum

` // TODO: handle this case. screen_out << "First point should be normal!!!" << std::endl;

                pt_info->pt_2d_img << 0.01, 0.01;
                pt_info->polar_dis_sq2 = 0.0001;
                add_mask_of_point( pt_info, e_pt_000 );
                //return 0;`

and column 588

if ( m_pts_info_vec[ split_idx[ val_index + 1 ] ].polar_dis_sq2 > 10000 ) { pt_angle_index = split_idx[ val_index + 1 ] - ( int ) ( internal_size * 0.20 ); scan_angle = atan2( m_pts_info_vec[ pt_angle_index ].pt_2d_img( 1 ), m_pts_info_vec[ pt_angle_index ].pt_2d_img( 0 ) ) * 57.3; scan_angle = scan_angle + 180.0; } else { pt_angle_index = split_idx[ val_index + 1 ] - ( int ) ( internal_size * 0.80 ); scan_angle = atan2( m_pts_info_vec[ pt_angle_index ].pt_2d_img( 1 ), m_pts_info_vec[ pt_angle_index ].pt_2d_img( 0 ) ) * 57.3; scan_angle = scan_angle + 180.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

2 participants