waypoint.py
Use Case
waypoint.py can be used to add, edit, delete, and run specific waypoints. Waypoints allow AXIBO to have predefined routes to follow.
Available Functions
create_waypointJson(json_format)
Creates a waypoint using a json formatted python object.
Valid json_format
entries:
json formatted python object
create_waypoint(name, pan = 0, tilt = 0, slide = 0, focus = 0, zoom = 0, duration = "00:00:00.000")
create_waypoint(name, pan = 0, tilt = 0, slide = 0, focus = 0, zoom = 0, duration = "00:00:00.000")
Creates a waypoint.
Valid name
entries:
String formatted name
Valid pan
entries:
Valid pan position
Valid tilt
entries:
Valid tilt position
Valid slide
entries:
Valid slide position
Valid focus
entries:
Valid focus position
Valid zoom
entries:
Valid zoom position
Valid duration
entries:
String in the format of "HOURS:MINUTES:SECONDS.MILLISECONDS"
Example:
"00:00:10.000"
= 10 seconds
add_point(name, pan = 0, tilt = 0, slide = 0, focus = 0, zoom = 0, duration = "00:00:00.000")
add_point(name, pan = 0, tilt = 0, slide = 0, focus = 0, zoom = 0, duration = "00:00:00.000")
Adds a point to a pre-existing waypoint (at the end of the waypoint list).
Valid name
entries:
Pre-existing waypoint name (string)
Valid pan
/ tilt
/ slide
/ focus
/ zoom
/ duration
entries:
See here
edit_point(name, point, pan = 0, tilt = 0, slide = 0, focus = 0, zoom = 0, duration = "00:00:00")
edit_point(name, point, pan = 0, tilt = 0, slide = 0, focus = 0, zoom = 0, duration = "00:00:00")
Edit a pre-existing point of a waypoint.
Valid point
entries:
Integer value of the points position (starting at index = 0)
Valid name
/ pan
/ tilt
/ slide
/ focus
/ zoom
/ duration
entries:
See here
delete_waypoint(name)
delete_waypoint(name)
Deletes the specified waypoint.
Valid name
entry:
String formatted name of a existing waypoint
get_waypoint_list()
get_waypoint_list()
Returns the a list of waypoints.
get_waypoint(name)
get_waypoint(name)
Returns the specific points of a waypoint.
Valid name
entry:
String formatted name of a existing waypoint
waypoint_run(name)
waypoint_run(name)
Runs the specific waypoint.
Valid name
entry:
String formatted name of a existing waypoint
Example:
from axibo import Axibo
if __name__ == '__main__':
#Change for you AXIBOs IP Address
x = Axibo("10.0.0.205")
#Delete waypoints
#Uncomment if you have ran this program once already
#x.waypoint.delete_waypoint("example")
#Creates a default point 0
x.waypoint.create_waypoint(name = "example")
x.waypoint.add_point(name = "example", pan = 0, tilt = 0, slide = 50, duration = "00:00:05.000")
x.waypoint.add_point(name = "example", pan = 90, tilt = 0, slide = 0, duration = "00:00:05.000")
#Point 3
x.waypoint.add_point(name = "example", pan = -90, tilt = 0, slide = 0, duration = "00:00:05.000")
x.waypoint.add_point(name = "example", pan = 0, tilt = 45, slide = 0, duration = "00:00:03.000")
x.waypoint.add_point(name = "example", pan = 0, tilt = -45, slide = 0, duration = "00:00:06.000")
x.waypoint.edit_point("example", 3, pan = -90, tilt = 0, slide = 0, duration = "00:00:010.000")
x.waypoint.waypoint_run("example")
Last updated