首页 > 其他 > 详细

torcs代码

时间:2016-01-06 20:18:39      阅读:140      评论:0      收藏:0      [点我收藏+]
/** Info returned by driver during the race */
typedef struct {
    tdble	steer;	    /**< Steer command [-1.0, 1.0]  */
    tdble	accelCmd;   /**< Accelerator command [0.0, 1.0] */
    tdble	brakeCmd;   /**< Brake command [0.0, 1.0] */
    tdble	clutchCmd;  /**< Clutch command [0.0, 1.0] */
    int		gear;  	    /**< [-1,6] for gear selection */
    int		raceCmd;    /**< command issued by the driver */
#define RM_CMD_NONE		0	/**< No race command */
#define RM_CMD_PIT_ASKED	1	/**< Race command: Pit asked */
    char	msg[4][32];     /**< 4 lines of 31 characters 0-1 from car 2-3 from race engine */
#define RM_MSG_LEN	31
    float	msgColor[4]; /**< RGBA of text */
    int		lightCmd;    /**< Lights command */
#define RM_LIGHT_HEAD1		0x00000001	/**< head light 1 */
#define RM_LIGHT_HEAD2		0x00000002	/**< head light 2 */
} tCarCtrl;

  

torcs代码

原文:http://www.cnblogs.com/Qwells/p/5075126.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!