#NEWLINE# def resetCameraToRobot( view ) : #NEWLINE# #INDENT# t = robotModel . getLinkFrame ( 'pelvis' ) #NEWLINE# if ( t is None ) : #NEWLINE# #INDENT# t = vtk . vtkTransform ( ) #NEWLINE# #UNINDENT# focalPoint = [ 0.0 , 0.0 , 0.25 ] #NEWLINE# position = [ ( - 4.0 ) , ( - 2.0 ) , 2.25 ] #NEWLINE# t . TransformPoint ( focalPoint , focalPoint ) #NEWLINE# t . TransformPoint ( position , position ) #NEWLINE# flyer = cameracontrol . Flyer ( view ) #NEWLINE# flyer . zoomTo ( focalPoint , position )