active_zoneset_node_main.cpp
Go to the documentation of this file.
1 // Copyright (c) 2021 Pilz GmbH & Co. KG
2 //
3 // This program is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU Lesser General Public License as published by
5 // the Free Software Foundation, either version 3 of the License, or
6 // (at your option) any later version.
7 //
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public License
14 // along with this program. If not, see <https://www.gnu.org/licenses/>.
15 
16 #include <ros/ros.h>
17 
19 
20 int main(int argc, char** argv)
21 {
22  ros::init(argc, argv, "active_zoneset_node");
23  ros::NodeHandle nh;
24 
25  try
26  {
27  psen_scan_v2::ActiveZonesetNode active_zoneset_node{ nh };
28  ros::spin();
29  }
30  // LCOV_EXCL_START
31  catch (std::exception& e)
32  {
33  ROS_ERROR_STREAM(e.what());
34  return 1;
35  }
36  // LCOV_EXCL_STOP
37 
38  return 0;
39 }
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
Contains the events needed to define and implement the scanner protocol.
int main(int argc, char **argv)
ROS Node that continuously publishes a marker for the active_zoneset.
ROSCPP_DECL void spin()
#define ROS_ERROR_STREAM(args)


psen_scan_v2
Author(s): Pilz GmbH + Co. KG
autogenerated on Sat Nov 5 2022 02:13:36