Skip to content

Commit

Permalink
Merge pull request #369 from robotology/fix/ignition-physics-plugin-name
Browse files Browse the repository at this point in the history
Use the versioned name of the DART physics plugin
  • Loading branch information
diegoferigo authored Jul 2, 2021
2 parents fcf705e + 96e1ce0 commit a369321
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions scenario/src/gazebo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ target_link_libraries(ScenarioGazebo
PRIVATE
ScenarioCore::CoreUtils
ScenarioGazebo::ExtraComponents
${ignition-physics.ignition-physics}
${ignition-fuel_tools.ignition-fuel_tools})

set_target_properties(ScenarioGazebo PROPERTIES
Expand Down
5 changes: 4 additions & 1 deletion scenario/src/gazebo/src/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <ignition/gazebo/components/Pose.hh>
#include <ignition/math/Pose3.hh>
#include <ignition/math/Vector3.hh>
#include <ignition/physics/config.hh>
#include <sdf/Element.hh>
#include <sdf/Model.hh>
#include <sdf/Root.hh>
Expand Down Expand Up @@ -245,7 +246,9 @@ bool World::setPhysicsEngine(const PhysicsEngine engine)
const std::string pluginLib = [&engine]() -> std::string {
switch (engine) {
case PhysicsEngine::Dart:
return "ignition-physics-dartsim-plugin";
return "ignition-physics"
+ std::to_string(IGNITION_PHYSICS_MAJOR_VERSION)
+ "-dartsim-plugin";
}
return "";
}();
Expand Down

0 comments on commit a369321

Please sign in to comment.