Skip to content

Commit

Permalink
Fix namespace usages in AirLib
Browse files Browse the repository at this point in the history
Remove `using namespace msr::airlib`
  • Loading branch information
rajat2004 committed Mar 31, 2022
1 parent efa1873 commit c11b19a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions AirLib/include/vehicles/multirotor/api/MultirotorApiBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#include <thread>
#include <memory>

using namespace msr::airlib;

namespace msr
{
namespace airlib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ namespace airlib_rpclib
KinematicsState kinematics_true;
GeoPoint gps_location;
uint64_t timestamp;
LandedState landed_state;
msr::airlib::LandedState landed_state;
RCData rc_data;
bool ready;
std::string ready_message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Axis4 : public Axis3<T>
(*this)[axis] = axis3[axis];
}

void setValues(const vector<T>& vals)
void setValues(const std::vector<T>& vals)
{
(*this)[0] = vals[0];
(*this)[1] = vals[1];
Expand Down
4 changes: 4 additions & 0 deletions Examples/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ void runGaussianMarkovTest()

void runDepthNavGT()
{
using namespace msr::airlib;

typedef ImageCaptureBase::ImageRequest ImageRequest;
typedef ImageCaptureBase::ImageType ImageType;

Expand Down Expand Up @@ -122,6 +124,8 @@ void runDepthNavGT()

void runDepthNavSGM()
{
using namespace msr::airlib;

typedef ImageCaptureBase::ImageRequest ImageRequest;
typedef ImageCaptureBase::ImageType ImageType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class MultirotorPawnSimApi : public PawnSimApi
} pending_pose_status_;

//show info on collision response from physics engine
CollisionResponse collision_response;
msr::airlib::CollisionResponse collision_response;

//when pose needs to set from non-physics thread, we set it as pending
bool pending_pose_collisions_;
Expand All @@ -64,4 +64,4 @@ class MultirotorPawnSimApi : public PawnSimApi
std::packaged_task<void()> reset_task_;
Pose last_phys_pose_; //for trace lines showing vehicle path
std::vector<std::string> vehicle_api_messages_;
};
};

0 comments on commit c11b19a

Please sign in to comment.