CARLA
 
载入中...
搜索中...
未找到
secondaryCommands.h
浏览该文件的文档.
1// Copyright (c) 2022 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9// #include "carla/Logging.h"
10#include "carla/Buffer.h"
12#include <functional>
13
14namespace carla {
15namespace multigpu {
16
17class Secondary;
18
20 public:
21
22 using callback_type = std::function<void(MultiGPUCommand, carla::Buffer)>;
23
24 void set_secondary(std::shared_ptr<Secondary> secondary);
25 void set_callback(callback_type callback);
26 void process_command(Buffer buffer);
27
28 private:
29 std::shared_ptr<Secondary> _secondary;
31};
32
33} // namespace multigpu
34} // namespace carla
A piece of raw data.
std::function< void(MultiGPUCommand, carla::Buffer)> callback_type
void set_secondary(std::shared_ptr< Secondary > secondary)
std::shared_ptr< Secondary > _secondary
void set_callback(callback_type callback)
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133