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

How can get global map in Airsim #3150

Closed
Han-Sin opened this issue Nov 18, 2020 · 4 comments
Closed

How can get global map in Airsim #3150

Han-Sin opened this issue Nov 18, 2020 · 4 comments

Comments

@Han-Sin
Copy link

Han-Sin commented Nov 18, 2020

oh guys. I do drone simulation in Airsim using unreal Engine. I want to get the global map information from Airsim, but i don't know how to do it. Is there any API for me to do it? Please help me, I really need it.

@GimpelZhang
Copy link
Contributor

Related issue I guess: #3108

As the comment mentioned in the above issue, simGetObjectPose and simSetObjectPose can manipulate with objects position ground truth. So I think these may help with the space map generation.

@jonyMarino
Copy link
Collaborator

Hi @Han-Sin, and welcome!
In this file are the related methods to your question, in particular the ones I have selected.

vector<string> simListSceneObjects(const string& name_regex = string(".*")) const;
Pose simGetObjectPose(const std::string& object_name) const;
bool simLoadLevel(const string& level_name);
Vector3r simGetObjectScale(const std::string& object_name) const;
bool simSetObjectPose(const std::string& object_name, const Pose& pose, bool teleport = true);
bool simSetObjectScale(const std::string& object_name, const Vector3r& scale);

Good luck!

@jonyMarino jonyMarino changed the title Ubuntu: How can get global map in Airsim How can get global map in Airsim Jan 4, 2021
@jonyMarino jonyMarino reopened this Jan 4, 2021
@jonyMarino
Copy link
Collaborator

Closed due to inactivity. Please, feel free to ask for it to be reopened if you wish to continue posting.

@saihv
Copy link
Contributor

saihv commented Jan 4, 2021

Please see #3209 for a way to generate 'global maps' as voxel grids.

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

No branches or pull requests

4 participants