17 #ifndef CARTOGRAPHER_SENSOR_INTERNAL_DISPATCHABLE_H_ 18 #define CARTOGRAPHER_SENSOR_INTERNAL_DISPATCHABLE_H_ 26 template <
typename DataType>
43 template <
typename DataType>
45 const std::string &sensor_id,
const DataType &
data) {
46 return common::make_unique<Dispatchable<DataType>>(sensor_id,
data);
52 #endif // CARTOGRAPHER_SENSOR_INTERNAL_DISPATCHABLE_H_
void AddToTrajectoryBuilder(mapping::TrajectoryBuilderInterface *const trajectory_builder) override
UniversalTimeScaleClock::time_point Time
const std::string sensor_id_
const DataType & data() const
Dispatchable(const std::string &sensor_id, const DataType &data)
common::Time GetTime() const override
virtual void AddSensorData(const std::string &sensor_id, const sensor::TimedPointCloudData &timed_point_cloud_data)=0
std::unique_ptr< Dispatchable< DataType > > MakeDispatchable(const std::string &sensor_id, const DataType &data)