Skip to content

Commit

Permalink
remove model path in set_sdf_filename
Browse files Browse the repository at this point in the history
Signed-off-by: frederik <[email protected]>
  • Loading branch information
frede791 committed Dec 7, 2023
1 parent 7fb60b1 commit 5631859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/simulation/gz_bridge/GZBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int GZBridge::init()

// service call to create model
gz::msgs::EntityFactory req{};
req.set_sdf_filename("models/" + _model_sim + "/model.sdf");
req.set_sdf_filename(_model_sim + "/model.sdf");

req.set_name(_model_name); // New name for the entity, overrides the name on the SDF.

Expand Down

0 comments on commit 5631859

Please sign in to comment.