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
If we set grSim_commannds::isteamyellow, we can do RobotReplacement correctly.
This may be resolved with the migrate to the new standard protocol.
Possible Drawbacks
Systems that support the current version will not be able to RobotReplacement correctly.
Verification Process
I confirmed that the yellowid 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());
Identify the Bug
153
Description of the Change
With this change, teams are now judged by
grSim_commannds::isteamyellow
instead ofgrSim_RobotReplacement::yellowteam
when RobotReplacement. So I changed to usinggrSim_RobotReplacement::yellowteam
.Alternate Designs
grSim_commannds::isteamyellow
, we can doRobotReplacement
correctly.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.Release Notes
N/A