Skip to content
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 #2710

Merged
merged 5 commits into from
Jul 22, 2020

Conversation

rajat2004
Copy link
Contributor

@rajat2004 rajat2004 commented May 21, 2020

Replaces #2624

From the original PR -

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:

airsim_client_.simSetCameraOrientation(gimbal_cmd_.camera_name, gimbal_cmd_.target_quat, gimbal_cmd_.vehicle_name);
// Only camera rotation, no translation movement of camera
airsim_client_.simSetCameraPose(gimbal_cmd_.camera_name, get_airlib_pose(0, 0, 0, gimbal_cmd_.target_quat),
gimbal_cmd_.vehicle_name);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change needs a review, in regards to whether new fields should be added to the Gimbal message, current implementation, etc.

Copy link
Contributor

@madratman madratman Jul 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's okay, as Gimbal usually implies an orientation only.
For completeness, I think it calls for a new setCameraPose service in a new computer vision mode, but I'd consider that outside the scope of this PR.

@rajat2004
Copy link
Contributor Author

Might be better to merge this after #2712 just to make sure

@madratman
Copy link
Contributor

/azp run microsoft.AirSim

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mihailk239
Copy link

Please add same functional for python client.

@rajat2004
Copy link
Contributor Author

@mihailk239 The Python API change is there in the PR, see client.py
Should there be a backwards compatible layer, which calls the new API with 0 position? @madratman @saihv

@sandilyasg
Copy link

@rajat2004 @madratman @saihv for setCameraPose to work, does settings.json need to be in ComputerVision model only? Or does this also work in Multirotor mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants