20 #include "Eigen/Geometry" 21 #include "cartographer/sensor/proto/configuration.pb.h" 22 #include "cartographer/transform/proto/transform.pb.h" 25 #include "glog/logging.h" 32 proto::Configuration::Sensor sensor;
33 sensor.set_frame_id(parameter_dictionary->
GetString(
"frame_id"));
41 proto::Configuration configuration;
42 for (
auto& sensor_parameter_dictionary :
44 *configuration.add_sensor() =
51 const sensor::proto::Configuration& sensor_configuration) {
52 for (
const auto& sensor : sensor_configuration.sensor()) {
53 if (sensor.frame_id() == frame_id) {
61 const string& frame_id,
62 const sensor::proto::Configuration& sensor_configuration) {
63 for (
const auto& sensor : sensor_configuration.sensor()) {
64 if (sensor.frame_id() == frame_id) {
68 LOG(FATAL) <<
"No configuration found for sensor with frame ID '" << frame_id
proto::Configuration::Sensor CreateSensorConfiguration(common::LuaParameterDictionary *const parameter_dictionary)
std::vector< std::unique_ptr< LuaParameterDictionary > > GetArrayValuesAsDictionaries()
proto::Configuration CreateConfiguration(common::LuaParameterDictionary *const parameter_dictionary)
transform::Rigid3d GetTransformToTracking(const string &frame_id, const sensor::proto::Configuration &sensor_configuration)
string GetString(const string &key)
std::unique_ptr< LuaParameterDictionary > GetDictionary(const string &key)
bool IsEnabled(const string &frame_id, const sensor::proto::Configuration &sensor_configuration)