Skip to content

Commit

Permalink
Fix some warnings, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rajat2004 committed Feb 12, 2021
1 parent 6d011f4 commit 7304f21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions AirLib/include/api/WorldSimApiBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#define air_WorldSimApiBase_hpp

#include "common/CommonStructs.hpp"
#include "common/ImageCaptureBase.hpp"

namespace msr { namespace airlib {

Expand Down
1 change: 0 additions & 1 deletion Unreal/Plugins/AirSim/Source/PawnSimApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class PawnSimApi : public msr::airlib::VehicleSimApiBase {
typedef msr::airlib::real_T real_T;
typedef msr::airlib::Utils Utils;
typedef msr::airlib::AirSimSettings::VehicleSetting VehicleSetting;
typedef msr::airlib::ImageCaptureBase ImageCaptureBase;

struct Params {
APawn* pawn;
Expand Down
8 changes: 4 additions & 4 deletions Unreal/Plugins/AirSim/Source/WorldSimApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ class WorldSimApi : public msr::airlib::WorldSimApiBase {
virtual std::vector<float> getDistortionParams(const std::string& camera_name, const std::string& vehicle_name = "",
bool external = false) const override;

std::vector<ImageCaptureBase::ImageResponse> getImages(const std::vector<ImageCaptureBase::ImageRequest>& requests,
const std::string& vehicle_name = "", bool external = false) const;
std::vector<uint8_t> getImage(const std::string& camera_name, ImageCaptureBase::ImageType image_type,
const std::string& vehicle_name = "", bool external = false) const;
virtual std::vector<ImageCaptureBase::ImageResponse> getImages(const std::vector<ImageCaptureBase::ImageRequest>& requests,
const std::string& vehicle_name = "", bool external = false) const override;
virtual std::vector<uint8_t> getImage(const std::string& camera_name, ImageCaptureBase::ImageType image_type,
const std::string& vehicle_name = "", bool external = false) const override;

private:
AActor* createNewActor(const FActorSpawnParameters& spawn_params, const FTransform& actor_transform, const Vector3r& scale, UStaticMesh* static_mesh);
Expand Down

0 comments on commit 7304f21

Please sign in to comment.