亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? nclient.h

?? 卡內基梅隆大學(CMU)開發的移動機器人控制開發軟件包。可對多種機器人進行控制
?? H
?? 第 1 頁 / 共 5 頁
字號:
/* * refresh_laser_sensor - causes laser drawings in graphics to be erased */int refresh_laser_sensor(void);/* * refresh_client_graphics - causes drawings performed by any clients into *                           graphics window to be erased */int refresh_client_graphics(void);/******************************* *                             * * Miscellaneous robot control * *                             * *******************************//* * init_mask - initialize the sensor mask, Smask. */void init_mask(void);/* * init_sensors - initialize the sensor mask, Smask, and send it to the *                robot. It has no effect on the sensors  */int init_sensors(void);/* * place_robot - places the robot at configuration (x, y, th, tu).  *               In simulation mode, it will place both the Encoder-robot *               and the Actual-robot at this configuration. In real robot *               mode, it will call dp(x, y) and da(th, tu). *  * parameters: *    int x, y -- x-y position of the desired robot configuration *    int th, tu -- the steering and turret orientation of the robot *                  desired configuration */int place_robot(int x, int y, int th, int tu);/* * special_request - sends a special request (stored in user_send_buffer)  *                   to the robot and waits for the robot's response (which *                   will be stored in user_receive_buffer).  *  * parameters: *    unsigned char *user_send_buffer -- stores data to be sent to the robot *                                       Should be a pointer to an array of *                                       1024 elements *    unsigned char *user_receive_buffer -- stores data received from the robot *                                          Should be a pointer to an array of  *                                          1024 elements */int special_request(unsigned char *user_send_buffer,		    unsigned char *user_receive_buffer);/******************************* *                             * * Graphic Interface Functions * *                             * *******************************//* * draw_robot - this function allows the client to draw a robot at *              configuration x, y, th, tu (using the robot world  *              coordinates).  *  * No effect in direct mode. *  * parameters: *    long x, y -- the x-y position of the robot. *    int th, tu -- the steering and turret orientation of the robot *    int mode - the drawing mode. If mode = 1, the robot is drawn in  *              BlackPixel using GXxor (using GXxor you can erase the trace  *              of robotby drawing over it). If mode = 2, the robot is  *              drawn in BlackPixel using GXxor and in addition, a small arrow *              is drawn at the center of the robot using GXcopy (using this  *              mode you can leave a trace of small arrow). If mode = 3,  *              the robot is drawn in BlackPixel using GXcopy. When mode > 3, *              the robot is drawn in color (GXxor) using color(mode-3), see *              Color table below. */int draw_robot(long x, long y, int th, int tu, int mode);/* * draw_line - this function allows the client to draw a line from *             (x_1, y_1) to (x_2, y_2) (using the robot world coordinates).  * * No effect in direct mode. *  * parameters: *    long x_1, y_1, x_2, y_2 -- the two end-points of the line *    int mode -- the mode of drawing: when mode is 1, the drawing is  *                done in BlackPixel using GXcopy; when mode is 2, the drawing *                is done in BlackPixel using GXxor, when mode > 2, the drawing *                is done in color (GXxor) using color(mode-2), see Color table *                below. */int draw_line(long x_1, long y_1, long x_2, long y_2, int mode);/* * draw_arc - this function allows the client to draw arc which is part *            of an ellipse (using the robot world coordinates).  * * No effect in direct mode. *  * parameters: *    long x_0, y_0, w, h -- (x_0, y_0) specifies the upper left corner of the  *                          rectangle bounding the ellipse while w and h *                          specifies the width and height of the bounding  *                          rectangle, respectively. *    int th1, th2 -- th1 and th2 specifies the angular range of the arc. *    int mode -- the mode of drawing: when mode is 1, the drawing is  *                done in BlackPixel using GXcopy; when mode is 2, the drawing *                is done in BlackPixel using GXxor, when mode > 2, the drawing *                is done in color (GXxor) using color(mode-2), see Color table *                below. */int draw_arc(long x_0, long y_0, long w, long h, int th1, int th2, int mode);/*  * Color table: *   color1             = Blue *   color2		= NavyBlue *   color3		= RoyalBlue *   color4		= SteelBlue *   color5		= CadetBlue *   color6		= Green *   color7		= SeaGreen *   color8		= ForestGreen *   color9		= DarkGreen *   color10		= LimeGreen *   color11		= Yellow *   color12		= Orange *   color13		= LightCoral *   color14		= DeepPink *   color15		= OrangeRed *   color16		= Red *   color17		= IndianRed *   color18		= VioletRed *   color19		= DeepPink *   color20		= Maroon *//************************************* *                                   * * Miscellaneous Interface Functions * *                                   * *************************************//* * server_is_running - this function queries the server to see *                     if it is up and running.  If so, this function *                     returns a TRUE, otherwise it returns FALSE. *                     This function is replaced by connect_robot, but  *                     is defined here for backward compatibility * * No effect in direct mode. *  */int server_is_running(void);/* * quit_server - this function allows the client to quit the server *               assuming this feature is enabled in the setup file *               of the server * * No effect in direct mode. *  */int quit_server(void);/* * real_robot - this function allows the client to switch to *              real robot mode in the server * * No effect in direct mode. *  */int real_robot(void);/* * simulated_robot - this function allows the client to switch to *                   simulated robot mode in the server * * No effect in direct mode. *  */int simulated_robot(void);/* * predict_sensors - this function predicts the sensor reading of *                   the robot assuming it is at position (x, y) *                   and orientation th and tu using the map of the *                   simulated robot environment. The predicted sensor *                   data values are stored in "state" and "laser". *  * No effect in direct mode. *  * parameters: *    int x, y, th, tu -- the configuration of the robot *    long *state -- where to put the predicted state data *    int *laser -- where to put the predicted laser data */int predict_sensors(int x, int y, int th, int tu, long *state, int *laser);/*  * motion_check - this function computes the intersection of a path *                specified by the parameters: type, a1, ..., a7 with *                the obstacles in the robot's environment. If there is *                collision, the function returns 1 and the x-y configuration *                of the robot is stored in collide[0] and collide[1] while *                collide[2] stores the inward normal of the obstacle edge *                that the robot collides with (this information can be *                used to calculate which bumper is hit.). If there is no *                collision, the function returns 0. * * No effect in direct mode. *  * parameters: *    long type - 0 if the path is a line segment *                1 if the path is an arc of circle *    double a1 a2 - x-y coordinates of the first point of the path (the path *                   is directional). *    depending on the value of type, a3 - a7 have different meanings. *    if (type == 0), line segment mode *      double a3 a4 are the x-y coordinates of the second point of the path *      a5, a6, a7 have no meaning *    if (type == 1), arc of circle mode *      double a3 is the angle (in radiance) of the vector connecting the  *                center of the circle to the first end-point of the arc *      double a4 is the angle of the vector connecting the center *                of the circle to the second end-point of the arc *      double a5 is the radius of the circle *      double a6 a7 are the x-y coordinate of the center of the circle */int motion_check(long type, double a1, double a2, double a3, double a4, 		 double a5, double a6, double a7, double collide[3]);/* * get_robot_conf - interactively getting the robot's conf, by clicking *                  the mouse in the server's Robot window *  * No effect in direct mode. *  * parameters: *    long *conf -- should be an array of 4 long integers. The configuration *                  of the robot is returned in this array. */int get_robot_conf(long *conf);/******************************************* *                                         * * The following are helper functions for  * * developing user defined host <-> robot  * * communication                           * *                                         * *******************************************//* *  init_receive_buffer - sets the index to 4 which is the point *  at which data should begin to be extracted *  *  parameters: *     unsigned short *index -- is the buffer index */int init_receive_buffer(unsigned short *index);/* *  extract_receive_buffer_header - extracts the header information: *  length, serial_number, and packettype from the beginning of the *  receive buffer. * *  parameters: *     short *length -- is the returns the number of chars in the buffer * *     unsigned char *serial_number -- returns the serial number to be *                                     assigned to the packet *     unsigned char *packet_type -- returns the type number to be *                                   assigned to the packet *     unsigned char *buffer -- is the receive buffer */int extract_receive_buffer_header(unsigned short *length, 				  unsigned char *serial_number, 				  unsigned char *packet_type, 				  unsigned char *buffer);/* *  init_send_buffer - sets the index to 4 which is the point *  at which data should be inserted * *  parameters: *     unsigned short *index -- is the buffer index */int init_send_buffer(unsigned short *index);/* *  stuff_send_buffer_header - loads the header information, *  length,serial_number, and packettype into the beginning of the *  buffer.  It should be called after the data has been stuffed, *  i.e. index represents the length of the packet. * *  parameters: *     int index -- is the buffer index which holds the number of chars *                  in the buffer *     unsigned char serial_number -- holds the serial number to be *                                    assigned to the packet *     unsigned char packet_type -- holds the type number to be *	                           assigned to the packet * *     unsigned char *buffer -- is the send buffer */int stuff_send_buffer_header(unsigned short index, unsigned char serial_number, 			     unsigned char packet_type, unsigned char *buffer);/* *  stuffchar -  stuffs a 1 byte char into the send buffer * *  parameters: *     signed char data -- is the char to be stuffed *     unsigned char *buffer -- is the send buffer *     unsigned short *index -- is the buffer index which will be incremented *                              to reflect the bytes stuffed into the buffer */int stuffchar(signed char data, unsigned char *buffer, unsigned short *index);/* *  stuff2byteint - stuffs a short int(2 bytes) into the send buffer * *  parameters: *     signed int data -- is the value which will be split apart and stuffed *	                  bytewise into the send buffer *     unsigned char *buffer -- is the send buffer *     unsigned short *index -- is the buffer index which will be incremented *	                        to reflect the bytes stuffed into the buffer */int stuff2byteint(signed short data,		  unsigned char *buffer, unsigned short *index);/* *  stuff4byteint - stuffs a long int(4 bytes) into the send buffer * *  parameters: *     signed long data -- is the value which will be split apart and stuffed *	                   bytewise into the send buffer *     unsigned char *buffer -- is the send buffer *     unsigned short *index -- is the buffer index which will be incremented *	                        to reflect the bytes stuffed into the buffer */int stuff4byteint(signed long data,		  unsigned char *buffer, unsigned short *index);/* *  stuffuchar -  stuffs an unsigned char into the send buffer *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品久久久久久蜜臀| 亚洲无人区一区| 一区二区三区.www| 国产麻豆9l精品三级站| 色8久久人人97超碰香蕉987| 精品国产自在久精品国产| 亚洲女人的天堂| 国产成人免费视频网站高清观看视频| 欧美色图激情小说| 亚洲国产成人一区二区三区| 日韩精品成人一区二区三区| 色又黄又爽网站www久久| 久久精品欧美日韩| 日本va欧美va精品| 欧美日韩高清一区二区三区| 亚洲欧美偷拍三级| hitomi一区二区三区精品| 2023国产精品| 热久久免费视频| 欧美精品v国产精品v日韩精品| 亚洲图片激情小说| 成人的网站免费观看| 久久精品亚洲麻豆av一区二区 | 九色|91porny| 欧美日韩精品一区二区| 一区二区三区在线高清| 91麻豆免费在线观看| 欧美国产日本韩| 国产精品69毛片高清亚洲| 精品av综合导航| 久热成人在线视频| 精品免费国产二区三区| 日本在线观看不卡视频| 欧美日韩不卡在线| 奇米精品一区二区三区在线观看 | 日本aⅴ免费视频一区二区三区| 色www精品视频在线观看| 亚洲激情av在线| 在线视频欧美精品| 亚洲国产精品一区二区www在线| 99久久综合色| 一区二区三区四区精品在线视频| 色综合中文字幕| 亚洲自拍欧美精品| 欧美精品123区| 久久99久久99小草精品免视看| 日韩视频永久免费| 国产99久久久久| 亚洲六月丁香色婷婷综合久久 | jiyouzz国产精品久久| 亚洲欧美中日韩| 欧美亚洲高清一区| 美女视频第一区二区三区免费观看网站| 日韩欧美国产wwwww| 国产精品资源网| 亚洲欧美日韩精品久久久久| 精品1区2区3区| 九色porny丨国产精品| 欧美高清一级片在线观看| 色综合视频一区二区三区高清| 午夜视频在线观看一区二区三区 | 国产日韩av一区二区| 91网址在线看| 蓝色福利精品导航| 亚洲女人小视频在线观看| 91精选在线观看| 国产凹凸在线观看一区二区| 一区二区三区欧美久久| 精品黑人一区二区三区久久| 成人教育av在线| 日韩av网站在线观看| 欧美国产视频在线| 7777精品伊人久久久大香线蕉完整版| 国精产品一区一区三区mba桃花| 亚洲色图欧洲色图| 日韩欧美在线观看一区二区三区| 高清视频一区二区| 亚洲成人免费看| 国产精品传媒视频| 日韩视频国产视频| 色先锋久久av资源部| 国产一区二区免费在线| 久久99热狠狠色一区二区| 亚洲欧洲日产国码二区| 日韩亚洲欧美在线| 在线观看91视频| 成人白浆超碰人人人人| 久久超碰97人人做人人爱| 亚洲主播在线播放| 欧美激情一区在线| 精品国产免费一区二区三区香蕉| 日本精品裸体写真集在线观看| 国产一区二区美女诱惑| 秋霞电影一区二区| 亚洲电影一级片| 亚洲欧美aⅴ...| 国产精品天天看| 国产亚洲精品免费| 欧美va亚洲va香蕉在线| 欧美日韩不卡在线| 欧美日本国产视频| 欧美久久久久中文字幕| 91国偷自产一区二区使用方法| 国产精品一区二区男女羞羞无遮挡| 日韩电影免费一区| 亚洲成人av在线电影| 亚洲一区视频在线观看视频| 亚洲女厕所小便bbb| 亚洲视频 欧洲视频| 一色桃子久久精品亚洲| 国产精品视频免费| 国产精品卡一卡二| 亚洲国产岛国毛片在线| 中文字幕一区二区三区在线观看 | 日韩欧美一区二区视频| 在线电影院国产精品| 这里只有精品电影| 日韩色视频在线观看| 亚洲精品在线免费观看视频| 欧美成人性福生活免费看| 精品欧美乱码久久久久久1区2区| 日韩精品一区二区三区在线观看| 91精品国产欧美一区二区18 | 日本高清免费不卡视频| 欧美亚洲国产一区二区三区va| 在线亚洲人成电影网站色www| 91首页免费视频| 欧美美女直播网站| 精品国产乱码久久久久久夜甘婷婷| 精品入口麻豆88视频| 国产偷v国产偷v亚洲高清| 国产精品区一区二区三区| 中文字幕日韩av资源站| 亚洲午夜在线观看视频在线| 五月激情综合婷婷| 精品一区二区三区免费毛片爱 | 成人av资源网站| 91搞黄在线观看| 欧美一级xxx| 国产亚洲综合av| 一区二区三区在线免费播放| 性久久久久久久久久久久| 狠狠狠色丁香婷婷综合久久五月| 成人自拍视频在线| 欧美性淫爽ww久久久久无| 日韩天堂在线观看| 亚洲欧洲国产日韩| 日本伊人午夜精品| 国产suv精品一区二区6| 欧美视频在线观看一区二区| 欧美日韩在线三级| 亚洲国产成人tv| 国精品**一区二区三区在线蜜桃 | 久久在线免费观看| 亚洲免费观看在线视频| 蜜臀av在线播放一区二区三区| 国产成人夜色高潮福利影视| 欧洲精品在线观看| 久久精品一级爱片| 日韩激情在线观看| 99re热视频精品| 欧美电视剧在线看免费| 亚洲情趣在线观看| 国产麻豆精品在线| 欧美日韩黄色一区二区| 欧美国产欧美亚州国产日韩mv天天看完整| 一区二区激情小说| 成人精品视频网站| 日韩一级片在线观看| 亚洲一区在线看| 国产91精品露脸国语对白| 91精品国产欧美一区二区18| 亚洲欧美另类图片小说| 国产成人免费视频网站| 日韩欧美色综合网站| 亚洲一二三区在线观看| av一二三不卡影片| 久久免费的精品国产v∧| 日本vs亚洲vs韩国一区三区二区| 色妹子一区二区| 中文一区在线播放| 国产精一区二区三区| 欧美一区二区三区日韩视频| 亚洲国产欧美另类丝袜| av不卡在线播放| 国产精品久久一级| 国产高清成人在线| 国产亚洲成av人在线观看导航 | 日韩一级大片在线观看| 亚洲成人7777| 欧美视频在线一区| 亚洲 欧美综合在线网络| 色网综合在线观看| 一区二区三区国产豹纹内裤在线| 不卡区在线中文字幕| 国产精品少妇自拍| 成人午夜在线播放| 国产精品无人区| 99久久久免费精品国产一区二区| 国产精品嫩草影院av蜜臀|