Skip to content

Commit 77d102d

Browse files
committed
Update references to systems to server
Signed-off-by: Michael Carroll <[email protected]>
1 parent 820f69d commit 77d102d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

include/ignition/gazebo/config.hh.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define IGNITION_GAZEBO_VERSION_HEADER "Ignition Gazebo, version ${PROJECT_VERSION_FULL}\nCopyright (C) 2018 Open Source Robotics Foundation.\nReleased under the Apache 2.0 License.\n\n"
1515

1616
#define IGNITION_GAZEBO_GUI_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/${IGN_DATA_INSTALL_DIR}/gui"
17-
#define IGNITION_GAZEBO_SYSTEM_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/${IGN_DATA_INSTALL_DIR}/systems"
17+
#define IGNITION_GAZEBO_SERVER_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/${IGN_DATA_INSTALL_DIR}/server.config"
1818
#define IGN_GAZEBO_PLUGIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${IGN_LIB_INSTALL_DIR}/ign-${IGN_DESIGNATION}-${PROJECT_VERSION_MAJOR}/plugins"
1919
#define IGN_GAZEBO_GUI_PLUGIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${IGN_LIB_INSTALL_DIR}/ign-${IGN_DESIGNATION}-${PROJECT_VERSION_MAJOR}/plugins/gui"
2020
#define IGN_GAZEBO_WORLD_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${IGN_DATA_INSTALL_DIR}/worlds"

src/SimulationRunner.cc

+6-7
Original file line numberDiff line numberDiff line change
@@ -160,24 +160,23 @@ SimulationRunner::SimulationRunner(const sdf::World *_world,
160160
// If we have reached this point and no systems have been loaded, then load
161161
// a default set of systems.
162162
// Order:
163-
// 1. File at IGN_GAZEBO_DEFAULT_SYSTEMS
164-
// 2. File at ${IGN_HOMEDIR}/.ignition/gazebo/systems.config
165-
// 3. File at ${IGN_DATA_INSTALL_DIR}/systems/systems.config
163+
// 1. File at IGN_GAZEBO_SERVER_CONFIG
164+
// 2. File at ${IGN_HOMEDIR}/.ignition/gazebo/server.config
165+
// 3. File at ${IGN_DATA_INSTALL_DIR}/server.config
166166

167167
if (this->systems.empty() && this->pendingSystems.empty())
168168
{
169169
ignmsg << "No systems loaded, loading defaults" << std::endl;
170170

171171
std::string envConfig;
172-
ignition::common::env("IGN_GAZEBO_DEFAULT_SYSTEMS", envConfig);
172+
ignition::common::env("IGN_GAZEBO_SERVER_CONFIG", envConfig);
173173

174174
std::string defaultConfig;
175175
ignition::common::env(IGN_HOMEDIR, defaultConfig);
176176
defaultConfig = ignition::common::joinPaths(defaultConfig, ".ignition",
177-
"gazebo", "systems.config");
177+
"gazebo", "server.config");
178178

179-
auto installedConfig = ignition::common::joinPaths(
180-
IGNITION_GAZEBO_SYSTEM_CONFIG_PATH, "systems.config");
179+
auto installedConfig = IGNITION_GAZEBO_SERVER_CONFIG_PATH;
181180

182181
std::string configPath;
183182
if (envConfig.size() && ignition::common::exists(envConfig))

0 commit comments

Comments
 (0)