// Copyright (c) 2022 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see . #pragma once // #include "carla/Logging.h" #include "carla/Buffer.h" #include "carla/multigpu/commands.h" #include namespace carla { namespace multigpu { class Secondary; class SecondaryCommands { public: using callback_type = std::function; void set_secondary(std::shared_ptr secondary); void set_callback(callback_type callback); void process_command(Buffer buffer); private: std::shared_ptr _secondary; callback_type _callback; }; } // namespace multigpu } // namespace carla