unit6_pp/scripts/planner_solution.py
def _getSegmentLength(self, start_point_id, seg_id):
        """ Searches the segment with given id with given start point in a pre-cached list
            and return its length.

        :param start_point_id: The id of start point of the segment.
        :type start_point_id: uuid_msgs/UniqueID
        :param seg_id: The id of the segment.
        :type seg_id: uuid_msgs/UniqueID

        :return: Length of a segment.
        :rtype: float if the segment is found, None otherwise.
        """
        edges = self.edges[self.points.index(start_point_id.uuid)]
        for edge in edges:
            if edge.seg == seg_id:
                return edge.step_cost
        return None
 Searches the segment with given id with given start point in a pre-cached list
            and return its length.

        :param start_point_id: The id of start point of the segment.
        :type start_point_id: uuid_msgs/UniqueID
        :param seg_id: The id of the segment.
        :type seg_id: uuid_msgs/UniqueID

        :return: Length of a segment.
        :rtype: float if the segment is found, None otherwise.
        
Searches the segment with given id with given start point in a pre-cached list
and return its length.
Searches the segment with given id with given start point in a pre - cached list and return its length .
def _getSegmentLength(self, start_point_id, seg_id):
        edges = self.edges[self.points.index(start_point_id.uuid)]
        for edge in edges:
            if edge.seg == seg_id:
                return edge.step_cost
        return None
def _getSegmentLength ( self , start_point_id , seg_id ) : edges = self . edges [ self . points . index ( start_point_id . uuid ) ] for edge in edges : if edge . seg == seg_id : return edge . step_cost return None
Searches the segment with given id with given start point in a pre-cached list
and return its length.
Searches the segment with given id with given start point in a pre - cached list and return its length .
""" Searches the segment with given id with given start point in a pre-cached list
            and return its length.

        :param start_point_id: The id of start point of the segment.
        :type start_point_id: uuid_msgs/UniqueID
        :param seg_id: The id of the segment.
        :type seg_id: uuid_msgs/UniqueID

        :return: Length of a segment.
        :rtype: float if the segment is found, None otherwise.
        """
Length of a segment.
Length of a segment .
float if the segment is found, None otherwise.
self
start_point_id
The id of start point of the segment.
The id of start point of the segment .
seg_id
The id of the segment.
The id of the segment .