#include "component.hpp"
#include <stdexcept>
namespace asw {
Envelope make_envelope(const std::string& topic, std::int64_t timestamp_ms) {
  if (topic != "/vehicle/pose" && topic != "/planning/path" && topic != "/control/command") throw std::invalid_argument("unsupported topic");
  return {topic, timestamp_ms, true};
}
}
