-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix gimbal test world - add example world for gimbal and camera - add gimbal_small_3d - update command topic names in gimbal test world - update quote style in gimbal_small_3d - rename zoom plugin and attach to sensor - resolve parent model and subscribe to zoom command - implement zoom for standard camera - remove whitespace for linter - provide alternative to gz::sim::Sensor - handle RenderTeardown event to exit cleanly - find package gz-common5 - use degrees for pose in gimbal world - format plugin attributes. Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
- Loading branch information
1 parent
8c5da71
commit 1caa507
Showing
11 changed files
with
3,279 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
Copyright (C) 2023 ArduPilot.org | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
#ifndef CAMERAZOOMPLUGIN_HH_ | ||
#define CAMERAZOOMPLUGIN_HH_ | ||
|
||
#include <memory> | ||
|
||
#include <gz/sim/System.hh> | ||
|
||
namespace gz { | ||
namespace sim { | ||
inline namespace GZ_SIM_VERSION_NAMESPACE { | ||
namespace systems { | ||
|
||
/// \brief Camera zoom plugin. | ||
class CameraZoomPlugin : | ||
public System, | ||
public ISystemConfigure, | ||
public ISystemPreUpdate, | ||
public ISystemPostUpdate | ||
{ | ||
/// \brief Destructor | ||
public: virtual ~CameraZoomPlugin(); | ||
|
||
/// \brief Constructor | ||
public: CameraZoomPlugin(); | ||
|
||
// Documentation inherited | ||
public: void PreUpdate(const gz::sim::UpdateInfo &_info, | ||
gz::sim::EntityComponentManager &_ecm) final; | ||
|
||
// Documentation inherited | ||
public: void PostUpdate(const gz::sim::UpdateInfo &_info, | ||
const gz::sim::EntityComponentManager &_ecm) final; | ||
|
||
// Documentation inherited | ||
public: void Configure(const Entity &_entity, | ||
const std::shared_ptr<const sdf::Element> &_sdf, | ||
EntityComponentManager &_ecm, | ||
EventManager &) final; | ||
|
||
/// \internal | ||
/// \brief Private implementation | ||
private: class Impl; | ||
private: std::unique_ptr<Impl> impl; | ||
}; | ||
|
||
} // namespace systems | ||
} | ||
} // namespace sim | ||
} // namespace gz | ||
|
||
#endif // CAMERAZOOMPLUGIN_HH_ |
Oops, something went wrong.