Classes | |
class | ColoringPointsProcessor |
class | CountingPointsProcessor |
class | FakeFileWriter |
class | FileWriter |
class | FixedRatioSamplingPointsProcessor |
class | ForwardingProtoStreamWriter |
class | FrameIdFilteringPointsProcessor |
class | HybridGridPointsProcessor |
class | Image |
class | InMemoryProtoStreamReader |
class | IntensityToColorPointsProcessor |
class | MinMaxRangeFiteringPointsProcessor |
class | NullPointsProcessor |
class | OutlierRemovingPointsProcessor |
struct | PaintSubmapSlicesResult |
class | PcdWritingPointsProcessor |
class | PlyWritingPointsProcessor |
struct | PointsBatch |
class | PointsProcessor |
class | PointsProcessorPipelineBuilder |
class | ProbabilityGridPointsProcessor |
class | ProtoStreamDeserializer |
class | ProtoStreamReader |
class | ProtoStreamReaderInterface |
class | ProtoStreamWriter |
class | ProtoStreamWriterInterface |
class | StreamFileWriter |
struct | SubmapSlice |
struct | SubmapTexture |
struct | SubmapTextures |
class | XRayPointsProcessor |
class | XyzWriterPointsProcessor |
Typedefs | |
using | FileWriterFactory = std::function< std::unique_ptr< FileWriter >(const std::string &filename)> |
using | FloatColor = std::array< float, 3 > |
using | PoseToPixelFunction = std::function< Eigen::Array2i(const transform::Rigid3d &pose)> |
using | Uint8Color = std::array< uint8, 3 > |
using | UniqueCairoPtr = std::unique_ptr< cairo_t, void(*)(cairo_t *)> |
using | UniqueCairoSurfacePtr = std::unique_ptr< cairo_surface_t, void(*)(cairo_surface_t *)> |
Functions | |
mapping::ProbabilityGrid | CreateProbabilityGrid (const double resolution) |
mapping::proto::PoseGraph | DeserializePoseGraphFromFile (const std::string &file_name) |
std::unique_ptr< Image > | DrawProbabilityGrid (const mapping::ProbabilityGrid &probability_grid, Eigen::Array2i *offset) |
UniqueCairoSurfacePtr | DrawTexture (const std::vector< char > &intensity, const std::vector< char > &alpha, const int width, const int height, std::vector< uint32_t > *const cairo_data) |
void | DrawTrajectory (const mapping::proto::Trajectory &trajectory, const FloatColor &color, const PoseToPixelFunction &pose_to_pixel, cairo_surface_t *surface) |
void | FillSubmapSlice (const ::cartographer::transform::Rigid3d &global_submap_pose, const ::cartographer::mapping::proto::Submap &proto, SubmapSlice *const submap_slice) |
uint8 | FloatComponentToUint8 (float c) |
FloatColor | GetColor (int id) |
UniqueCairoPtr | MakeUniqueCairoPtr (cairo_t *surface) |
UniqueCairoSurfacePtr | MakeUniqueCairoSurfacePtr (cairo_surface_t *surface) |
void | MigrateStreamFormatToVersion1 (cartographer::io::ProtoStreamReaderInterface *const input, cartographer::io::ProtoStreamWriterInterface *const output) |
PaintSubmapSlicesResult | PaintSubmapSlices (const std::map<::cartographer::mapping::SubmapId, SubmapSlice > &submaps, const double resolution) |
void | RegisterBuiltInPointsProcessors (const std::vector< mapping::proto::Trajectory > &trajectories, const FileWriterFactory &file_writer_factory, PointsProcessorPipelineBuilder *builder) |
template<typename PointsProcessorType > | |
void | RegisterFileWritingPointsProcessor (const FileWriterFactory &file_writer_factory, PointsProcessorPipelineBuilder *const builder) |
template<typename PointsProcessorType > | |
void | RegisterFileWritingPointsProcessorWithTrajectories (const std::vector< mapping::proto::Trajectory > &trajectories, const FileWriterFactory &file_writer_factory, PointsProcessorPipelineBuilder *const builder) |
template<typename PointsProcessorType > | |
void | RegisterPlainPointsProcessor (PointsProcessorPipelineBuilder *const builder) |
void | RemovePoints (std::unordered_set< int > to_remove, PointsBatch *batch) |
FloatColor | ToFloatColor (const Uint8Color &color) |
Uint8Color | ToUint8Color (const FloatColor &color) |
float | Uint8ComponentToFloat (uint8 c) |
SubmapTexture::Pixels | UnpackTextureData (const std::string &compressed_cells, const int width, const int height) |
void | WritePbStream (const mapping::PoseGraph &pose_graph, const std::vector< mapping::proto::TrajectoryBuilderOptionsWithSensorIds > &trajectory_builder_options, ProtoStreamWriterInterface *const writer) |
Variables | |
constexpr cairo_format_t | kCairoFormat = CAIRO_FORMAT_ARGB32 |
static constexpr int | kMappingStateSerializationFormatVersion = 1 |
using cartographer::io::FileWriterFactory = typedef std::function<std::unique_ptr<FileWriter>(const std::string& filename)> |
Definition at line 66 of file file_writer.h.
using cartographer::io::FloatColor = typedef std::array<float, 3> |
using cartographer::io::PoseToPixelFunction = typedef std::function<Eigen::Array2i(const transform::Rigid3d& pose)> |
Definition at line 29 of file draw_trajectories.h.
using cartographer::io::Uint8Color = typedef std::array<uint8, 3> |
using cartographer::io::UniqueCairoPtr = typedef std::unique_ptr<cairo_t, void (*)(cairo_t*)> |
using cartographer::io::UniqueCairoSurfacePtr = typedef std::unique_ptr<cairo_surface_t, void (*)(cairo_surface_t*)> |
mapping::ProbabilityGrid cartographer::io::CreateProbabilityGrid | ( | const double | resolution | ) |
Definition at line 150 of file probability_grid_points_processor.cc.
mapping::proto::PoseGraph cartographer::io::DeserializePoseGraphFromFile | ( | const std::string & | file_name | ) |
Definition at line 39 of file proto_stream_deserializer.cc.
std::unique_ptr< Image > cartographer::io::DrawProbabilityGrid | ( | const mapping::ProbabilityGrid & | probability_grid, |
Eigen::Array2i * | offset | ||
) |
Definition at line 127 of file probability_grid_points_processor.cc.
UniqueCairoSurfacePtr cartographer::io::DrawTexture | ( | const std::vector< char > & | intensity, |
const std::vector< char > & | alpha, | ||
const int | width, | ||
const int | height, | ||
std::vector< uint32_t > *const | cairo_data | ||
) |
Definition at line 158 of file submap_painter.cc.
void cartographer::io::DrawTrajectory | ( | const mapping::proto::Trajectory & | trajectory, |
const FloatColor & | color, | ||
const PoseToPixelFunction & | pose_to_pixel, | ||
cairo_surface_t * | surface | ||
) |
Definition at line 25 of file draw_trajectories.cc.
void cartographer::io::FillSubmapSlice | ( | const ::cartographer::transform::Rigid3d & | global_submap_pose, |
const ::cartographer::mapping::proto::Submap & | proto, | ||
SubmapSlice *const | submap_slice | ||
) |
Definition at line 110 of file submap_painter.cc.
|
inline |
FloatColor cartographer::io::GetColor | ( | int | id | ) |
UniqueCairoPtr cartographer::io::MakeUniqueCairoPtr | ( | cairo_t * | surface | ) |
UniqueCairoSurfacePtr cartographer::io::MakeUniqueCairoSurfacePtr | ( | cairo_surface_t * | surface | ) |
void cartographer::io::MigrateStreamFormatToVersion1 | ( | cartographer::io::ProtoStreamReaderInterface *const | input, |
cartographer::io::ProtoStreamWriterInterface *const | output | ||
) |
Definition at line 146 of file serialization_format_migration.cc.
PaintSubmapSlicesResult cartographer::io::PaintSubmapSlices | ( | const std::map<::cartographer::mapping::SubmapId, SubmapSlice > & | submaps, |
const double | resolution | ||
) |
Definition at line 62 of file submap_painter.cc.
void cartographer::io::RegisterBuiltInPointsProcessors | ( | const std::vector< mapping::proto::Trajectory > & | trajectories, |
const FileWriterFactory & | file_writer_factory, | ||
PointsProcessorPipelineBuilder * | builder | ||
) |
Definition at line 79 of file points_processor_pipeline_builder.cc.
void cartographer::io::RegisterFileWritingPointsProcessor | ( | const FileWriterFactory & | file_writer_factory, |
PointsProcessorPipelineBuilder *const | builder | ||
) |
Definition at line 51 of file points_processor_pipeline_builder.cc.
void cartographer::io::RegisterFileWritingPointsProcessorWithTrajectories | ( | const std::vector< mapping::proto::Trajectory > & | trajectories, |
const FileWriterFactory & | file_writer_factory, | ||
PointsProcessorPipelineBuilder *const | builder | ||
) |
Definition at line 65 of file points_processor_pipeline_builder.cc.
void cartographer::io::RegisterPlainPointsProcessor | ( | PointsProcessorPipelineBuilder *const | builder | ) |
Definition at line 40 of file points_processor_pipeline_builder.cc.
void cartographer::io::RemovePoints | ( | std::unordered_set< int > | to_remove, |
PointsBatch * | batch | ||
) |
Definition at line 22 of file points_batch.cc.
|
inline |
|
inline |
|
inline |
SubmapTexture::Pixels cartographer::io::UnpackTextureData | ( | const std::string & | compressed_cells, |
const int | width, | ||
const int | height | ||
) |
Definition at line 140 of file submap_painter.cc.
void cartographer::io::WritePbStream | ( | const mapping::PoseGraph & | pose_graph, |
const std::vector< mapping::proto::TrajectoryBuilderOptionsWithSensorIds > & | trajectory_builder_options, | ||
ProtoStreamWriterInterface *const | writer | ||
) |
Definition at line 193 of file mapping_state_serialization.cc.
constexpr cairo_format_t cartographer::io::kCairoFormat = CAIRO_FORMAT_ARGB32 |
|
static |
Definition at line 27 of file mapping_state_serialization.h.