parameters: (self)
return_statement: return id
docstring: * \brief Generates a unique ID
          * \return A unique GoalID for this action
docstring_summary: * \brief Generates a unique ID
          * \return A unique GoalID for this action
docstring_tokens: * \ brief Generates a unique ID * \ return A unique GoalID for this action
function: def generate_ID(self):
          """
          * \brief Generates a unique ID
          * \return A unique GoalID for this action
          """
          id = GoalID();
          cur_time = rospy.Time.now();
          ss = self.name +  "-";
          global s_goalcount_lock
          global s_goalcount
          with s_goalcount_lock:
              s_goalcount += 1
              ss += str(s_goalcount) + "-";
          ss +=  str(cur_time.secs) + "." + str(cur_time.nsecs);
  
          id.id = ss;
          id.stamp = cur_time;
          return id;
function_tokens: def generate_ID ( self ) : id = GoalID ( ) cur_time = rospy . Time . now ( ) ss = self . name + "-" global s_goalcount_lock global s_goalcount with s_goalcount_lock : s_goalcount += 1 ss += str ( s_goalcount ) + "-" ss += str ( cur_time . secs ) + "." + str ( cur_time . nsecs ) id . id = ss id . stamp = cur_time return id