Skip to content

Commit

Permalink
2 ➡️ 3 (#457)
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina authored Nov 11, 2020
2 parents 432028f + 05bf057 commit fb5c2d3
Show file tree
Hide file tree
Showing 51 changed files with 495 additions and 102 deletions.
5 changes: 4 additions & 1 deletion src/LevelManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
*
*/

#include "LevelManager.hh"

#include <algorithm>

#include <sdf/Actor.hh>
#include <sdf/Atmosphere.hh>
#include <sdf/Light.hh>
Expand Down Expand Up @@ -50,7 +54,6 @@
#include "ignition/gazebo/components/Wind.hh"
#include "ignition/gazebo/components/World.hh"

#include "LevelManager.hh"
#include "SimulationRunner.hh"

using namespace ignition;
Expand Down
7 changes: 5 additions & 2 deletions src/SdfGenerator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
* limitations under the License.
*
*/

#include "SdfGenerator.hh"

#include <memory>
#include <vector>

#include <sdf/sdf.hh>

Expand All @@ -29,7 +33,6 @@
#include "ignition/gazebo/components/SourceFilePath.hh"
#include "ignition/gazebo/components/World.hh"

#include "SdfGenerator.hh"

namespace ignition
{
Expand Down Expand Up @@ -346,7 +349,7 @@ namespace sdf_generator
// https://example.org/1.0/test/models/Backpack
// the path to the directory containing the sdf file (modelDir)
// will be:
// $HOME/.ignition/fuel/example.org/test/models/Backpack/1/
// $HOME/.ignition/fuel/example.org/test/models/Backpack/2/
// and the basename of the directory is "1", which is the model
// version.
//
Expand Down
4 changes: 2 additions & 2 deletions src/SdfGenerator_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -543,13 +543,13 @@ TEST_F(ElementUpdateFixture, WorldWithModelsIncludedNotExpanded)
TEST_F(ElementUpdateFixture, WorldWithModelsIncludedWithInvalidUris)
{
const std::string goodUri =
"https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Backpack/1";
"https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Backpack/2";

// These are URIs that are potentially problematic.
const std::vector<std::string> fuelUris = {
// Thes following two URIs are valid, but have a trailing '/'
"https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Backpack/",
"https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Backpack/1/",
"https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Backpack/2/",
// Thes following two URIs are invalid, and will not be saved
"https://fuel.ignitionrobotics.org/1.0/OpenRobotics/models/Backpack/"
"notInt",
Expand Down
2 changes: 2 additions & 0 deletions src/SimulationRunner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include "SimulationRunner.hh"

#include <algorithm>

#include "ignition/common/Profiler.hh"

#include "ignition/gazebo/components/Model.hh"
Expand Down
6 changes: 5 additions & 1 deletion src/gui/PathManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@
*
*/

#include "PathManager.hh"

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

#include <string>
#include <vector>

#include <ignition/common/Console.hh>
#include <ignition/common/Profiler.hh>
#include <ignition/gui/Application.hh>

#include "ignition/gazebo/Util.hh"
#include "PathManager.hh"

using namespace ignition;
using namespace gazebo;
Expand Down
1 change: 1 addition & 0 deletions src/gui/PathManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <ignition/transport/Node.hh>

#include "ignition/gazebo/Export.hh"
#include "ignition/gazebo/config.hh"

namespace ignition
{
Expand Down
6 changes: 4 additions & 2 deletions src/gui/plugins/entity_tree/EntityTree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
*
*/

#include "EntityTree.hh"

#include <iostream>
#include <vector>

#include <ignition/common/Console.hh>
#include <ignition/common/Profiler.hh>
#include <ignition/gui/Application.hh>
Expand All @@ -38,8 +42,6 @@
#include "ignition/gazebo/EntityComponentManager.hh"
#include "ignition/gazebo/gui/GuiEvents.hh"

#include "EntityTree.hh"

namespace ignition::gazebo
{
class EntityTreePrivate
Expand Down
7 changes: 5 additions & 2 deletions src/gui/plugins/modules/EntityContextMenu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,22 @@
* limitations under the License.
*
*/

#include "EntityContextMenu.hh"

#include <ignition/msgs/boolean.pb.h>
#include <ignition/msgs/stringmsg.pb.h>
#include <ignition/msgs/entity.pb.h>

#include <iostream>
#include <string>

#include <ignition/common/Console.hh>
#include <ignition/gazebo/gui/GuiRunner.hh>
#include <ignition/gazebo/Conversions.hh>
#include <ignition/gui/Application.hh>
#include <ignition/transport/Node.hh>

#include "EntityContextMenu.hh"

namespace ignition::gazebo
{
/// \brief Private data class for EntityContextMenu
Expand Down
11 changes: 8 additions & 3 deletions src/gui/plugins/playback_scrubber/PlaybackScrubber.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@
* limitations under the License.
*
*/

#include "PlaybackScrubber.hh"

#include <ignition/msgs/boolean.pb.h>
#include <ignition/msgs/stringmsg.pb.h>
#include <ignition/math/Helpers.hh>

#include <chrono>
#include <ctime>
#include <iostream>
#include <regex>
#include <string>
#include <utility>

#include <ignition/math/Helpers.hh>

#include <ignition/common/Console.hh>
#include <ignition/gui/Application.hh>
#include <ignition/gui/Helpers.hh>
Expand All @@ -35,8 +42,6 @@
#include "ignition/gazebo/EntityComponentManager.hh"
#include "ignition/gazebo/gui/GuiEvents.hh"

#include "PlaybackScrubber.hh"

namespace ignition::gazebo
{
class PlaybackScrubberPrivate
Expand Down
9 changes: 5 additions & 4 deletions src/gui/plugins/resource_spawner/ResourceSpawner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@
*
*/

#include "ResourceSpawner.hh"

#include <ignition/msgs/boolean.pb.h>
#include <ignition/msgs/stringmsg.pb.h>

#include <set>
#include <unordered_map>

#include <sdf/Root.hh>
#include <sdf/parser.hh>

Expand All @@ -32,13 +37,9 @@
#include <ignition/fuel_tools/FuelClient.hh>
#include <ignition/fuel_tools/ClientConfig.hh>

#include <set>

#include "ignition/gazebo/EntityComponentManager.hh"
#include "ignition/gazebo/gui/GuiEvents.hh"

#include "ResourceSpawner.hh"

namespace ignition::gazebo
{
class ResourceSpawnerPrivate
Expand Down
7 changes: 5 additions & 2 deletions src/gui/plugins/scene3d/Scene3D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@
*
*/

#include "Scene3D.hh"

#include <algorithm>
#include <cmath>
#include <limits>
#include <map>
#include <sstream>
#include <string>
#include <utility>
#include <vector>

#include <sdf/Link.hh>
Expand Down Expand Up @@ -60,8 +65,6 @@
#include "ignition/gazebo/gui/GuiEvents.hh"
#include "ignition/gazebo/rendering/RenderUtil.hh"

#include "Scene3D.hh"

Q_DECLARE_METATYPE(std::string)

namespace ignition
Expand Down
8 changes: 6 additions & 2 deletions src/gui/plugins/shapes/Shapes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@
* limitations under the License.
*
*/

#include "Shapes.hh"

#include <ignition/msgs/boolean.pb.h>
#include <ignition/msgs/stringmsg.pb.h>

#include <algorithm>
#include <iostream>
#include <string>

#include <ignition/common/Console.hh>
#include <ignition/gui/Application.hh>
#include <ignition/gui/MainWindow.hh>
Expand All @@ -28,8 +34,6 @@
#include "ignition/gazebo/EntityComponentManager.hh"
#include "ignition/gazebo/gui/GuiEvents.hh"

#include "Shapes.hh"

namespace ignition::gazebo
{
class ShapesPrivate
Expand Down
7 changes: 5 additions & 2 deletions src/gui/plugins/transform_control/TransformControl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@
* limitations under the License.
*
*/

#include "TransformControl.hh"

#include <ignition/msgs/boolean.pb.h>
#include <ignition/msgs/stringmsg.pb.h>

#include <iostream>
#include <string>

#include <ignition/common/Console.hh>
#include <ignition/gui/Application.hh>
#include <ignition/gui/MainWindow.hh>
Expand All @@ -37,8 +42,6 @@
#include "ignition/gazebo/EntityComponentManager.hh"
#include "ignition/gazebo/gui/GuiEvents.hh"

#include "TransformControl.hh"

namespace ignition::gazebo
{
class TransformControlPrivate
Expand Down
7 changes: 5 additions & 2 deletions src/gui/plugins/video_recorder/VideoRecorder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@
* limitations under the License.
*
*/

#include "VideoRecorder.hh"

#include <ignition/msgs/boolean.pb.h>
#include <ignition/msgs/video_record.pb.h>

#include <iostream>
#include <string>

#include <ignition/common/Console.hh>
#include <ignition/common/Filesystem.hh>
#include <ignition/gui/Application.hh>
Expand All @@ -29,8 +34,6 @@
#include "ignition/gazebo/components/ParentEntity.hh"
#include "ignition/gazebo/EntityComponentManager.hh"

#include "VideoRecorder.hh"

namespace ignition::gazebo
{
class VideoRecorderPrivate
Expand Down
7 changes: 5 additions & 2 deletions src/gui/plugins/view_angle/ViewAngle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@
* limitations under the License.
*
*/

#include "ViewAngle.hh"

#include <ignition/msgs/boolean.pb.h>
#include <ignition/msgs/vector3d.pb.h>

#include <iostream>
#include <string>

#include <ignition/common/Console.hh>
#include <ignition/plugin/Register.hh>
#include <ignition/transport/Node.hh>

#include "ViewAngle.hh"

namespace ignition::gazebo
{
class ViewAnglePrivate
Expand Down
7 changes: 6 additions & 1 deletion src/ign.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
* limitations under the License.
*
*/

#include "ign.hh"

#include <cstring>
#include <string>
#include <vector>

#include <ignition/common/Console.hh>
#include <ignition/common/Filesystem.hh>
#include <ignition/fuel_tools/FuelClient.hh>
Expand All @@ -27,7 +33,6 @@
#include "ignition/gazebo/ServerConfig.hh"

#include "ignition/gazebo/gui/Gui.hh"
#include "ign.hh"

//////////////////////////////////////////////////
extern "C" IGNITION_GAZEBO_VISIBLE char *ignitionGazeboVersion()
Expand Down
5 changes: 4 additions & 1 deletion src/network/NetworkManagerPrimary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
*
*/

#include "NetworkManagerPrimary.hh"

#include <algorithm>
#include <set>
#include <string>
#include <utility>

#include <ignition/common/Console.hh>
#include <ignition/common/Util.hh>
Expand All @@ -32,7 +36,6 @@
#include "ignition/gazebo/EntityComponentManager.hh"
#include "ignition/gazebo/Events.hh"

#include "NetworkManagerPrimary.hh"
#include "NetworkManagerPrivate.hh"
#include "PeerTracker.hh"

Expand Down
3 changes: 3 additions & 0 deletions src/network/PeerTracker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
*/
#include "PeerTracker.hh"

#include <algorithm>
#include <utility>

using namespace ignition;
using namespace gazebo;

Expand Down
Loading

0 comments on commit fb5c2d3

Please sign in to comment.