Skip to content

Commit

Permalink
Migrate sources in src, test, examples, and include (#1477)
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed May 16, 2022
1 parent 146d92f commit 1169f7a
Show file tree
Hide file tree
Showing 557 changed files with 3,981 additions and 3,981 deletions.
4 changes: 2 additions & 2 deletions examples/plugin/command_actor/CommandActor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*/
#include "CommandActor.hh"

#include <ignition/gazebo/components/Pose.hh>
#include <ignition/plugin/Register.hh>
#include <gz/sim/components/Pose.hh>
#include <gz/plugin/Register.hh>

IGNITION_ADD_PLUGIN(
command_actor::CommandActor,
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/command_actor/CommandActor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define SYSTEM_PLUGIN_COMMANDACTOR_HH_

#include <chrono>
#include <ignition/gazebo/System.hh>
#include <gz/sim/System.hh>

namespace command_actor
{
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/custom_component/CustomComponentPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
#include "CustomComponentPlugin.hh"

#include <ignition/plugin/Register.hh>
#include <gz/plugin/Register.hh>

IGNITION_ADD_PLUGIN(examples::CustomComponentPlugin,
ignition::gazebo::System,
Expand Down
8 changes: 4 additions & 4 deletions examples/plugin/custom_component/CustomComponentPlugin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
#define EXAMPLES_PLUGINS_CUSTOMCOMPONENTPLUGIN_HH_

// This header provides components::Component
#include <ignition/gazebo/components/Component.hh>
#include <gz/sim/components/Component.hh>

// This header provides the registration macro
#include <ignition/gazebo/components/Factory.hh>
#include <gz/sim/components/Factory.hh>

#include <ignition/gazebo/System.hh>
#include <ignition/gazebo/config.hh>
#include <gz/sim/System.hh>
#include <gz/sim/config.hh>

namespace examples
{
Expand Down
24 changes: 12 additions & 12 deletions examples/plugin/custom_sensor_system/OdometerSystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@
*
*/

#include <ignition/msgs/double.pb.h>
#include <gz/msgs/double.pb.h>

#include <string>
#include <unordered_map>
#include <utility>

#include <ignition/common/Profiler.hh>
#include <ignition/plugin/Register.hh>
#include <ignition/sensors/Noise.hh>
#include <ignition/sensors/SensorFactory.hh>
#include <gz/common/Profiler.hh>
#include <gz/plugin/Register.hh>
#include <gz/sensors/Noise.hh>
#include <gz/sensors/SensorFactory.hh>

#include <sdf/Sensor.hh>

#include <ignition/gazebo/components/CustomSensor.hh>
#include <ignition/gazebo/components/Name.hh>
#include <ignition/gazebo/components/ParentEntity.hh>
#include <ignition/gazebo/components/Sensor.hh>
#include <ignition/gazebo/components/World.hh>
#include <ignition/gazebo/EntityComponentManager.hh>
#include <ignition/gazebo/Util.hh>
#include <gz/sim/components/CustomSensor.hh>
#include <gz/sim/components/Name.hh>
#include <gz/sim/components/ParentEntity.hh>
#include <gz/sim/components/Sensor.hh>
#include <gz/sim/components/World.hh>
#include <gz/sim/EntityComponentManager.hh>
#include <gz/sim/Util.hh>

#include "Odometer.hh"
#include "OdometerSystem.hh"
Expand Down
6 changes: 3 additions & 3 deletions examples/plugin/custom_sensor_system/OdometerSystem.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#ifndef ODOMETERSYSTEM_HH_
#define ODOMETERSYSTEM_HH_

#include <ignition/gazebo/System.hh>
#include <ignition/sensors/Sensor.hh>
#include <ignition/transport/Node.hh>
#include <gz/sim/System.hh>
#include <gz/sensors/Sensor.hh>
#include <gz/transport/Node.hh>

namespace custom
{
Expand Down
10 changes: 5 additions & 5 deletions examples/plugin/gui_system_plugin/GuiSystemPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*
*/

#include <ignition/plugin/Register.hh>
#include <ignition/gazebo/components/Name.hh>
#include <ignition/gazebo/components/World.hh>
#include <ignition/gazebo/EntityComponentManager.hh>
#include <ignition/gazebo/gui/GuiEvents.hh>
#include <gz/plugin/Register.hh>
#include <gz/sim/components/Name.hh>
#include <gz/sim/components/World.hh>
#include <gz/sim/EntityComponentManager.hh>
#include <gz/sim/gui/GuiEvents.hh>

#include "GuiSystemPlugin.hh"

Expand Down
6 changes: 3 additions & 3 deletions examples/plugin/gui_system_plugin/GuiSystemPlugin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
*
*/

#ifndef IGNITION_GAZEBO_GUISYSTEMPLUGIN_HH_
#define IGNITION_GAZEBO_GUISYSTEMPLUGIN_HH_
#ifndef GZ_GAZEBO_GUISYSTEMPLUGIN_HH_
#define GZ_GAZEBO_GUISYSTEMPLUGIN_HH_

#include <ignition/gazebo/gui/GuiSystem.hh>
#include <gz/sim/gui/GuiSystem.hh>

/// \brief Example of a GUI plugin that has access to entities and components.
class GuiSystemPlugin : public ignition::gazebo::GuiSystem
Expand Down
4 changes: 2 additions & 2 deletions examples/plugin/hello_world/HelloWorld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
// We'll use a string and the ignmsg command below for a brief example.
// Remove these includes if your plugin doesn't need them.
#include <string>
#include <ignition/common/Console.hh>
#include <gz/common/Console.hh>

// This header is required to register plugins. It's good practice to place it
// in the cc file, like it's done here.
#include <ignition/plugin/Register.hh>
#include <gz/plugin/Register.hh>

// Don't forget to include the plugin's header.
#include "HelloWorld.hh"
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/hello_world/HelloWorld.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

// The only required include in the header is this one.
// All others will depend on what your plugin does.
#include <ignition/gazebo/System.hh>
#include <gz/sim/System.hh>

// It's good practice to use a custom namespace for your project.
namespace hello_world
Expand Down
16 changes: 8 additions & 8 deletions examples/plugin/rendering_plugins/RenderingGuiPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
*
*/

#include <ignition/gui/Application.hh>
#include <gz/gui/Application.hh>
//! [includeGuiEvents]
#include <ignition/gui/GuiEvents.hh>
#include <gz/gui/GuiEvents.hh>
//! [includeGuiEvents]
#include <ignition/gui/MainWindow.hh>
#include <ignition/math/Rand.hh>
#include <ignition/plugin/Register.hh>
#include <ignition/rendering/RenderEngine.hh>
#include <ignition/rendering/RenderingIface.hh>
#include <ignition/rendering/Scene.hh>
#include <gz/gui/MainWindow.hh>
#include <gz/math/Rand.hh>
#include <gz/plugin/Register.hh>
#include <gz/rendering/RenderEngine.hh>
#include <gz/rendering/RenderingIface.hh>
#include <gz/rendering/Scene.hh>

#include "RenderingGuiPlugin.hh"

Expand Down
6 changes: 3 additions & 3 deletions examples/plugin/rendering_plugins/RenderingGuiPlugin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
#ifndef RENDERING_GUI_PLUGIN_HH_
#define RENDERING_GUI_PLUGIN_HH_

#include <ignition/gui/qt.h>
#include <ignition/gui/Plugin.hh>
#include <ignition/rendering/Scene.hh>
#include <gz/gui/qt.h>
#include <gz/gui/Plugin.hh>
#include <gz/rendering/Scene.hh>

/// \brief Example of a GUI plugin that uses Ignition Rendering.
/// This plugin works with either Ignition GUI's Scene3D or Ignition Gazebo's
Expand Down
12 changes: 6 additions & 6 deletions examples/plugin/rendering_plugins/RenderingServerPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
#include "RenderingServerPlugin.hh"

//! [includeRenderingEvents]
#include <ignition/gazebo/rendering/Events.hh>
#include <gz/sim/rendering/Events.hh>
//! [includeRenderingEvents]
#include <ignition/math/Rand.hh>
#include <ignition/plugin/Register.hh>
#include <ignition/rendering/RenderEngine.hh>
#include <ignition/rendering/RenderingIface.hh>
#include <ignition/rendering/Scene.hh>
#include <gz/math/Rand.hh>
#include <gz/plugin/Register.hh>
#include <gz/rendering/RenderEngine.hh>
#include <gz/rendering/RenderingIface.hh>
#include <gz/rendering/Scene.hh>

using namespace std::literals::chrono_literals;

Expand Down
4 changes: 2 additions & 2 deletions examples/plugin/rendering_plugins/RenderingServerPlugin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#ifndef RENDERING_SERVER_PLUGIN_HH_
#define RENDERING_SERVER_PLUGIN_HH_

#include <ignition/gazebo/System.hh>
#include <ignition/rendering/Scene.hh>
#include <gz/sim/System.hh>
#include <gz/rendering/Scene.hh>

/// \brief Server-side system that uses Ignition Rendering APIs.
/// It changes the ambient color every 2 simulation seconds.
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/system_plugin/SampleSystem.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "SampleSystem.hh"

//! [registerSampleSystem]
#include <ignition/plugin/Register.hh>
#include <gz/plugin/Register.hh>

// Include a line in your source file for each interface implemented.
IGNITION_ADD_PLUGIN(
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/system_plugin/SampleSystem.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define SYSTEM_PLUGIN_SAMPLESYSTEM_HH_

//! [header]
#include <ignition/gazebo/System.hh>
#include <gz/sim/System.hh>

namespace sample_system
{
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/system_plugin/SampleSystem2.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "SampleSystem.hh"

//! [registerSampleSystem2]
#include <ignition/plugin/RegisterMore.hh>
#include <gz/plugin/RegisterMore.hh>

IGNITION_ADD_PLUGIN(
sample_system::SampleSystem2,
Expand Down
4 changes: 2 additions & 2 deletions examples/standalone/comms/publisher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include <string>
#include <thread>

#include <ignition/msgs.hh>
#include <ignition/transport.hh>
#include <gz/msgs.hh>
#include <gz/transport.hh>

/// \brief Flag used to break the publisher loop and terminate the program.
static std::atomic<bool> g_terminatePub(false);
Expand Down
4 changes: 2 additions & 2 deletions examples/standalone/custom_server/custom_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*
*/

#include <ignition/common/Console.hh>
#include <ignition/gazebo/Server.hh>
#include <gz/common/Console.hh>
#include <gz/sim/Server.hh>

/////////////////////////////////////////////////
int main()
Expand Down
10 changes: 5 additions & 5 deletions examples/standalone/each_performance/each.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
*/

#include <fstream>
#include <ignition/math/Stopwatch.hh>
#include <gz/math/Stopwatch.hh>

#include <ignition/gazebo/Entity.hh>
#include <ignition/gazebo/EntityComponentManager.hh>
#include <ignition/gazebo/components/World.hh>
#include <ignition/gazebo/components/Name.hh>
#include <gz/sim/Entity.hh>
#include <gz/sim/EntityComponentManager.hh>
#include <gz/sim/components/World.hh>
#include <gz/sim/components/Name.hh>

using namespace ignition;
using namespace gazebo;
Expand Down
4 changes: 2 additions & 2 deletions examples/standalone/entity_creation/entity_creation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*
*/

#include <ignition/msgs/entity_factory.pb.h>
#include <gz/msgs/entity_factory.pb.h>

#include <iostream>

#include <ignition/transport/Node.hh>
#include <gz/transport/Node.hh>

// Create a transport node.
ignition::transport::Node node;
Expand Down
10 changes: 5 additions & 5 deletions examples/standalone/external_ecm/external_ecm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
*/

#include <iostream>
#include <ignition/gazebo/EntityComponentManager.hh>
#include <ignition/gazebo/components/Name.hh>
#include <ignition/gazebo/components/ParentEntity.hh>
#include <ignition/msgs/serialized.pb.h>
#include <ignition/transport/Node.hh>
#include <gz/sim/EntityComponentManager.hh>
#include <gz/sim/components/Name.hh>
#include <gz/sim/components/ParentEntity.hh>
#include <gz/msgs/serialized.pb.h>
#include <gz/transport/Node.hh>

//////////////////////////////////////////////////
int main(int argc, char **argv)
Expand Down
20 changes: 10 additions & 10 deletions examples/standalone/gtest_setup/command_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@

#include <gtest/gtest.h>

#include <ignition/msgs/twist.pb.h>

#include <ignition/common/Console.hh>
#include <ignition/gazebo/Link.hh>
#include <ignition/gazebo/Model.hh>
#include <ignition/gazebo/World.hh>
#include <ignition/gazebo/Server.hh>
#include <ignition/gazebo/Util.hh>
#include <ignition/gazebo/TestFixture.hh>
#include <ignition/transport/Node.hh>
#include <gz/msgs/twist.pb.h>

#include <gz/common/Console.hh>
#include <gz/sim/Link.hh>
#include <gz/sim/Model.hh>
#include <gz/sim/World.hh>
#include <gz/sim/Server.hh>
#include <gz/sim/Util.hh>
#include <gz/sim/TestFixture.hh>
#include <gz/transport/Node.hh>

using namespace std::chrono_literals;

Expand Down
12 changes: 6 additions & 6 deletions examples/standalone/gtest_setup/gravity_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

#include <gtest/gtest.h>

#include <ignition/common/Console.hh>
#include <ignition/gazebo/Model.hh>
#include <ignition/gazebo/World.hh>
#include <ignition/gazebo/Server.hh>
#include <ignition/gazebo/Util.hh>
#include <ignition/gazebo/TestFixture.hh>
#include <gz/common/Console.hh>
#include <gz/sim/Model.hh>
#include <gz/sim/World.hh>
#include <gz/sim/Server.hh>
#include <gz/sim/Util.hh>
#include <gz/sim/TestFixture.hh>

//////////////////////////////////////////////////
// Test that an object falls due to gravity
Expand Down
2 changes: 1 addition & 1 deletion examples/standalone/joy_to_twist/joy_to_twist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Adapted from https://github.com/ros-teleop/teleop_twist_joy
*/

#include <ignition/transport/Node.hh>
#include <gz/transport/Node.hh>
#include <sdf/sdf.hh>

ignition::transport::Node::Publisher cmdVelPub;
Expand Down
4 changes: 2 additions & 2 deletions examples/standalone/joystick/joystick.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include <linux/joystick.h>
#include <sys/stat.h>
#include <unistd.h>
#include <ignition/math/Helpers.hh>
#include <ignition/transport/Node.hh>
#include <gz/math/Helpers.hh>
#include <gz/transport/Node.hh>
#include <sdf/sdf.hh>

//////////////////////////////////////////////////
Expand Down
6 changes: 3 additions & 3 deletions examples/standalone/keyboard/keyboard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
*/


#include <ignition/msgs/twist.pb.h>
#include <ignition/transport/Node.hh>
#include <gz/msgs/twist.pb.h>
#include <gz/transport/Node.hh>
#include <sdf/sdf.hh>
#include <ignition/common/Console.hh>
#include <gz/common/Console.hh>
#include <signal.h>
#include <termios.h>
#include <stdio.h>
Expand Down
Loading

0 comments on commit 1169f7a

Please sign in to comment.