CARLA
 
载入中...
搜索中...
未找到
CarlaSubscriber.h
浏览该文件的文档.
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
10namespace carla {
11namespace 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 CarlaSubscriber() = default;
27 virtual ~CarlaSubscriber() = default;
28
29 protected:
30 std::string _frame_id = "";
31 std::string _name = "";
32 std::string _parent = "";
33 };
34}
35}
void frame_id(std::string &&frame_id)
virtual const char * type() const =0
const std::string & frame_id() const
void name(std::string &&name)
const std::string & name() const
void parent(std::string &&parent)
const std::string & parent() const
virtual ~CarlaSubscriber()=default
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133