Skip to content

Commit

Permalink
Fix for issue#1415
Browse files Browse the repository at this point in the history
Fixes the issue which leads the code to completely ignore custom cameras defined in the settings file
  • Loading branch information
michael-fonder committed Oct 9, 2018
1 parent 6ebe2e2 commit 4b657ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Unreal/Plugins/AirSim/Source/PawnSimApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
PawnSimApi::PawnSimApi(const Params& params)
: params_(params), ned_transform_(params.pawn, *params.global_transform)
{
image_capture_.reset(new UnrealImageCapture(&params_.cameras));

msr::airlib::Environment::State initial_environment;
initial_environment.position = getPose().position;
initial_environment.geo_point = params_.home_geopoint;
Expand All @@ -41,6 +39,8 @@ PawnSimApi::PawnSimApi(const Params& params)
initial_state_.was_last_move_teleport = canTeleportWhileMove();

setupCamerasFromSettings(params_.cameras);
image_capture_.reset(new UnrealImageCapture(&cameras_));

//add listener for pawn's collision event
params_.pawn_events->getCollisionSignal().connect_member(this, &PawnSimApi::onCollision);
params_.pawn_events->getPawnTickSignal().connect_member(this, &PawnSimApi::pawnTick);
Expand Down

0 comments on commit 4b657ad

Please sign in to comment.