Skip to content

Commit

Permalink
Merge pull request #100 from jgueldenstein/camera_rotation_rep103
Browse files Browse the repository at this point in the history
rotation of camera for rep103 to webots viewport
  • Loading branch information
omichel authored Jan 15, 2021
2 parents db4be07 + 78b8f6f commit aa6706a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions urdf2webots/parserURDF.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ def export(self, file, indentationLevel):
"""Export this camera."""
indent = ' '
file.write(indentationLevel * indent + 'Camera {\n')
# rotation to convert from REP103 to webots viewport
file.write(indentationLevel * indent + ' rotation 1.0 0.0 0.0 3.141591\n')
file.write(indentationLevel * indent + ' name "%s"\n' % self.name)
if self.fov:
file.write(indentationLevel * indent + ' fieldOfView %lf\n' % self.fov)
Expand Down

0 comments on commit aa6706a

Please sign in to comment.