Function cras::getField(const ::cras::Cloud&, const ::std::string&)
Defined in File cloud.hpp
Function Documentation
-
const ::sensor_msgs::msg::PointField &cras::getField(const ::cras::Cloud &cloud, const ::std::string &fieldName)
Return the sensor_msgs::msg::PointField with the given name.
- Parameters:
cloud – [in] Cloud to extract the field from.
fieldName – [in] Name of the field.
- Throws:
std::runtime_error – if the field doesn’t exist.
- Returns:
Reference to the field.