Skip to content

Commit

Permalink
Greedy ign- migrations
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <methylDragon@gmail.com>
  • Loading branch information
methylDragon committed Jul 13, 2022
1 parent d7c1abd commit 357e903
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 27 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ set(GZ_CMAKE_VER ${gz-cmake3_VERSION_MAJOR})
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

gz_configure_project(
REPLACE_GZ_INCLUDE_PATH gz/launch
VERSION_SUFFIX)
gz_configure_project(VERSION_SUFFIX)

#============================================================================
# Set project-specific options
Expand Down Expand Up @@ -112,7 +110,7 @@ add_subdirectory(plugins)
gz_configure_build(QUIT_IF_BUILD_ERRORS)

#============================================================================
# install example .ign files
# install example .gzlaunch files
#============================================================================
add_subdirectory(examples)

Expand Down
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@

### Gazebo Launch 1.3.0 (2019-11-13)

1. Add filepath to ERB so that constants like `__FILE__` in `.ign` files work as expected
1. Add filepath to ERB so that constants like `__FILE__` in `.gzlaunch` files work as expected
* [BitBucket pull request 48](https://osrf-migration.github.io/ignition-gh-pages/#!/ignitionrobotics/ign-launch/pull-requests/48)

1. Add backward support to gz-launch to capture backtraces.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Refer to the following table for information about important directories and fil
```
gz-launch
├── examples Example launch configurations.
├── include/ignition/launch Header files.
├── include/gz/launch Header files.
├── plugins Launch plugins, one per subdirectory.
├── src Source files and unit tests.
├── test
Expand Down
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
file(GLOB files "*.ign")
file(GLOB files "*.gzlaunch")
install(FILES ${files}
DESTINATION ${GZ_DATA_INSTALL_DIR}/configs)
16 changes: 8 additions & 8 deletions examples/sim_plugins.gzlaunch
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@
In this example, setting to a resource file shipped with Gazebo GUI -->
<window_icon>:/qml/images/drawer.png</window_icon>
<plugin filename="GzScene3D" name="3D View">
<ignition-gui>
<gz-gui>
<title>3D View</title>
<property type="bool" key="showTitleBar">false</property>
<property type="string" key="state">docked</property>
</ignition-gui>
</gz-gui>

<engine>ogre2</engine>
<scene>scene</scene>
Expand All @@ -134,7 +134,7 @@
<camera_pose>-6 0 6 0 0.5 0</camera_pose>
</plugin>
<plugin filename="WorldControl" name="World control">
<ignition-gui>
<gz-gui>
<title>World control</title>
<property type="bool" key="showTitleBar">false</property>
<property type="bool" key="resizable">false</property>
Expand All @@ -147,7 +147,7 @@
<line own="left" target="left"/>
<line own="bottom" target="bottom"/>
</anchors>
</ignition-gui>
</gz-gui>

<play_pause>true</play_pause>
<step>true</step>
Expand All @@ -158,7 +158,7 @@
</plugin>

<plugin filename="WorldStats" name="World stats">
<ignition-gui>
<gz-gui>
<title>World stats</title>
<property type="bool" key="showTitleBar">false</property>
<property type="bool" key="resizable">false</property>
Expand All @@ -171,7 +171,7 @@
<line own="right" target="right"/>
<line own="bottom" target="bottom"/>
</anchors>
</ignition-gui>
</gz-gui>

<sim_time>true</sim_time>
<real_time>true</real_time>
Expand All @@ -182,9 +182,9 @@

<!-- Entity tree -->
<plugin filename="EntityTree" name="Entity tree">
<ignition-gui>
<gz-gui>
<title>Entity tree</title>
</ignition-gui>
</gz-gui>
</plugin>

<!-- Transform Control -->
Expand Down
2 changes: 1 addition & 1 deletion plugins/sim_gui/SimGui.hh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace gz
/// <plugin name="gz::launch::SimGui"
/// filename="gz-launch-simgui">
///
/// <!-- Elements parsed by ign-launch -->
/// <!-- Elements parsed by gz-launch -->
///
/// <!-- Set window title. Defaults to "Gazebo" -->
/// <window_title>Custom window title</window_title>
Expand Down
12 changes: 6 additions & 6 deletions src/Manager_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class ManagerTest : public ::testing::Test
public:
ManagerTest(){}
#ifndef _WIN32
std::string testScriptPath = "/tmp/ign-launch.sh";
std::string testScriptPath = "/tmp/gz-launch.sh";
#else
std::string testScriptPath =
std::string(getenv("localappdata")) + "\\Temp\\ign-launch.bat";
std::string(getenv("localappdata")) + "\\Temp\\gz-launch.bat";
#endif
};

Expand Down Expand Up @@ -141,10 +141,10 @@ TEST_F(ManagerTest, RunEnvPre)
{
// Test that environment is applied regardless of order
#ifndef _WIN32
std::string testPath = "/tmp/ign-launch-env-test-pre";
std::string testPath = "/tmp/gz-launch-env-test-pre";
#else
std::string testPath =
std::string(getenv("localappdata")) + "\\Temp\\ign-launch-env-test-pre";
std::string(getenv("localappdata")) + "\\Temp\\gz-launch-env-test-pre";
#endif

if (gz::common::isFile(testPath))
Expand Down Expand Up @@ -179,10 +179,10 @@ TEST_F(ManagerTest, RunEnvPost)
{
// Test that environment is applied regardless of order
#ifndef _WIN32
std::string testPath = "/tmp/ign-launch-env-test-post";
std::string testPath = "/tmp/gz-launch-env-test-post";
#else
std::string testPath =
std::string(getenv("localappdata")) + "\\Temp\\ign-launch-env-test-post";
std::string(getenv("localappdata")) + "\\Temp\\gz-launch-env-test-post";
#endif

if (gz::common::isFile(testPath))
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ target_link_libraries(gz PUBLIC
gz-common${GZ_COMMON_VER}::gz-common${GZ_COMMON_VER}
)

set(launch_executable ign-launch)
set(launch_executable gz-launch)
add_executable(${launch_executable} launch_main.cc)
target_link_libraries(${launch_executable}
gz
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/cmdlaunch.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COMMANDS = {
}

#
# Class for the Ignition launch command line tools.
# Class for the Gazebo launch command line tools.
#
class Cmd
def execute(args)
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/gz_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ TEST(CmdLine, HelpSelf)
{
std::string output = customExecStr("gz launch --help");
EXPECT_NE(std::string::npos,
output.find("Introspect Ignition launch")) << output;
output.find("Introspect Gazebo launch")) << output;
}

/////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/launch.yaml.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--- # Subcommands available inside ignition launch
--- # Subcommands available inside gz launch
format: 1.0.0
library_name: @PROJECT_NAME_NO_VERSION@
library_version: @PROJECT_VERSION_FULL@
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/launch_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void addLaunchFlags(CLI::App &_app)
//////////////////////////////////////////////////
int main(int argc, char** argv)
{
CLI::App app{"Introspect Ignition launch"};
CLI::App app{"Introspect Gazebo launch"};

app.set_help_all_flag("--help-all", "Show all help");

Expand Down

0 comments on commit 357e903

Please sign in to comment.