Skip to content

Commit

Permalink
ign -> gz Shared Lib Migration : sdformat (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
methylDragon authored Jul 8, 2022
1 parent 5e40fd1 commit 77478ed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/integration/model/pr2.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<collision>base_footprint_geom_base_link</collision>
<topic>__default_topic__</topic>
</contact>
<plugin name='gazebo_contact' filename='libContactPlugin.so'/>
<plugin name='sim_contact' filename='libContactPlugin.so'/>
</sensor>
<sensor name='base_laser' type='ray'>
<always_on>1</always_on>
Expand Down
10 changes: 5 additions & 5 deletions usd/src/usd_parser/USDWorld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ namespace usd

sdf::Plugin diffDrivePlugin;
diffDrivePlugin.SetName("gz::sim::systems::DiffDrive");
diffDrivePlugin.SetFilename("ignition-gazebo-diff-drive-system");
diffDrivePlugin.SetFilename("gz-sim-diff-drive-system");

std::string leftWheelName;
std::string rightWheelName;
Expand Down Expand Up @@ -408,24 +408,24 @@ namespace usd
// Add some plugins to run the Gazebo Sim simulation
sdf::Plugin physicsPlugin;
physicsPlugin.SetName("gz::sim::systems::Physics");
physicsPlugin.SetFilename("ignition-gazebo-physics-system");
physicsPlugin.SetFilename("gz-sim-physics-system");
_world.AddPlugin(physicsPlugin);

sdf::Plugin sensorsPlugin;
sensorsPlugin.SetName("gz::sim::systems::Sensors");
sensorsPlugin.SetFilename("ignition-gazebo-sensors-system");
sensorsPlugin.SetFilename("gz-sim-sensors-system");
_world.AddPlugin(sensorsPlugin);

sdf::Plugin userCommandsPlugin;
userCommandsPlugin.SetName("gz::sim::systems::UserCommands");
userCommandsPlugin.SetFilename("ignition-gazebo-user-commands-system");
userCommandsPlugin.SetFilename("gz-sim-user-commands-system");
_world.AddPlugin(userCommandsPlugin);

sdf::Plugin sceneBroadcasterPlugin;
sceneBroadcasterPlugin.SetName(
"gz::sim::systems::SceneBroadcaster");
sceneBroadcasterPlugin.SetFilename(
"ignition-gazebo-scene-broadcaster-system");
"gz-sim-scene-broadcaster-system");
_world.AddPlugin(sceneBroadcasterPlugin);
}

Expand Down
8 changes: 4 additions & 4 deletions usd/src/usd_parser/usd2sdf_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,17 @@ TEST(check_cmd, GZ_UTILS_TEST_DISABLED_ON_WIN32(SDF))
auto plugins = world->Plugins();
EXPECT_EQ(4u, plugins.size());
EXPECT_EQ("gz::sim::systems::Physics", plugins[0].Name());
EXPECT_EQ("ignition-gazebo-physics-system", plugins[0].Filename());
EXPECT_EQ("gz-sim-physics-system", plugins[0].Filename());

EXPECT_EQ("gz::sim::systems::Sensors", plugins[1].Name());
EXPECT_EQ("ignition-gazebo-sensors-system", plugins[1].Filename());
EXPECT_EQ("gz-sim-sensors-system", plugins[1].Filename());

EXPECT_EQ("gz::sim::systems::UserCommands", plugins[2].Name());
EXPECT_EQ("ignition-gazebo-user-commands-system", plugins[2].Filename());
EXPECT_EQ("gz-sim-user-commands-system", plugins[2].Filename());

EXPECT_EQ("gz::sim::systems::SceneBroadcaster", plugins[3].Name());
EXPECT_EQ(
"ignition-gazebo-scene-broadcaster-system", plugins[3].Filename());
"gz-sim-scene-broadcaster-system", plugins[3].Filename());

// the world should have lights attached to it
std::set<std::string> savedLightNames;
Expand Down

0 comments on commit 77478ed

Please sign in to comment.