The MAUVE Toolchain
Connector.hpp
1 /*
2  * Copyright 2017 ONERA
3  *
4  * This file is part of the MAUVE ROS project.
5  *
6  * MAUVE ROS is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License version 3 as
8  * published by the Free Software Foundation.
9  *
10  * MAUVE ROS is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with MAUVE. If not, see <https://www.gnu.org/licenses/lgpl-3.0>.
17  */
18 #ifndef MAUVE_ROS_CONNECTOR_HPP
19 #define MAUVE_ROS_CONNECTOR_HPP
20 
21 #include <string>
22 #include <mauve/runtime.hpp>
23 #include <ros/ros.h>
24 
25 namespace mauve {
26 
27  namespace ros {
31  struct Connector : virtual public runtime::WithLogger {
33  bool init();
35  static ::ros::NodeHandle* node;
37  static ::ros::NodeHandle* node_private;
38  };
39 
40  }
41 }
42 
43 #endif
::ros::NodeHandle * node_private
An handle to the private view of the ROS node.
Definition: Connector.hpp:37
::ros::NodeHandle * node
An handle to the ROS node.
Definition: Connector.hpp:35
ROS Connector interface.
Definition: Connector.hpp:31
Object with a Logger.
Definition: WithLogger.hpp:27
The MAUVE namespace.
Definition: tracing.hpp:24
bool init()
Initialize ROS Node.