-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade setCameraOrientation to setCameraPose #2624
Conversation
Also need to change the function in Unity |
@rajat2004 I added the corresponding Unity implementation: it would be great if you can give it a shot in Unity. |
Yeah, will try to test it out today. It's a bit difficult to test Unity right now since it's currently broken in master and needs #2328 to get it running |
@rajat2004 Hey, could you please give this a shot when you get a chance? |
|
||
Args: | ||
camera_name (str): Name of the camera to be controlled | ||
orientation (airsim.Quaternion()): Quaternion representing the desired orientation of the camera | ||
orientation (airsim.Pose()): Pose representing the desired position and orientation of the camera |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Pose
here
``` | ||
client.simSetCameraOrientation(0, airsim.to_quaternion(0.261799, 0, 0)); #radians | ||
camera_pose = airsim.Pose(airsim.Vector3(0, 0, 0), airsim.to_quaternion(0.261799, 0, 0)) #RPY in radians |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vector3r
@saihv Sorry for the delay. I had completed the Unity setup in the weekend but forgot to test it out I've opened saihv#2 which is a rebased version of this PR along with extra commits to add a missing The PR can't be merged right now, but probably after rebase should be mergeable. Or would you prefer that I open the PR directly against the master branch of this repo? Also, is there any example script which uses this right now? I tested that there wasn't any crash or something which happened on calling this but nothing more till now. There are also problems with the Unity API right now, so can't be completely sure. Will update about any further testing Update: Yeah, so I tested a bit more using
Pose is getting modified, so that should be okay I think |
Thanks @rajat2004 - haven't been able to get around to this again recently. Let's continue discussion in the updated PR |
Closing in favor of #2710 |
setCameraPose now takes a pose argument instead of just orientation. Commanded pose is expected to contain position in NED, relative to default camera location.
Status: