Example #1
0
 /**
  * send a goal to the gameServer
  *
  * @param pose 2-D continuous pose in same convention as used by MazeGraphics
  */
 public void setGoal(RealPose2D pose) {
   if (!connectedToServer) return;
   String goalString =
       "GOAL " + m_myName + " " + pose.getX() + " " + pose.getY() + " " + pose.getTh();
   cc.send(m_serverName, goalString);
 }
Example #2
0
 /**
  * Send the pose to the gameServer
  *
  * @param pose 2-D continuous pose in same convention as used by MazeGraphics
  */
 public void setPose(RealPose2D pose) {
   if (!connectedToServer) return;
   String poseString =
       "POSE " + m_myName + " " + pose.getX() + " " + pose.getY() + " " + pose.getTh();
   cc.send(m_serverName, poseString);
 }