Skip to content

Commit

Permalink
revert raw vehicle cmd converter
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed Nov 28, 2023
1 parent 2558a4b commit 9739cca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vehicle/raw_vehicle_cmd_converter/src/csv_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ double CSVLoader::clampValue(
const double max_value = *std::max_element(ranges.begin(), ranges.end());
const double min_value = *std::min_element(ranges.begin(), ranges.end());
if (val < min_value || max_value < val) {
std::cerr << "Input " << name << ": " << val
<< " is out of range. use closest value. Please update the conversion map"
std::cerr << "Input " << name << ": " << val << " is out of range. use closest value."
<< std::endl;
return std::min(std::max(val, min_value), max_value);
}
Expand Down

0 comments on commit 9739cca

Please sign in to comment.