You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was there a reason for not including the intensity field?
In the meantime, I think I can work around this as follows:
modifier.setPointCloud2Fields(
4, // Number of fields
"x", 1, sensor_msgs::msg::PointField::FLOAT32, // x field
"y", 1, sensor_msgs::msg::PointField::FLOAT32, // y field
"z", 1, sensor_msgs::msg::PointField::FLOAT32, // z field
"intensity", 1, sensor_msgs::msg::PointField::FLOAT32 // intensity field
);
Thank you for your time.
The text was updated successfully, but these errors were encountered:
Bug report
Required Info:
Steps to reproduce issue
Expected behavior
Intensity field is created with correct datatype as expected.
Actual behavior
The code crashes with a runtime error.
Additional information
The intensity field is claimed to be supported here:
common_interfaces/sensor_msgs/msg/PointField.msg
Line 12 in c0c0bc5
Yet it is not implemented here:
common_interfaces/sensor_msgs/include/sensor_msgs/impl/point_cloud2_iterator.hpp
Line 195 in c0c0bc5
Was there a reason for not including the intensity field?
In the meantime, I think I can work around this as follows:
Thank you for your time.
The text was updated successfully, but these errors were encountered: