@@ -111,25 +111,32 @@ class Stamped
111111/* *
112112 * @brief Load a device id from the parameter server
113113 *
114- * This function first checks if the 'device_id' parameter is available. If so, it attempts to load the device_id
114+ * This function first checks if the \p uuid_parameter parameter is available. If so, it attempts to load the device_id
115115 * using that parameter. There are a few supported formats:
116116 * - "01234567-89AB-CDEF-0123-456789ABCDEF"
117117 * - "01234567-89ab-cdef-0123-456789abcdef"
118118 * - "0123456789abcdef0123456789abcdef"
119119 * - "{01234567-89ab-cdef-0123-456789abcdef}"
120120 *
121- * If the 'device_id' parameter doesn't exist, this function checks for the 'device_name' parameter. If found, a
122- * device_id is generated by computing a hash on the provided string. See fuse_core::uuid::generate(const std::string&)
123- * for details.
121+ * If the \p uuid_parameter parameter doesn't exist, this function checks for the \p name_parameter 'device_name'
122+ * parameter. If found, a device_id is generated by computing a hash on the provided string. See
123+ * fuse_core::uuid::generate(const std::string&) for details.
124124 *
125125 * If neither parameter exits, the device_id is populated by all zeros, the so-called NIL UUID.
126126 *
127127 * Will throw if the device_id parameter is not in an expected format.
128128 *
129129 * @param[in] node_handle A node handle in the desired parameter namespace
130- * @return A device UUID
130+ * @param[in] uuid_parameter The parameter name that holds the device uuid to be loaded
131+ * @param[in] name_parameter The parameter name that holds the device name. The uuid will be generated from the name.
132+ * @param[in] silent If true, no ROS log warnings are generated
133+ * @return A device UUID
131134 */
132- fuse_core::UUID loadDeviceId (const ros::NodeHandle& node_handle);
135+ fuse_core::UUID loadDeviceId (
136+ const ros::NodeHandle& node_handle,
137+ const std::string& uuid_parameter = " device_id" ,
138+ const std::string& name_parameter = " device_name" ,
139+ bool silent = true );
133140
134141} // namespace fuse_variables
135142
0 commit comments