factory_interface.hpp
Go to the documentation of this file.
1 // Copyright 2018 Open Source Robotics Foundation, Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef ROS_IGN_BRIDGE__FACTORY_INTERFACE_HPP_
16 #define ROS_IGN_BRIDGE__FACTORY_INTERFACE_HPP_
17 
18 #include <string>
19 
20 // include ROS
21 #include <ros/node_handle.h>
22 #include <ros/publisher.h>
23 
24 // include Ignition Transport
25 #include <ignition/transport/Node.hh>
26 
27 namespace ros_ign_bridge
28 {
29 
31 {
32 public:
33  virtual
36  ros::NodeHandle node,
37  const std::string & topic_name,
38  size_t queue_size) = 0;
39 
40  virtual
41  ignition::transport::Node::Publisher
43  std::shared_ptr<ignition::transport::Node> ign_node,
44  const std::string & topic_name,
45  size_t queue_size) = 0;
46 
47  virtual
50  ros::NodeHandle node,
51  const std::string & topic_name,
52  size_t queue_size,
53  ignition::transport::Node::Publisher & ign_pub) = 0;
54 
55  virtual
56  void
58  std::shared_ptr<ignition::transport::Node> node,
59  const std::string & topic_name,
60  size_t queue_size,
61  ros::Publisher ros_pub) = 0;
62 };
63 
64 } // namespace ros_ign_bridge
65 
66 #endif // ROS_IGN_BRIDGE__FACTORY_INTERFACE_HPP_
node_handle.h
ros::Publisher
ros_ign_bridge::FactoryInterface::create_ros_subscriber
virtual ros::Subscriber create_ros_subscriber(ros::NodeHandle node, const std::string &topic_name, size_t queue_size, ignition::transport::Node::Publisher &ign_pub)=0
publisher.h
ros_ign_bridge::FactoryInterface::create_ros_publisher
virtual ros::Publisher create_ros_publisher(ros::NodeHandle node, const std::string &topic_name, size_t queue_size)=0
ros_ign_bridge::FactoryInterface::create_ign_publisher
virtual ignition::transport::Node::Publisher create_ign_publisher(std::shared_ptr< ignition::transport::Node > ign_node, const std::string &topic_name, size_t queue_size)=0
ros_ign_bridge::FactoryInterface
Definition: factory_interface.hpp:30
ros_ign_bridge
Definition: convert.hpp:59
ros_ign_bridge::FactoryInterface::create_ign_subscriber
virtual void create_ign_subscriber(std::shared_ptr< ignition::transport::Node > node, const std::string &topic_name, size_t queue_size, ros::Publisher ros_pub)=0
ros::NodeHandle
ros::Subscriber


ros_ign_bridge
Author(s):
autogenerated on Sat Mar 11 2023 04:02:16