/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include #include namespace ROS2 { //! System Component for Camera simulation in ROS 2. class ROS2SystemCameraComponent : public AZ::Component { public: AZ_COMPONENT(ROS2SystemCameraComponent, "{b4665d39-78fd-40de-8518-2f6bd345a831}"); static void Reflect(AZ::ReflectContext* context); static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided); static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible); static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required); void InitPassTemplateMappingsHandler(); protected: //////////////////////////////////////////////////////////////////////// // AZ::Component override void Activate() override; void Deactivate() override; //////////////////////////////////////////////////////////////////////// private: //! Load the pass templates of the ROS 2 Camera. void LoadPassTemplateMappings(); AZ::RPI::PassSystemInterface::OnReadyLoadTemplatesEvent::Handler m_loadTemplatesHandler; }; } // namespace ROS2