MCPcopy Create free account
hub / github.com/colmap/colmap / AddSensor

Method AddSensor

src/colmap/sensor/rig.cc:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void Rig::AddSensor(sensor_t sensor_id,
41 const std::optional<Rigid3d>& sensor_from_rig) {
42 THROW_CHECK_GE(NumSensors(), 1)
43 << "The reference sensor needs to be added first before other sensors.";
44 THROW_CHECK(!HasSensor(sensor_id))
45 << "Sensor (" << sensor_id.type << ", " << sensor_id.id
46 << ") is inserted twice into the rig";
47 sensors_from_rig_.emplace(sensor_id, sensor_from_rig);
48}
49
50std::ostream& operator<<(std::ostream& stream, const Rig& rig) {
51 const std::string rig_id_str =

Callers 14

TESTFunction · 0.80
TEST_PFunction · 0.80
SynthesizeDatasetFunction · 0.80
CreateTestDatabaseFunction · 0.80
ReadRigsBinaryFunction · 0.80
ReadRigsTextFunction · 0.80
ApplyRigConfigFunction · 0.80
MergeMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
ReadRigRowsFunction · 0.80

Calls

no outgoing calls

Tested by 6

TESTFunction · 0.64
TEST_PFunction · 0.64
CreateTestDatabaseFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64