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

Get pointcloud data from ros messages fail!!! Input pointcloud field names: [8]: x, y, z, normal_x, normal_y, normal_z, intensity, curvature, #228

Open
exDawn opened this issue Dec 23, 2024 · 0 comments

Comments

@exDawn
Copy link

exDawn commented Dec 23, 2024

系统环境:ubuntu22.04,ros noetic
图片

在跑degenerate_seq_00.bag序列时,显示如下错误:
r3livebug1

分析:
这里代码显示消息的第四个字段是intensity
但实际输出是x, y, z, normal_x, normal_y, normal_z, intensity, curvature,
实际上intensity是第七个字段,应该是版本的原因

解决:
msg->fields[ 3 ].name == "intensity"改成msg->fields[ 6 ].name == "intensity"
msg->fields[ 4 ].name == "normal_x"改成msg->fields[ 3 ].name == "normal_x"

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