Skip to content

Commit

Permalink
Merge pull request #159 from BCLab-UNM/hotfix_invalid_start_when_cube…
Browse files Browse the repository at this point in the history
…_visible

Hotfix for invalid start when cube visible
  • Loading branch information
gmfricke authored Dec 13, 2017
2 parents ff62906 + ac36469 commit 9c818f3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/behaviours/src/ROSAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,14 @@ void sendDriveCommand(double left, double right)
*************************/

void targetHandler(const apriltags_ros::AprilTagDetectionArray::ConstPtr& message) {


// Don't pass April tag data to the logic controller if the robot is not in autonomous mode.
// This is to make sure autonomous behaviours are not triggered while the rover is in manual mode.
if(currentMode == 0 || currentMode == 1)
{
return;
}

if (message->detections.size() > 0) {
vector<Tag> tags;

Expand Down

0 comments on commit 9c818f3

Please sign in to comment.