39 #include <multisense_lib/MultiSenseChannel.hh> 43 int main (
int argc,
char **argv)
46 std::cerr <<
"Usage: " << argv[0] <<
" multisense_ip pc_ip" << std::endl;
49 std::string multisense_ip = argv[1];
50 std::string pc_ip = argv[2];
53 command <<
"ping -c 1 " << pc_ip <<
" > /dev/null";
54 int missing_counter = 0;
56 if (system(command.str().c_str()) != 0) {
58 std::cout <<
"increasing missing counter: " << missing_counter << std::endl;
63 if (missing_counter > 10) {
67 std::cerr <<
"killing multisense[" << multisense_ip <<
"]" << std::endl;
virtual Status stopStreams(DataSource mask)=0
static Channel * Create(const std::string &sensorAddress)
int main(int argc, char **argv)
static void Destroy(Channel *instanceP)
static CRL_CONSTEXPR DataSource Source_All