26 int main (
int argc,
char *argv[]) {
32 if(argc > 2 || (argc == 2 && strcasecmp(argv[1],
"--help") == 0)) {
33 cerr <<
"Usage: ld_single_sector [SICK IP ADDRESS]" << endl
34 <<
"Ex. ld_single_sector 192.168.1.11" << endl;
40 sick_ip_addr = argv[1];
44 double values[SickLD::SICK_MAX_NUM_MEASUREMENTS] = {0};
45 unsigned int num_values = 0;
48 double sector_start_ang = 90;
49 double sector_stop_ang = 270;
62 cerr <<
"Initialize failed! Are you using the correct IP address?" << endl;
75 for (
unsigned int i = 0; i < 10; i++) {
79 cout <<
"\t Num. Values: " << num_values << endl;
87 cerr <<
"An error occurred!" << endl;
98 cerr <<
"Uninitialize failed!" << endl;
#define DEFAULT_SICK_IP_ADDRESS
Default Sick LD INet 4 address.
int main(int argc, char *argv[])
Defines the SickLD class for working with the Sick LD-OEM/LD-LRS long range LIDARs.