unit6_pp/scripts/planner_solution.py
def _getSegment(self, uuid):
        """ Get the segment that corresponds to the given ID.

        :param uuid: The id of the segment.
        :type uuid: uuid_msgs/UniqueID

        :return: The segment for the given uuid.
        :rtype: geographic_msgs/RouteSegment if the segment is found, None otherwise.
        """
        for seg in self.graph.segments:
            if seg.id == uuid:
                return seg
        return None
 Get the segment that corresponds to the given ID.

        :param uuid: The id of the segment.
        :type uuid: uuid_msgs/UniqueID

        :return: The segment for the given uuid.
        :rtype: geographic_msgs/RouteSegment if the segment is found, None otherwise.
        
Get the segment that corresponds to the given ID.
Get the segment that corresponds to the given ID .
def _getSegment(self, uuid):
        for seg in self.graph.segments:
            if seg.id == uuid:
                return seg
        return None
def _getSegment ( self , uuid ) : for seg in self . graph . segments : if seg . id == uuid : return seg return None
Get the segment that corresponds to the given ID.
Get the segment that corresponds to the given ID .
""" Get the segment that corresponds to the given ID.

        :param uuid: The id of the segment.
        :type uuid: uuid_msgs/UniqueID

        :return: The segment for the given uuid.
        :rtype: geographic_msgs/RouteSegment if the segment is found, None otherwise.
        """
The segment for the given uuid.
The segment for the given uuid .
geographic_msgs/RouteSegment if the segment is found, None otherwise.
self
uuid
The id of the segment.
The id of the segment .