Skip to content

Commit

Permalink
added getCollision function to quad
Browse files Browse the repository at this point in the history
  • Loading branch information
slimeth committed Dec 7, 2020
1 parent 6ec96b3 commit 128ad7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions flightlib/include/flightlib/objects/quadrotor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class Quadrotor : ObjectBase {
Quaternion getQuaternion(void) const;
std::vector<std::shared_ptr<RGBCamera>> getCameras(void) const;
bool getCamera(const size_t cam_id, std::shared_ptr<RGBCamera> camera) const;
bool getCollision() const;

// public set functions
bool setState(const QuadState& state);
Expand Down
2 changes: 2 additions & 0 deletions flightlib/src/objects/quadrotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,6 @@ bool Quadrotor::getCamera(const size_t cam_id,
return true;
}

bool Quadrotor::getCollision() const { return collision_; }

} // namespace flightlib

0 comments on commit 128ad7e

Please sign in to comment.