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>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
  • Loading branch information
mkuri authored and kminoda committed Jan 6, 2023
1 parent 78d8dc8 commit c3ae527
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 c3ae527

Please sign in to comment.