SkidSteeringControlComponent.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/Component/Component.h>
  10. #include <ROS2Controllers/RobotControl/Twist/TwistBus.h>
  11. #include <ROS2Controllers/VehicleDynamics/AxleConfiguration.h>
  12. #include <VehicleDynamics/Utilities.h>
  13. namespace ROS2Controllers
  14. {
  15. //! Component that contains skid steering model.
  16. class SkidSteeringControlComponent
  17. : public AZ::Component
  18. , private TwistNotificationBus::Handler
  19. {
  20. public:
  21. AZ_COMPONENT(SkidSteeringControlComponent, "{7FEE7851-1284-4AE5-9C2C-763916BFE641}", AZ::Component);
  22. SkidSteeringControlComponent() = default;
  23. // Component overrides
  24. void Activate() override;
  25. void Deactivate() override;
  26. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  27. static void Reflect(AZ::ReflectContext* context);
  28. private:
  29. // TwistNotificationBus::Handler overrides
  30. void TwistReceived(const AZ::Vector3& linear, const AZ::Vector3& angular) override;
  31. };
  32. } // namespace ROS2Controllers