}
i++;
}
+ // Initial point is part of the first segment.
+ jvo["paths"][j][0][3] = jvo["paths"][j][1][3];
+ jvo["paths"][j][0][4] = jvo["paths"][j][1][4];
+ // Goal point is part of the last segment.
+ jvo["paths"][j][i - 1][3] = jvo["paths"][j][i - 2][3];
+ jvo["paths"][j][i - 1][4] = jvo["paths"][j][i - 2][4];
+ // --
jvo["costs"][j] = path.back().cc();
j++;
}
}
i++;
}
+ // Initial point is part of the first segment.
+ jvo["path"][0][3] = jvo["path"][1][3];
+ jvo["path"][0][4] = jvo["path"][1][4];
+ // Goal point is part of the last segment.
+ jvo["path"][i - 1][3] = jvo["path"][i - 2][3];
+ jvo["path"][i - 1][4] = jvo["path"][i - 2][4];
+ // --
jvo["costs"][j] = this->_path.back()->cc();
- j++;
jvo["goal_cc"] = this->_goal.cc(); // TODO remove, use the following
jvo["cost"] = this->path_cost();
jvo["time"] = this->scnt();