CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
LibCarla
source
carla
multigpu
secondaryCommands.h
Go to the documentation of this file.
1
// Copyright (c) 2026 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
"
11
#include "
carla/multigpu/commands.h
"
12
#include <functional>
13
14
namespace
carla
{
15
namespace
multigpu
{
16
17
class
Secondary
;
18
19
class
SecondaryCommands
{
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
;
30
callback_type
_callback
;
31
};
32
33
}
// namespace multigpu
34
}
// namespace carla
Buffer.h
carla::Buffer
A piece of raw data.
Definition
carla/Buffer.h:42
carla::multigpu::SecondaryCommands
Definition
secondaryCommands.h:19
carla::multigpu::SecondaryCommands::callback_type
std::function< void(MultiGPUCommand, carla::Buffer)> callback_type
Definition
secondaryCommands.h:22
carla::multigpu::SecondaryCommands::_callback
callback_type _callback
Definition
secondaryCommands.h:30
carla::multigpu::SecondaryCommands::set_secondary
void set_secondary(std::shared_ptr< Secondary > secondary)
Definition
secondaryCommands.cpp:15
carla::multigpu::SecondaryCommands::process_command
void process_command(Buffer buffer)
Definition
secondaryCommands.cpp:23
carla::multigpu::SecondaryCommands::_secondary
std::shared_ptr< Secondary > _secondary
Definition
secondaryCommands.h:29
carla::multigpu::SecondaryCommands::set_callback
void set_callback(callback_type callback)
Definition
secondaryCommands.cpp:19
carla::multigpu::Secondary
Definition
secondary.h:40
commands.h
carla::multigpu
Definition
commands.h:17
carla::multigpu::MultiGPUCommand
MultiGPUCommand
Definition
commands.h:19
carla
This file contains definitions of common data structures used in traffic manager.
Definition
SignComponent.h:21
Generated by
1.18.0