#ifndef CANSEND_H #define CANSEND_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class CanSender { private: int s_; struct ifreq ifr_; public: CanSender(); ~CanSender(); void init(const std::string& device); void send(char* can_frame); static std::string makeCmd(const unsigned char data[], const size_t& size, const std::string& id); static std::vector splitString(const std::string& str); }; #endif // CANSEND_H