/* * 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 #include #include #include #include #include namespace ROS2Controllers { //! Editor Component responsible for a hierarchical system of joints such as robotic arm with Articulations or Hinge Joints. class JointsPositionsEditorComponent : public AzToolsFramework::Components::EditorComponentBase { public: JointsPositionsEditorComponent(); ~JointsPositionsEditorComponent() = default; AZ_EDITOR_COMPONENT(JointsPositionsEditorComponent, JointsPositionsEditorComponentTypeId); static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required); static void Reflect(AZ::ReflectContext* context); // AzToolsFramework::Components::EditorComponentBase overrides void BuildGameEntity(AZ::Entity* gameEntity) override; private: AZ::Crc32 FindAllJoints(); ROS2::TopicConfiguration m_topicConfiguration; //!< Configuration of the subscribed topic. AZStd::vector m_jointNames; //!< Ordered list of joint names that can be modified via subscriber }; } // namespace ROS2Controllers