| 68 | protected: |
| 69 | template <class MsgType> |
| 70 | void CheckMessage(typename MsgType::ConstPtr msg) { |
| 71 | if (msg == nullptr) { |
| 72 | throw std::runtime_error( |
| 73 | "Wrong sensor model: '" + std::string(EnumCast::enumToString(GetCameraModel())) + |
| 74 | "' for cameras! It's incompatible with the type of ros message to load in!"); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | static void RefineImgMsgWrongEncoding(const sensor_msgs::Image::Ptr &msg); |
| 79 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected