#include <stdio.h>#include <stdlib.h>#include <sys/termios.h>#include <string.h>
Functions | |
| speed_t | bitrate (int aBR) |
| : This is a demo program to obtain 10 scan data from URG-Series and save them into the file. | |
| int | setupSerial (int aFd, int aSpeed) |
| FILE * | openSerial (char *aDevName, int aSpeed) |
| Open and set up specified serial port. | |
| int * | urgGetScan (FILE *aPort, int aStart, int aEnd, int aSkip) |
| Obtain scanned data. | |
| main (int argc, char **argv) | |
| speed_t bitrate | ( | int | aBR | ) |
: This is a demo program to obtain 10 scan data from URG-Series and save them into the file.
: This sample source is a referece for the user when creating his/her program and does not gurantee for users program : Hokuyo Automatic Co., Ltd does not bear responsibility for any loss or damage caused due to this demo program. : Mention the publisher's name when distributing this source or its part to the third party HOKUYO AUTOMATIC CO.,LTD.
| aBR | [in] Declared for communication speed (9600-500000) |

| main | ( | int | argc, | |
| char ** | argv | |||
| ) |

| FILE* openSerial | ( | char * | aDevName, | |
| int | aSpeed | |||
| ) |
Open and set up specified serial port.
| aDevNme | [in] Serial port device file name | |
| aSpeed | [in] Communication speed(bps) |


| int setupSerial | ( | int | aFd, | |
| int | aSpeed | |||
| ) |


| int* urgGetScan | ( | FILE * | aPort, | |
| int | aStart, | |||
| int | aEnd, | |||
| int | aSkip | |||
| ) |
Obtain scanned data.
| aPort | [in] Serial port file handle where URG is connected | |
| aStart | [in] Starting scan step from (0-768) | |
| aEnd | [in] Ending scan step at (0-768) | |
| aSkip | [in] Number of steps to be merged when multiple points are combined(1-99) |

1.7.1