Skip to content

Commit

Permalink
Documentation fixes for simSetCameraPose
Browse files Browse the repository at this point in the history
  • Loading branch information
rajat2004 committed May 23, 2020
1 parent f606868 commit 121a03d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PythonClient/airsim/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def simSetCameraPose(self, camera_name, pose, vehicle_name = ''):
Args:
camera_name (str): Name of the camera to be controlled
orientation (airsim.Pose()): Pose representing the desired position and orientation of the camera
pose (Pose): Pose representing the desired position and orientation of the camera
vehicle_name (str, optional): Name of vehicle which the camera corresponds to
"""
# TODO: below str() conversion is only needed for legacy reason and should be removed in future
Expand Down
2 changes: 1 addition & 1 deletion docs/image_apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ The `simGetCameraInfo` returns the pose (in world frame, NED coordinates, SI uni

The `simSetCameraPose` sets the pose for the specified camera while taking an input pose as a combination of relative position and a quaternion in NED frame. The handy `airsim.to_quaternion()` function allows to convert pitch, roll, yaw to quaternion. For example, to set camera-0 to 15-degree pitch while maintaining the same position, you can use:
```
camera_pose = airsim.Pose(airsim.Vector3(0, 0, 0), airsim.to_quaternion(0.261799, 0, 0)) #RPY in radians
camera_pose = airsim.Pose(airsim.Vector3r(0, 0, 0), airsim.to_quaternion(0.261799, 0, 0)) #RPY in radians
client.simSetCameraPose(0, camera_pose);
```

Expand Down

0 comments on commit 121a03d

Please sign in to comment.