Consistency fix: trajectory_index -> trajectory_id. (#360)
parent
7f4f78e451
commit
9464b38320
|
@ -35,7 +35,7 @@ using Color = std::array<uint8_t, 3>;
|
||||||
struct PointsBatch {
|
struct PointsBatch {
|
||||||
PointsBatch() {
|
PointsBatch() {
|
||||||
origin = Eigen::Vector3f::Zero();
|
origin = Eigen::Vector3f::Zero();
|
||||||
trajectory_index = 0;
|
trajectory_id = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Time at which this batch has been acquired.
|
// Time at which this batch has been acquired.
|
||||||
|
@ -49,8 +49,8 @@ struct PointsBatch {
|
||||||
// is unknown.
|
// is unknown.
|
||||||
string frame_id;
|
string frame_id;
|
||||||
|
|
||||||
// Trajectory index that produced this point.
|
// Trajectory ID that produced this point.
|
||||||
int trajectory_index;
|
int trajectory_id;
|
||||||
|
|
||||||
// Geometry of the points in a metric frame.
|
// Geometry of the points in a metric frame.
|
||||||
std::vector<Eigen::Vector3f> points;
|
std::vector<Eigen::Vector3f> points;
|
||||||
|
|
|
@ -79,7 +79,7 @@ class TrajectoryConnectivity {
|
||||||
proto::TrajectoryConnectivity ToProto(
|
proto::TrajectoryConnectivity ToProto(
|
||||||
std::vector<std::vector<int>> connected_components);
|
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(
|
proto::TrajectoryConnectivity::ConnectedComponent FindConnectedComponent(
|
||||||
const cartographer::mapping::proto::TrajectoryConnectivity&
|
const cartographer::mapping::proto::TrajectoryConnectivity&
|
||||||
trajectory_connectivity,
|
trajectory_connectivity,
|
||||||
|
|
Loading…
Reference in New Issue