• attachment:emptyPythonTemplate.py of pilz_robots/Tutorials/ProgramRobotWithPythonAPI

Attachment 'emptyPythonTemplate.py'

Download

   1 #!/usr/bin/env python 
   2 
   3 from geometry_msgs.msg import Pose, Point
   4 from pilz_robot_programming import *
   5 import math
   6 import rospy
   7 
   8 __REQUIRED_API_VERSION__ = "0"  # API version
   9 __ROBOT_VELOCITY__ = 0.5        # velocity of the robot
  10 
  11 # main program
  12 def start_program():
  13     pass # do nothing
  14 
  15 if __name__ == "__main__":
  16     # init a rosnode
  17     rospy.init_node('robot_program_node')
  18 
  19     # initialisation
  20     r = Robot(__REQUIRED_API_VERSION__)  # instance of the robot
  21 
  22     # start the main program
  23     start_program()

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2019-01-10 12:51:31, 347.7 KB) [[attachment:Dateiaufbau.png]]
  • [get | view] (2018-11-21 09:23:35, 219.3 KB) [[attachment:RVIZ_Deselect_MotionPlanning.png]]
  • [get | view] (2018-11-21 13:38:57, 101.9 KB) [[attachment:Read_RViz_coordinates.png]]
  • [get | view] (2018-12-05 10:59:00, 0.5 KB) [[attachment:emptyPythonTemplate.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.