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.You are not allowed to attach a file to this page.