Function cras::getField(::cras::Cloud&, const ::std::string&)
Defined in File cloud.hpp
Function Documentation
-
::sensor_msgs::msg::PointField &cras::getField(::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.