Consistency fix: trajectory_index -> trajectory_id. (#360)

master
Holger Rapp 2017-06-26 10:02:51 +02:00 committed by GitHub
parent 7f4f78e451
commit 9464b38320
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ using Color = std::array<uint8_t, 3>;
struct PointsBatch {
PointsBatch() {
origin = Eigen::Vector3f::Zero();
trajectory_index = 0;
trajectory_id = 0;
}
// Time at which this batch has been acquired.
@ -49,8 +49,8 @@ struct PointsBatch {
// is unknown.
string frame_id;
// Trajectory index that produced this point.
int trajectory_index;
// Trajectory ID that produced this point.
int trajectory_id;
// Geometry of the points in a metric frame.
std::vector<Eigen::Vector3f> points;

View File

@ -79,7 +79,7 @@ class TrajectoryConnectivity {
proto::TrajectoryConnectivity ToProto(
std::vector<std::vector<int>> connected_components);
// Returns the connected component containing 'trajectory_index'.
// Returns the connected component containing 'trajectory_id'.
proto::TrajectoryConnectivity::ConnectedComponent FindConnectedComponent(
const cartographer::mapping::proto::TrajectoryConnectivity&
trajectory_connectivity,