From a2a2c856e9cc80ef604d2ce49b0dbea9d4dae570 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Tue, 2 May 2023 16:25:12 -0700 Subject: [PATCH] Use ignition::gazebo:: in class instantiation (#1967) Fixes macOS build. Signed-off-by: Steve Peters --- src/EntityComponentManager.cc | 2 +- src/Link.cc | 2 +- src/Model.cc | 2 +- src/SdfEntityCreator.cc | 2 +- src/ServerConfig.cc | 4 ++-- src/SystemLoader.cc | 2 +- src/TestFixture.cc | 2 +- src/World.cc | 2 +- src/rendering/MarkerManager.cc | 2 +- src/rendering/RenderUtil.cc | 2 +- src/rendering/SceneManager.cc | 2 +- src/systems/ackermann_steering/AckermannSteering.cc | 2 +- src/systems/air_pressure/AirPressure.cc | 2 +- src/systems/altimeter/Altimeter.cc | 2 +- src/systems/apply_joint_force/ApplyJointForce.cc | 2 +- src/systems/apply_link_wrench/ApplyLinkWrench.cc | 2 +- src/systems/battery_plugin/LinearBatteryPlugin.cc | 2 +- src/systems/buoyancy/Buoyancy.cc | 2 +- src/systems/camera_video_recorder/CameraVideoRecorder.cc | 2 +- src/systems/collada_world_exporter/ColladaWorldExporter.cc | 2 +- src/systems/contact/Contact.cc | 2 +- src/systems/diff_drive/DiffDrive.cc | 2 +- src/systems/imu/Imu.cc | 2 +- src/systems/joint_controller/JointController.cc | 2 +- .../joint_position_controller/JointPositionController.cc | 2 +- src/systems/kinetic_energy_monitor/KineticEnergyMonitor.cc | 2 +- src/systems/lift_drag/LiftDrag.cc | 2 +- src/systems/log/LogPlayback.cc | 2 +- src/systems/log/LogRecord.cc | 2 +- src/systems/log_video_recorder/LogVideoRecorder.cc | 2 +- .../logical_audio_sensor_plugin/LogicalAudioSensorPlugin.cc | 2 +- src/systems/logical_camera/LogicalCamera.cc | 2 +- src/systems/magnetometer/Magnetometer.cc | 2 +- src/systems/multicopter_motor_model/MulticopterMotorModel.cc | 2 +- src/systems/physics/Physics.cc | 2 +- src/systems/pose_publisher/PosePublisher.cc | 2 +- src/systems/scene_broadcaster/SceneBroadcaster.cc | 2 +- src/systems/sensors/Sensors.cc | 2 +- src/systems/thermal/Thermal.cc | 2 +- src/systems/touch_plugin/TouchPlugin.cc | 2 +- src/systems/track_controller/TrackController.cc | 2 +- src/systems/tracked_vehicle/TrackedVehicle.cc | 2 +- src/systems/user_commands/UserCommands.cc | 2 +- src/systems/velocity_control/VelocityControl.cc | 2 +- src/systems/wheel_slip/WheelSlip.cc | 2 +- src/systems/wind_effects/WindEffects.cc | 2 +- 46 files changed, 47 insertions(+), 47 deletions(-) diff --git a/src/EntityComponentManager.cc b/src/EntityComponentManager.cc index 67c76857ec..916ac90781 100644 --- a/src/EntityComponentManager.cc +++ b/src/EntityComponentManager.cc @@ -32,7 +32,7 @@ using namespace gz; using namespace gz::sim; -class gz::sim::EntityComponentManagerPrivate +class ignition::gazebo::EntityComponentManagerPrivate { /// \brief Implementation of the CreateEntity function, which takes a specific /// entity as input. diff --git a/src/Link.cc b/src/Link.cc index 904d769d98..491e40210e 100644 --- a/src/Link.cc +++ b/src/Link.cc @@ -36,7 +36,7 @@ #include "gz/sim/Link.hh" -class gz::sim::LinkPrivate +class ignition::gazebo::LinkPrivate { /// \brief Id of link entity. public: Entity id{kNullEntity}; diff --git a/src/Model.cc b/src/Model.cc index 5f63074151..d4d0d6653e 100644 --- a/src/Model.cc +++ b/src/Model.cc @@ -28,7 +28,7 @@ #include "gz/sim/components/WindMode.hh" #include "gz/sim/Model.hh" -class gz::sim::ModelPrivate +class ignition::gazebo::ModelPrivate { /// \brief Id of model entity. public: Entity id{kNullEntity}; diff --git a/src/SdfEntityCreator.cc b/src/SdfEntityCreator.cc index e40978a5b5..8b5f9698f3 100644 --- a/src/SdfEntityCreator.cc +++ b/src/SdfEntityCreator.cc @@ -70,7 +70,7 @@ #include "gz/sim/components/WindMode.hh" #include "gz/sim/components/World.hh" -class gz::sim::SdfEntityCreatorPrivate +class ignition::gazebo::SdfEntityCreatorPrivate { /// \brief Pointer to entity component manager. We don't assume ownership. public: EntityComponentManager *ecm{nullptr}; diff --git a/src/ServerConfig.cc b/src/ServerConfig.cc index f61447e839..5535ea62d6 100644 --- a/src/ServerConfig.cc +++ b/src/ServerConfig.cc @@ -31,7 +31,7 @@ using namespace gz; using namespace gz::sim; /// \brief Private data for PluginInfoConfig. -class gz::sim::ServerConfig::PluginInfoPrivate +class ignition::gazebo::ServerConfig::PluginInfoPrivate { /// \brief Default constructor. public: PluginInfoPrivate() = default; @@ -192,7 +192,7 @@ void ServerConfig::PluginInfo::SetSdf(const sdf::ElementPtr &_sdf) } /// \brief Private data for ServerConfig. -class gz::sim::ServerConfigPrivate +class ignition::gazebo::ServerConfigPrivate { /// \brief Default constructor. public: ServerConfigPrivate() diff --git a/src/SystemLoader.cc b/src/SystemLoader.cc index 72d8ac701b..f63dcb427a 100644 --- a/src/SystemLoader.cc +++ b/src/SystemLoader.cc @@ -35,7 +35,7 @@ using namespace gz::sim; -class gz::sim::SystemLoaderPrivate +class ignition::gazebo::SystemLoaderPrivate { ////////////////////////////////////////////////// public: explicit SystemLoaderPrivate() = default; diff --git a/src/TestFixture.cc b/src/TestFixture.cc index dafd7b94d2..7e05455ed2 100644 --- a/src/TestFixture.cc +++ b/src/TestFixture.cc @@ -106,7 +106,7 @@ void HelperSystem::PostUpdate(const UpdateInfo &_info, } ////////////////////////////////////////////////// -class gz::sim::TestFixturePrivate +class ignition::gazebo::TestFixturePrivate { /// \brief Initialize fixture /// \param[in] _config Server config diff --git a/src/World.cc b/src/World.cc index 5f776f0551..002e5729a9 100644 --- a/src/World.cc +++ b/src/World.cc @@ -28,7 +28,7 @@ #include "gz/sim/components/World.hh" #include "gz/sim/World.hh" -class gz::sim::WorldPrivate +class ignition::gazebo::WorldPrivate { /// \brief Id of world entity. public: Entity id{kNullEntity}; diff --git a/src/rendering/MarkerManager.cc b/src/rendering/MarkerManager.cc index 1c057e3720..3e06e7c935 100644 --- a/src/rendering/MarkerManager.cc +++ b/src/rendering/MarkerManager.cc @@ -37,7 +37,7 @@ using namespace gz; using namespace gz::sim; /// Private data for the MarkerManager class -class gz::sim::MarkerManagerPrivate +class ignition::gazebo::MarkerManagerPrivate { /// \brief Processes a marker message. /// \param[in] _msg The message data. diff --git a/src/rendering/RenderUtil.cc b/src/rendering/RenderUtil.cc index f35c6bedfa..d29dbd56b2 100644 --- a/src/rendering/RenderUtil.cc +++ b/src/rendering/RenderUtil.cc @@ -75,7 +75,7 @@ using namespace gz; using namespace gz::sim; // Private data class. -class gz::sim::RenderUtilPrivate +class ignition::gazebo::RenderUtilPrivate { /// True if the rendering component is initialized public: bool initialized = false; diff --git a/src/rendering/SceneManager.cc b/src/rendering/SceneManager.cc index 67c93485c4..2a1f7e509c 100644 --- a/src/rendering/SceneManager.cc +++ b/src/rendering/SceneManager.cc @@ -50,7 +50,7 @@ using namespace gz::sim; using namespace std::chrono_literals; /// \brief Private data class. -class gz::sim::SceneManagerPrivate +class ignition::gazebo::SceneManagerPrivate { /// \brief Keep track of world ID, which is equivalent to the scene's /// root visual. diff --git a/src/systems/ackermann_steering/AckermannSteering.cc b/src/systems/ackermann_steering/AckermannSteering.cc index dbc8225e66..5d61fca244 100644 --- a/src/systems/ackermann_steering/AckermannSteering.cc +++ b/src/systems/ackermann_steering/AckermannSteering.cc @@ -54,7 +54,7 @@ struct Commands Commands() : lin(0.0), ang(0.0) {} }; -class gz::sim::systems::AckermannSteeringPrivate +class ignition::gazebo::systems::AckermannSteeringPrivate { /// \brief Callback for velocity subscription /// \param[in] _msg Velocity message diff --git a/src/systems/air_pressure/AirPressure.cc b/src/systems/air_pressure/AirPressure.cc index 6e47bcd7bf..a28b44f7d9 100644 --- a/src/systems/air_pressure/AirPressure.cc +++ b/src/systems/air_pressure/AirPressure.cc @@ -48,7 +48,7 @@ using namespace gz::sim; using namespace systems; /// \brief Private AirPressure data class. -class gz::sim::systems::AirPressurePrivate +class ignition::gazebo::systems::AirPressurePrivate { /// \brief A map of air pressure entity to its sensor public: std::unordered_map collisionEntities; }; -class gz::sim::systems::ContactPrivate +class ignition::gazebo::systems::ContactPrivate { /// \brief Create sensors that correspond to entities in the simulation /// \param[in] _ecm Mutable reference to ECM. diff --git a/src/systems/diff_drive/DiffDrive.cc b/src/systems/diff_drive/DiffDrive.cc index ae0878d663..e2fc82492b 100644 --- a/src/systems/diff_drive/DiffDrive.cc +++ b/src/systems/diff_drive/DiffDrive.cc @@ -53,7 +53,7 @@ struct Commands Commands() : lin(0.0), ang(0.0) {} }; -class gz::sim::systems::DiffDrivePrivate +class ignition::gazebo::systems::DiffDrivePrivate { /// \brief Callback for velocity subscription /// \param[in] _msg Velocity message diff --git a/src/systems/imu/Imu.cc b/src/systems/imu/Imu.cc index d596bb79bf..ce384d69ab 100644 --- a/src/systems/imu/Imu.cc +++ b/src/systems/imu/Imu.cc @@ -48,7 +48,7 @@ using namespace gz::sim; using namespace systems; /// \brief Private Imu data class. -class gz::sim::systems::ImuPrivate +class ignition::gazebo::systems::ImuPrivate { /// \brief A map of IMU entity to its IMU sensor. public: std::unordered_map