Skip to content

Commit

Permalink
javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ds58 committed Nov 27, 2024
1 parent 93845a5 commit 8f3d37a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ros2-library/src/main/java/us/ihmc/ros2/ROS2NodeBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,15 @@ private ParticipantProfile buildProfile()
return profile;
}

/**
* Find a value from the environment from several different places, where the places have some priority.
* Priority order: IHMCNetworkParameters.ini, Java System Property, system environment
*
* @param environmentKey Key from system environment
* @param propertiesKey Key from Java System Properties
* @param networkParametersKey Key from ~/.ihmc/IHMCNetworkParameters.ini properties file
* @return the value found for the most-prioritized key
*/
private String findValueForField(String environmentKey, String propertiesKey, String networkParametersKey)
{
Stack<Map.Entry<String, String>> possibleValues = new Stack<>();
Expand Down

0 comments on commit 8f3d37a

Please sign in to comment.