Skip to content

Commit

Permalink
Merge pull request #67 from memeQueenPaulaDeen/master
Browse files Browse the repository at this point in the history
Implemented camera rotation in y and z axis
  • Loading branch information
tawnkramer authored Jun 4, 2021
2 parents f1e05ca + 44986ab commit 78fa6be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gym_donkeycar/envs/donkey_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ def send_config(self, conf):
"offset_y",
"offset_z",
"rot_x",
"rot_y",
"rot_z",
],
)
try:
Expand All @@ -192,6 +194,8 @@ def send_config(self, conf):
"offset_y",
"offset_z",
"rot_x",
"rot_y",
"rot_z",
],
)
self.send_cam_config(**cam_config)
Expand Down Expand Up @@ -518,6 +522,8 @@ def send_cam_config(
offset_y=0,
offset_z=0,
rot_x=0,
rot_y=0,
rot_z=0
):
"""Camera config
set any field to Zero to get the default camera setting.
Expand All @@ -541,6 +547,8 @@ def send_cam_config(
"offset_y": str(offset_y),
"offset_z": str(offset_z),
"rot_x": str(rot_x),
"rot_y": str(rot_y),
"rot_z": str(rot_z),
}
self.blocking_send(msg)
time.sleep(0.1)
Expand Down

0 comments on commit 78fa6be

Please sign in to comment.