Skip to content

Commit aa6706a

Browse files
authored
Merge pull request #100 from jgueldenstein/camera_rotation_rep103
rotation of camera for rep103 to webots viewport
2 parents db4be07 + 78b8f6f commit aa6706a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

urdf2webots/parserURDF.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ def export(self, file, indentationLevel):
289289
"""Export this camera."""
290290
indent = ' '
291291
file.write(indentationLevel * indent + 'Camera {\n')
292+
# rotation to convert from REP103 to webots viewport
293+
file.write(indentationLevel * indent + ' rotation 1.0 0.0 0.0 3.141591\n')
292294
file.write(indentationLevel * indent + ' name "%s"\n' % self.name)
293295
if self.fov:
294296
file.write(indentationLevel * indent + ' fieldOfView %lf\n' % self.fov)

0 commit comments

Comments
 (0)