Skip to content

Commit

Permalink
Merged in issue_14 (pull request #69)
Browse files Browse the repository at this point in the history
Fix issue #14
  • Loading branch information
caguero committed Nov 3, 2015
2 parents cbed5d0 + f80d30c commit 3164819
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutorials/tutorial_3/TeamControllerPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ void TeamControllerPlugin::Update(const gazebo::common::UpdateInfo &_info)

std::string dstAddress;

if (this->Host() == "192.168.2.1")
dstAddress = "192.168.2.2";
if (this->Host() == "192.168.3.1")
dstAddress = "192.168.3.2";
else
dstAddress = "192.168.2.1";
dstAddress = "192.168.3.1";

// Send a unicast message.
if (!this->SendTo("Unicast data", dstAddress))
Expand Down

0 comments on commit 3164819

Please sign in to comment.