CARLA
CarlaPublisher.h
Go to the documentation of this file.
1 // Copyright (c) 2022 Computer Vision Center (CVC) at the Universitat Autonoma de Barcelona (UAB).
2 // This work is licensed under the terms of the MIT license.
3 // For a copy, see <https://opensource.org/licenses/MIT>.
4 
5 #pragma once
6 #define _GLIBCXX_USE_CXX11_ABI 0
7 
8 #include <string>
9 
10 namespace carla {
11 namespace ros2 {
12 
14  public:
15  const std::string& frame_id() const { return _frame_id; }
16  const std::string& name() const { return _name; }
17  const std::string& parent() const { return _parent; }
18 
19  void frame_id(std::string&& frame_id) { _frame_id = std::move(frame_id); }
20  void name(std::string&& name) { _name = std::move(name); }
21  void parent(std::string&& parent) { _parent = std::move(parent); }
22 
23  virtual const char* type() const = 0;
24 
25  public:
26  CarlaPublisher() = default;
27  virtual ~CarlaPublisher() = default;
28 
29  protected:
30  std::string _frame_id = "";
31  std::string _name = "";
32  std::string _parent = "";
33  };
34 }
35 }
virtual const char * type() const =0
const std::string & frame_id() const
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:133
void name(std::string &&name)
void parent(std::string &&parent)
const std::string & name() const
void frame_id(std::string &&frame_id)
const std::string & parent() const
virtual ~CarlaPublisher()=default