Skip to content

Commit

Permalink
fix(raw_vehicle_cmd_converter): fix column index for map validation (a…
Browse files Browse the repository at this point in the history
…utowarefoundation#2450)

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>

Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com>
  • Loading branch information
mkuri authored and 1222-takeshi committed Dec 9, 2022
1 parent 84f3802 commit 385861d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vehicle/raw_vehicle_cmd_converter/src/csv_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ bool CSVLoader::validateMap(const Map & map, const bool is_col_decent)
const auto & vec = map.at(i);
const auto & prev_vec = map.at(i - 1);
// validate row data
for (size_t j = 1; j < vec.size(); j++) {
for (size_t j = 0; j < vec.size(); j++) {
// validate col
if (vec.at(j) <= prev_vec.at(j) && is_col_decent) {
invalid_index_pair = std::make_pair(i, j);
Expand Down

0 comments on commit 385861d

Please sign in to comment.