Skip to content

Commit

Permalink
fixed comments
Browse files Browse the repository at this point in the history
Signed-off-by: Nate Koenig <natekoenig@gmail.com>
  • Loading branch information
nkoenig committed May 26, 2023
1 parent aee9f0d commit 5f1458a
Show file tree
Hide file tree
Showing 60 changed files with 234 additions and 232 deletions.
4 changes: 2 additions & 2 deletions include/gz/sim/Actor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_ACTOR_HH_
#define IGNITION_GAZEBO_ACTOR_HH_
#ifndef GZ_GAZEBO_ACTOR_HH_
#define GZ_GAZEBO_ACTOR_HH_

#include <memory>
#include <optional>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/Joint.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_JOINT_HH_
#define IGNITION_GAZEBO_JOINT_HH_
#ifndef GZ_GAZEBO_JOINT_HH_
#define GZ_GAZEBO_JOINT_HH_

#include <memory>
#include <optional>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/Light.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_LIGHT_HH_
#define IGNITION_GAZEBO_LIGHT_HH_
#ifndef GZ_GAZEBO_LIGHT_HH_
#define GZ_GAZEBO_LIGHT_HH_

#include <memory>
#include <optional>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/Primitives.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*
*/

#ifndef IGNITION_GAZEBO_PRIMITIVES_HH_
#define IGNITION_GAZEBO_PRIMITIVES_HH_
#ifndef GZ_GAZEBO_PRIMITIVES_HH_
#define GZ_GAZEBO_PRIMITIVES_HH_

#include <gz/sim/config.hh>
#include <gz/sim/Export.hh>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/Sensor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_SENSOR_HH_
#define IGNITION_GAZEBO_SENSOR_HH_
#ifndef GZ_GAZEBO_SENSOR_HH_
#define GZ_GAZEBO_SENSOR_HH_

#include <memory>
#include <optional>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/comms/Broker.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*
*/

#ifndef IGNITION_GAZEBO_BROKER_HH_
#define IGNITION_GAZEBO_BROKER_HH_
#ifndef GZ_GAZEBO_BROKER_HH_
#define GZ_GAZEBO_BROKER_HH_

#include <memory>

Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/comms/ICommsModel.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*
*/

#ifndef IGNITION_GAZEBO_ICOMMSMODEL_HH_
#define IGNITION_GAZEBO_ICOMMSMODEL_HH_
#ifndef GZ_GAZEBO_ICOMMSMODEL_HH_
#define GZ_GAZEBO_ICOMMSMODEL_HH_

#include <memory>

Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/comms/MsgManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*
*/

#ifndef IGNITION_GAZEBO_MSGMANAGER_HH_
#define IGNITION_GAZEBO_MSGMANAGER_HH_
#ifndef GZ_GAZEBO_MSGMANAGER_HH_
#define GZ_GAZEBO_MSGMANAGER_HH_

#include <deque>
#include <memory>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/BatteryPowerLoad.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_BATTERYPOWERLOAD_HH_
#define IGNITION_GAZEBO_COMPONENTS_BATTERYPOWERLOAD_HH_
#ifndef GZ_GAZEBO_COMPONENTS_BATTERYPOWERLOAD_HH_
#define GZ_GAZEBO_COMPONENTS_BATTERYPOWERLOAD_HH_

#include <gz/sim/components/Factory.hh>
#include <gz/sim/components/Component.hh>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/BoundingBoxCamera.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_BOUNDINGBOXCAMERA_HH_
#define IGNITION_GAZEBO_COMPONENTS_BOUNDINGBOXCAMERA_HH_
#ifndef GZ_GAZEBO_COMPONENTS_BOUNDINGBOXCAMERA_HH_
#define GZ_GAZEBO_COMPONENTS_BOUNDINGBOXCAMERA_HH_

#include <sdf/Sensor.hh>

Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/CustomSensor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_CUSTOMSENSOR_HH_
#define IGNITION_GAZEBO_COMPONENTS_CUSTOMSENSOR_HH_
#ifndef GZ_GAZEBO_COMPONENTS_CUSTOMSENSOR_HH_
#define GZ_GAZEBO_COMPONENTS_CUSTOMSENSOR_HH_

#include <sdf/Sensor.hh>
#include <gz/sim/components/Factory.hh>
Expand Down
7 changes: 4 additions & 3 deletions include/gz/sim/components/Factory.hh
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,10 @@ namespace components
public: IgnGazeboComponents##_classname() \
{ \
using namespace ignition; \
using Desc = gazebo::components::ComponentDescriptor<_classname>; \
gazebo::components::Factory::Instance()->Register<_classname>(\
_compType, new Desc(), gazebo::components::RegistrationObjectId(this));\
using Desc = gz::sim::components::ComponentDescriptor<_classname>; \
gz::sim::components::Factory::Instance()->Register<_classname>(\
_compType, new Desc(), \
gz::sim::components::RegistrationObjectId(this));\
} \
public: IgnGazeboComponents##_classname( \
const IgnGazeboComponents##_classname&) = delete; \
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/ForceTorque.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_FORCETORQUE_HH_
#define IGNITION_GAZEBO_COMPONENTS_FORCETORQUE_HH_
#ifndef GZ_GAZEBO_COMPONENTS_FORCETORQUE_HH_
#define GZ_GAZEBO_COMPONENTS_FORCETORQUE_HH_

#include <sdf/Sensor.hh>

Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/HaltMotion.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_HALT_MOTION_HH_
#define IGNITION_GAZEBO_COMPONENTS_HALT_MOTION_HH_
#ifndef GZ_GAZEBO_COMPONENTS_HALT_MOTION_HH_
#define GZ_GAZEBO_COMPONENTS_HALT_MOTION_HH_

#include <gz/sim/components/Factory.hh>
#include <gz/sim/components/Component.hh>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/JointTransmittedWrench.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_JOINTTRANSMITTEDWRENCH_HH_
#define IGNITION_GAZEBO_COMPONENTS_JOINTTRANSMITTEDWRENCH_HH_
#ifndef GZ_GAZEBO_COMPONENTS_JOINTTRANSMITTEDWRENCH_HH_
#define GZ_GAZEBO_COMPONENTS_JOINTTRANSMITTEDWRENCH_HH_

#include <gz/msgs/wrench.pb.h>

Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/LightCmd.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_LIGHTCMD_HH_
#define IGNITION_GAZEBO_COMPONENTS_LIGHTCMD_HH_
#ifndef GZ_GAZEBO_COMPONENTS_LIGHTCMD_HH_
#define GZ_GAZEBO_COMPONENTS_LIGHTCMD_HH_

#include <sdf/Light.hh>

Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/LightType.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_LIGHTTYPE_HH_
#define IGNITION_GAZEBO_COMPONENTS_LIGHTTYPE_HH_
#ifndef GZ_GAZEBO_COMPONENTS_LIGHTTYPE_HH_
#define GZ_GAZEBO_COMPONENTS_LIGHTTYPE_HH_

#include <string>
#include <memory>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/NavSat.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_NAVSAT_HH_
#define IGNITION_GAZEBO_COMPONENTS_NAVSAT_HH_
#ifndef GZ_GAZEBO_COMPONENTS_NAVSAT_HH_
#define GZ_GAZEBO_COMPONENTS_NAVSAT_HH_

#include <sdf/Sensor.hh>

Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/ParticleEmitter.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_PARTICLEEMITTER_HH_
#define IGNITION_GAZEBO_COMPONENTS_PARTICLEEMITTER_HH_
#ifndef GZ_GAZEBO_COMPONENTS_PARTICLEEMITTER_HH_
#define GZ_GAZEBO_COMPONENTS_PARTICLEEMITTER_HH_

#include <gz/msgs/particle_emitter.pb.h>
#include <gz/sim/components/Component.hh>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/Recreate.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_RECREATE_HH_
#define IGNITION_GAZEBO_COMPONENTS_RECREATE_HH_
#ifndef GZ_GAZEBO_COMPONENTS_RECREATE_HH_
#define GZ_GAZEBO_COMPONENTS_RECREATE_HH_

#include <gz/sim/components/Factory.hh>
#include <gz/sim/components/Component.hh>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/RenderEngineServerHeadless.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_RENDERENGINESERVERHEADLESS_HH_
#define IGNITION_GAZEBO_COMPONENTS_RENDERENGINESERVERHEADLESS_HH_
#ifndef GZ_GAZEBO_COMPONENTS_RENDERENGINESERVERHEADLESS_HH_
#define GZ_GAZEBO_COMPONENTS_RENDERENGINESERVERHEADLESS_HH_

#include <string>
#include <gz/sim/components/Factory.hh>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/SegmentationCamera.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_SEGMENTATIONCAMERA_HH_
#define IGNITION_GAZEBO_COMPONENTS_SEGMENTATIONCAMERA_HH_
#ifndef GZ_GAZEBO_COMPONENTS_SEGMENTATIONCAMERA_HH_
#define GZ_GAZEBO_COMPONENTS_SEGMENTATIONCAMERA_HH_

#include <sdf/Sensor.hh>

Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/SemanticLabel.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_LABEL_HH_
#define IGNITION_GAZEBO_COMPONENTS_LABEL_HH_
#ifndef GZ_GAZEBO_COMPONENTS_LABEL_HH_
#define GZ_GAZEBO_COMPONENTS_LABEL_HH_

#include "gz/sim/Export.hh"
#include "gz/sim/components/Component.hh"
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/SphericalCoordinates.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_SPHERICALCOORDINATES_HH_
#define IGNITION_GAZEBO_COMPONENTS_SPHERICALCOORDINATES_HH_
#ifndef GZ_GAZEBO_COMPONENTS_SPHERICALCOORDINATES_HH_
#define GZ_GAZEBO_COMPONENTS_SPHERICALCOORDINATES_HH_

#include <gz/math/SphericalCoordinates.hh>
#include <gz/sim/components/Factory.hh>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/SystemPluginInfo.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_SYSTEMINFO_HH_
#define IGNITION_GAZEBO_COMPONENTS_SYSTEMINFO_HH_
#ifndef GZ_GAZEBO_COMPONENTS_SYSTEMINFO_HH_
#define GZ_GAZEBO_COMPONENTS_SYSTEMINFO_HH_

#include <gz/msgs/plugin_v.pb.h>
#include <gz/sim/components/Factory.hh>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/TemperatureRange.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_TEMPERATURERANGE_HH_
#define IGNITION_GAZEBO_COMPONENTS_TEMPERATURERANGE_HH_
#ifndef GZ_GAZEBO_COMPONENTS_TEMPERATURERANGE_HH_
#define GZ_GAZEBO_COMPONENTS_TEMPERATURERANGE_HH_

#include <istream>
#include <ostream>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/Visibility.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_VISIBILITY_HH_
#define IGNITION_GAZEBO_COMPONENTS_VISIBILITY_HH_
#ifndef GZ_GAZEBO_COMPONENTS_VISIBILITY_HH_
#define GZ_GAZEBO_COMPONENTS_VISIBILITY_HH_

#include <string>
#include <gz/sim/components/Factory.hh>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/VisualCmd.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_VISUALCMD_HH_
#define IGNITION_GAZEBO_COMPONENTS_VISUALCMD_HH_
#ifndef GZ_GAZEBO_COMPONENTS_VISUALCMD_HH_
#define GZ_GAZEBO_COMPONENTS_VISUALCMD_HH_

#include <gz/sim/config.hh>
#include <gz/sim/Export.hh>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/components/WheelSlipCmd.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_COMPONENTS_WHEELSLIPCMD_HH_
#define IGNITION_GAZEBO_COMPONENTS_WHEELSLIPCMD_HH_
#ifndef GZ_GAZEBO_COMPONENTS_WHEELSLIPCMD_HH_
#define GZ_GAZEBO_COMPONENTS_WHEELSLIPCMD_HH_

#include <gz/sim/config.hh>
#include <gz/sim/Export.hh>
Expand Down
4 changes: 2 additions & 2 deletions include/gz/sim/detail/BaseView.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*
*/
#ifndef IGNITION_GAZEBO_DETAIL_BASEVIEW_HH_
#define IGNITION_GAZEBO_DETAIL_BASEVIEW_HH_
#ifndef GZ_GAZEBO_DETAIL_BASEVIEW_HH_
#define GZ_GAZEBO_DETAIL_BASEVIEW_HH_

#include <cstddef>
#include <set>
Expand Down
1 change: 1 addition & 0 deletions include/gz/sim/rendering/MarkerManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <memory>
#include <string>

#include <gz/sim/config.hh>
#include <gz/sim/rendering/Export.hh>

#include "gz/rendering/RenderTypes.hh"
Expand Down
12 changes: 6 additions & 6 deletions src/Server_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ TEST_P(ServerFixture, ServerConfigSdfPluginInfo)
plugin.SetName("interface");
pluginInfo.SetPlugin(plugin);

ignition::gazebo::ServerConfig serverConfig;
gz::sim::ServerConfig serverConfig;
serverConfig.AddPlugin(pluginInfo);

const std::list<ServerConfig::PluginInfo> &plugins = serverConfig.Plugins();
Expand Down Expand Up @@ -364,7 +364,7 @@ TEST_P(ServerFixture, IGN_UTILS_TEST_DISABLED_ON_WIN32(SdfServerConfig))
/////////////////////////////////////////////////
TEST_P(ServerFixture, IGN_UTILS_TEST_DISABLED_ON_WIN32(SdfRootServerConfig))
{
ignition::gazebo::ServerConfig serverConfig;
gz::sim::ServerConfig serverConfig;

serverConfig.SetSdfString(TestWorldSansPhysics::World());
EXPECT_TRUE(serverConfig.SdfFile().empty());
Expand All @@ -386,7 +386,7 @@ TEST_P(ServerFixture, IGN_UTILS_TEST_DISABLED_ON_WIN32(SdfRootServerConfig))
EXPECT_TRUE(serverConfig.SdfFile().empty());
EXPECT_TRUE(serverConfig.SdfString().empty());

gazebo::Server server(serverConfig);
gz::sim::Server server(serverConfig);
EXPECT_FALSE(server.Running());
EXPECT_FALSE(*server.Running(0));
EXPECT_TRUE(*server.Paused());
Expand Down Expand Up @@ -693,7 +693,7 @@ TEST_P(ServerFixture, RunNonBlockingMultiple)
{
ServerConfig serverConfig;
serverConfig.SetSdfString(TestWorldSansPhysics::World());
gazebo::Server server(serverConfig);
gz::sim::Server server(serverConfig);

EXPECT_FALSE(server.Running());
EXPECT_FALSE(*server.Running(0));
Expand Down Expand Up @@ -1113,7 +1113,7 @@ TEST_P(ServerFixture, ResolveResourcePaths)
common::setenv("IGN_FILE_PATH", "");

ServerConfig serverConfig;
gazebo::Server server(serverConfig);
gz::sim::Server server(serverConfig);

EXPECT_FALSE(*server.Running(0));

Expand Down Expand Up @@ -1186,7 +1186,7 @@ TEST_P(ServerFixture, Stop)
serverConfig.SetSdfFile(common::joinPaths((PROJECT_SOURCE_PATH),
"test", "worlds", "shapes.sdf"));

gazebo::Server server(serverConfig);
gz::sim::Server server(serverConfig);

// The simulation runner should not be running.
EXPECT_FALSE(*server.Running(0));
Expand Down
Loading

0 comments on commit 5f1458a

Please sign in to comment.