Skip to content

Commit

Permalink
Merge pull request #3 from hardik-kgp/patch-1
Browse files Browse the repository at this point in the history
bug fixes for vision node
  • Loading branch information
Snehal-Reddy authored Sep 7, 2019
2 parents ff05723 + 451543f commit 6abedf6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions vision_comm/src/vision_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,7 @@ int main(int argc, char **argv)
if (camera_bool[detection.camera_id()] == 1)
{
for(int i = 0; i < 6; i++)
{
//if(is_yellow_bot_detected[i] == 1)
msg.robots_yellow.push_back(yellow_bots[i]);
max_yellow_bot_confidence[i] = 0;
}
for(int i = 0; i < 6; i++)
is_yellow_bot_detected[i] = 0;
max_yellow_bot_confidence[i] = 0,is_yellow_bot_detected[i] = 0;
//msg.robots_yellow = yellow_bots;
}
//Yellow robot info:
Expand All @@ -164,7 +158,14 @@ int main(int argc, char **argv)

}
if(camera_bool[detection.camera_id()] == 1)
{
{
for(int i = 0; i < 6; i++)
{
//if(is_yellow_bot_detected[i] == 1)
msg.robots_yellow.push_back(yellow_bots[i]);

}

cout << "ball size "<<msg.balls.size() << endl;
chatter_pub.publish(msg);
for(int i = 0; i < num_cam; i++)
Expand Down Expand Up @@ -199,4 +200,4 @@ int main(int argc, char **argv)
}

return 0;
}
}

0 comments on commit 6abedf6

Please sign in to comment.