Skip to content

Commit

Permalink
Allowed renaming
Browse files Browse the repository at this point in the history
Signed-off-by: Ayush1285 <[email protected]>
  • Loading branch information
Ayush1285 committed Dec 25, 2023
1 parent 65628d1 commit 1b1b091
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ros_gz_sim/src/create.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ int main(int _argc, char ** _argv)
req.set_name(FLAGS_name);
}

// Allow Renaming
bool allow_renaming = ros2_node->get_parameter("allow_renaming").as_bool();
req.set_allow_renaming((allow_renaming || FLAGS_allow_renaming));

// Request
gz::transport::Node node;
gz::msgs::Boolean rep;
Expand Down

0 comments on commit 1b1b091

Please sign in to comment.