Skip to content

Commit

Permalink
Correct type of prefer_forward penalty member variable
Browse files Browse the repository at this point in the history
The setter and the configuration treat this value as a double, this
makes sense when comparing it to the other costs. However, it was stored
as a bool. This seems like a typo.
  • Loading branch information
contradict committed Nov 21, 2013
1 parent 53716b0 commit d53339f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class PreferForwardCostFunction: public base_local_planner::TrajectoryCostFuncti
}

private:
bool penalty_;
double penalty_;
};

} /* namespace base_local_planner */
Expand Down

0 comments on commit d53339f

Please sign in to comment.