Skip to content

Commit 61ef595

Browse files
authored
Merge pull request #37 from osrf/init_gymkhana_score
Initialize gymkhana score to large number
2 parents 9913253 + 308298b commit 61ef595

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vorc_gazebo/src/gymkhana_scoring_plugin.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717

1818
#include "vorc_gazebo/gymkhana_scoring_plugin.hh"
19+
#include <limits>
1920

2021
/////////////////////////////////////////////////
2122
GymkhanaScoringPlugin::GymkhanaScoringPlugin()
@@ -63,6 +64,10 @@ void GymkhanaScoringPlugin::Update()
6364
{
6465
this->ScoringPlugin::SetScore(this->blackboxScore);
6566
}
67+
else
68+
{
69+
this->ScoringPlugin::SetScore(std::numeric_limits<double>::max());
70+
}
6671
}
6772

6873
/////////////////////////////////////////////////

0 commit comments

Comments
 (0)