Skip to content

Commit

Permalink
added missing package and changed flightpilot env
Browse files Browse the repository at this point in the history
  • Loading branch information
slimeth committed Dec 7, 2020
1 parent da84480 commit 8dc7b8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions flightros/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
<depend>eigen_conversions</depend>
<depend>image_transport</depend>
<depend>cv_bridge</depend>
<depend>mav_msgs</depend>

</package>
5 changes: 3 additions & 2 deletions flightros/src/pilot/flight_pilot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace flightros {
FlightPilot::FlightPilot(const ros::NodeHandle &nh, const ros::NodeHandle &pnh)
: nh_(nh),
pnh_(pnh),
scene_id_(UnityScene::WAREHOUSE),
scene_id_(UnityScene::INDUSTRIAL),
unity_ready_(false),
unity_render_(false),
receive_id_(0),
Expand Down Expand Up @@ -71,7 +71,8 @@ void FlightPilot::poseCallback(const nav_msgs::Odometry::ConstPtr &msg) {
unity_bridge_ptr_->handleOutput();

if (quad_ptr_->getCollision()) {
std::cout << "Quad collided with environment! \n" << std::endl;
// collision happened
std::cout << "c";
}
}
}
Expand Down

0 comments on commit 8dc7b8b

Please sign in to comment.