67 int main(
int argc,
char** argv)
70 ROS::init(argc, argv,
"sick_scan_emulator");
75 int tcp_port_results = 2201;
76 int tcp_port_cola = 2111;
77 ROS::param<int>(nh,
"/sick_scan/test_server/result_telegrams_tcp_port", tcp_port_results, tcp_port_results);
78 ROS::param<int>(nh,
"/sick_scan/test_server/cola_telegrams_tcp_port", tcp_port_cola, tcp_port_cola);
82 std::string result_telegrams_topic =
"/sick_scan/driver/result_telegrams";
83 ROS::param<std::string>(nh,
"/sick_scan/driver/result_telegrams_topic", result_telegrams_topic, result_telegrams_topic);
84 #if defined __ROS_VERSION && __ROS_VERSION == 1
85 sick_scan::SickLocResultPortTelegramMsgSubscriber result_telegram_subscriber
87 #elif defined __ROS_VERSION && __ROS_VERSION == 2
88 sick_scan::SickLocResultPortTelegramMsgSubscriber result_telegram_subscriber
93 test_server_thread.
start();
99 std::cout <<
"sick_scan_emulator finished." << std::endl;
101 test_server_thread.
stop();
102 std::cout <<
"sick_scan_emulator exits." << std::endl;