odometrymessage.java
来自「卡耐基.梅隆大学的机器人仿真软件(Redhat linux 9下安装)」· Java 代码 · 共 30 行
JAVA
30 行
package Carmen;import IPC.*;/** Carmen OdometryHandler's message */public class OdometryMessage extends Message { /** robot pose at the center of the robot */ public double x, y, theta; /** commanded translational (m/s) and rotational (r/s) velocity */ public double tv, rv; /** robot acceleration (m/s^2) */ public double acceleration; private static final String CARMEN_ROBOT_ODOMETRY_NAME = "carmen_base_odometry"; private static final String CARMEN_ROBOT_ODOMETRY_FMT = "{double, double, double, double, double, double, double, string}"; /** Application module calls this to subscribe to OdometryMessage. * Application module must extend OdometryHandler. */ public static void subscribe(OdometryHandler handler) { subscribe(CARMEN_ROBOT_ODOMETRY_NAME, CARMEN_ROBOT_ODOMETRY_FMT, handler, OdometryMessage.class, "handle"); } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?