Skip to content

Commit

Permalink
Using anon format default node name
Browse files Browse the repository at this point in the history
  • Loading branch information
neocoretechs committed Apr 30, 2021
1 parent 5fecb33 commit b936d6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/ros/internal/loader/CommandLineLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ public Map<String, String> getSpecialRemappings() {
public NodeConfiguration build() {
parseRemappingArguments();
NodeConfiguration nodeConfiguration;
UUID uuid = UUID.randomUUID();
String nodeName = uuid.toString().replace('-', 'x');
String nodeName = GraphName.newAnonymous().toString();
if (specialRemappings.containsKey(CommandLineVariables.NODE_NAME)) {
nodeName = specialRemappings.get(CommandLineVariables.NODE_NAME);
}
Expand Down

0 comments on commit b936d6f

Please sign in to comment.