Go to the documentation of this file.
38 #ifndef WIN32_LEAN_AND_MEAN
39 #define WIN32_LEAN_AND_MEAN 1
53 #ifndef __STDC_FORMAT_MACROS
54 #define __STDC_FORMAT_MACROS
58 #include <MultiSense/MultiSenseChannel.hh>
66 void usage(
const char *programNameP)
68 fprintf(stderr,
"USAGE: %s [<options>]\n", programNameP);
69 fprintf(stderr,
"Where <options> are:\n");
70 fprintf(stderr,
"\t-a <ip_address> : ip address (default=10.66.171.21)\n");
81 fprintf(fP,
"API build date: %s\n", info.
apiBuildDate.c_str());
82 fprintf(fP,
"API version: %#06x\n", info.
apiVersion);
97 std::string ipAddress =
"10.66.171.21";
104 while(-1 != (cc =
getopt(argc, argvPP,
"a:k:s:qy")))
106 case 'a': ipAddress = std::string(
optarg);
break;
107 default:
usage(*argvPP);
break;
114 if (NULL == channelP) {
115 fprintf(stderr,
"Failed to establish communications with \"%s\"\n",
128 fprintf(stderr,
"Failed to query detailed version info: %s\n",
132 printVersionInfo(versionInfo);
int main(int argc, char **argvPP)
std::string sensorFirmwareBuildDate
static CRL_CONSTEXPR Status Status_Ok
uint64_t sensorHardwareVersion
int getopt(int argc, char **argv, char *opts)
static void Destroy(Channel *instanceP)
uint64_t sensorHardwareMagic
static const char * statusString(Status status)
static Channel * Create(const std::string &sensorAddress)
VersionType sensorFirmwareVersion
virtual Status getVersionInfo(system::VersionInfo &v)=0