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

failed to find match for field 'intensity' 'ring' #37

Open
DamonMIN opened this issue May 3, 2019 · 3 comments
Open

failed to find match for field 'intensity' 'ring' #37

DamonMIN opened this issue May 3, 2019 · 3 comments

Comments

@DamonMIN
Copy link

DamonMIN commented May 3, 2019

@toams789. I obtained one bag file with the 'kitti2bag'. When this bag file was employed to LOAM_velodyne(https://github.com/laboshinl/loam_velodyne), the program failed with an error "failed to find match for field 'intensity' 'failed to find match for field 'ring'". Is there the intensity and ring field in the sensor_msgs::PointCloud2 in the bag file generated by 'kitti2bag'?

@ulterzlw
Copy link
Collaborator

ulterzlw commented Jul 26, 2019

Hi, the field 'intensity' is treated as the field 'i'.
You could replace PointField('i', 12, PointField.FLOAT32, 1) with PointField('intensity', 12, PointField.FLOAT32, 1) by yourself to fix the problem.
As for the field 'ring', there is no 'ring' info in the origin KITTI bin file. So the bag file doesn't contain the field 'ring' as velodyne driver does.

@hmellor
Copy link

hmellor commented Nov 23, 2020

@DamonMIN, A ring channel has been added in a custom version of kitti2bag in the LIO-SAM repository. Here is a link to the relevant chunk of code.

Although there is a casting issue in the current code which I have fixed in my pull request (which may be implemented by the time you read this)

@mr-abramenko
Copy link

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

4 participants