Skip to content

Commit

Permalink
add camera move sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
tmori committed Jun 24, 2024
1 parent 1ce12ff commit b524524
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drone_api/sample/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def main():
transport(client, baggage_pos, transfer_pos)
debug_pos(client)

client.simSetCameraOrientation("0",15)

baggage_pos = { "x": 0, "y": 4 }
transfer_pos = { "x": 0, "y": -1, "z": 1.2 }
transport(client, baggage_pos, transfer_pos)
Expand Down Expand Up @@ -101,6 +103,9 @@ def main():
if png_image:
with open("scene.png", "wb") as f:
f.write(png_image)

client.simSetCameraOrientation("0",-90)

client.land()
debug_pos(client)

Expand Down

0 comments on commit b524524

Please sign in to comment.