RoboCup-SSL / grSim

RoboCup Small Size Robot Soccer Simulator
https://ssl.robocup.org/league-software/
Other
130 stars 133 forks source link

Use `grSim_RobotReplacement::yellowteam` to determine the team #156

Closed YuseiNaito closed 3 years ago

YuseiNaito commented 3 years ago

Identify the Bug

153

Description of the Change

With this change, teams are now judged by grSim_commannds::isteamyellow instead of grSim_RobotReplacement::yellowteam when RobotReplacement. So I changed to using grSim_RobotReplacement::yellowteam.

Alternate Designs

Possible Drawbacks

Systems that support the current version will not be able to RobotReplacement correctly.

Verification Process

I confirmed that the yellow id robot was repositioned with this code in our system.

    ssl_protos::grsim::Packet packet{};
    auto r = packet.mutable_replacement()->add_robots();
    r->set_id(id);
    r->set_x(x);
    r->set_y(y);
    r->set_dir(dir);
    r->set_yellowteam(true);

    connection_->send(packet.SerializeAsString());

Release Notes

N/A