Go to the documentation of this file.00001 #include "ros/ros.h"
00002 #include <sys/wait.h>
00003 #include <string>
00004 #include <iostream>
00005
00006
00007
00008
00009
00010 int main(int argc, char **argv)
00011 {
00012
00013 ros::init(argc, argv, "quad_link");
00014 ros::NodeHandle nh("~");
00015
00016 std::string dev_port_;
00017 std::string str1, str2;
00018
00019 nh.param<std::string>("dev_port", dev_port_, "/dev/Zigbee_Link");
00020
00021 str1 = "$PAPARAZZI_HOME/sw/ground_segment/tmtc/link -s 57600 -d ";
00022 str2 = str1 + dev_port_;
00023 system(str2.c_str());
00024 ROS_FATAL("Error opening modem serial device...Retrying!");
00025
00026 return 0;
00027 }