parameters: (self,
              robot: Union[RobotModel,int],
              s: Vector3,
              d: Vector3
          )
return_statement: return self.rayCast(s,d,rindices)
docstring: Finds the first collision between a ray and a robot.
  
          Args:
              robot (RobotModel or int): the robot
              s (list of 3 floats): the ray source
              d (list of 3 floats): the ray direction
  
          Returns:
              The (object,point) pair or None if no collision is found.
docstring_summary: Finds the first collision between a ray and a robot.
docstring_tokens: Finds the first collision between a ray and a robot .
function: def rayCastRobot(self,
              robot: Union[RobotModel,int],
              s: Vector3,
              d: Vector3
          ) -> Union[None,Tuple[RobotModelLink,Vector3]]:
          """Finds the first collision between a ray and a robot.
  
          Args:
              robot (RobotModel or int): the robot
              s (list of 3 floats): the ray source
              d (list of 3 floats): the ray direction
  
          Returns:
              The (object,point) pair or None if no collision is found.
          """
          if isinstance(robot,RobotModel):
              try:
                  robot = [r for r in range(self.world.numRobots()) if self.world.robot(r).getID()==robot.getID()][0]
              except IndexError:
                  raise RuntimeError("Robot "+robot.getName()+" is not found in the world!")
          rindices = self.robots[robot]
          return self.rayCast(s,d,rindices)
function_tokens: def rayCastRobot ( self , robot : Union [ RobotModel , int ] , s : Vector3 , d : Vector3 ) -> Union [ None , Tuple [ RobotModelLink , Vector3 ] ] : if isinstance ( robot , RobotModel ) : try : robot = [ r for r in range ( self . world . numRobots ( ) ) if self . world . robot ( r ) . getID ( ) == robot . getID ( ) ] [ 0 ] except IndexError : raise RuntimeError ( "Robot " + robot . getName ( ) + " is not found in the world!" ) rindices = self . robots [ robot ] return self . rayCast ( s , d , rindices )