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 }
ROS_ERROR_STREAM
#define ROS_ERROR_STREAM(args)
ros::init
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
ros.h
psen_scan_v2::ActiveZonesetNode
ROS Node that continuously publishes a marker for the active_zoneset.
Definition: active_zoneset_node.h:43
active_zoneset_node.h
main
int main(int argc, char **argv)
Definition: active_zoneset_node_main.cpp:20
ros::spin
ROSCPP_DECL void spin()
psen_scan_v2_standalone::protocol_layer::scanner_events
Contains the events needed to define and implement the scanner protocol.
Definition: scanner_events.h:30
ros::NodeHandle


psen_scan_v2
Author(s): Pilz GmbH + Co. KG
autogenerated on Sat Jun 22 2024 02:46:11