Skip to content

Commit

Permalink
Add Unity implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
rajat2004 committed Mar 29, 2021
1 parent cbd72ca commit 7ffdcec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Unity/AirLibWrapper/AirsimWrapper/Source/WorldSimApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,10 @@ bool WorldSimApi::addVehicle(const std::string& vehicle_name, const std::string&
return false;
}

std::string WorldSimApi::getSettingsString() const
{
return msr::airlib::AirSimSettings::singleton().settings_text_;
}


#pragma endregion
2 changes: 2 additions & 0 deletions Unity/AirLibWrapper/AirsimWrapper/Source/WorldSimApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class WorldSimApi : public msr::airlib::WorldSimApiBase
virtual bool createVoxelGrid(const Vector3r& position, const int& x_size, const int& y_size, const int& z_size, const float& res, const std::string& output_file) override;
virtual bool addVehicle(const std::string& vehicle_name, const std::string& vehicle_type, const Pose& pose, const std::string& pawn_path = "") override;

virtual std::string getSettingsString() const override;

private:
SimModeBase * simmode_;
std::string vehicle_name_;
Expand Down

0 comments on commit 7ffdcec

Please sign in to comment.