⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sonarmessage.java

📁 卡耐基.梅隆大学的机器人仿真软件(Redhat linux 9下安装)
💻 JAVA
字号:
package Carmen;import IPC.*;/**  Carmen SonarHandler's message   */public class SonarMessage extends Message {  public int num_sonars;  /** width of sonar cone */  public double sensor_angle;     /** for each sonar, the range reading */  public double range[];  /** location of each sonar with respect to robot as a Point */  public Point sonar_positions[];  /** robot state: point location */  public Point robot_pose;  public double tv;  public double rv;  private static final String CARMEN_ROBOT_SONAR_NAME = "robot_sonar";  private static final String CARMEN_ROBOT_SONAR_FMT =    "{int,double,<double:1>,<{double,double,double}:1>,{double,double,double},double,double,double,string}";  /** Application module calls this to subscribe to SonarMessage.   *  Application module must extend SonarHandler   */  public static void subscribe(SonarHandler handler) {    subscribe(CARMEN_ROBOT_SONAR_NAME, CARMEN_ROBOT_SONAR_FMT, handler, 	      SonarMessage.class, "handle");  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -