szebedy / autonomous-drone

This repository intends to enable autonomous drone delivery with the Intel Aero RTF drone and PX4 autopilot. The code can be executed both on the real drone or simulated on a PC using Gazebo. Its core is a robot operating system (ROS) node, which communicates with the PX4 autopilot through mavros. It uses SVO 2.0 for visual odometry, WhyCon for visual marker localization and Ewok for trajectoy planning with collision avoidance.
167 stars 73 forks source link

trajectory_planner compiler error #14

Open 150202029 opened 4 years ago

150202029 commented 4 years ago

hi, During compilation, the package creates a compile problem. How can I solve this? errortre

szebedy commented 4 years ago

hi @150202029,

did you make sure all installation steps were successful? can you try deleting ~/catkin_ws and repeating the installation steps?

150202029 commented 4 years ago

Yes. all setup steps are successful. I deleted all the files and did it 3 times from the beginning, but the result is still the same

szebedy commented 4 years ago

are you using Ubuntu 16.04?

vish2701 commented 4 years ago

I also have the same problem. I am using Ubuntu 18.04 with ROS melodic. I have an error in the whycon_nodelet.cpp.

szebedy commented 4 years ago

The code in this repository was developed and tested on Ubuntu 16.04 with ROS kinetic. It probably will not work on other operating systems or versions. Please see README.md

szebedy commented 4 years ago

@150202029 are you using Ubuntu 16.04? did you manage to find a solution to the problem?

vish2701 commented 4 years ago

Okay, thankyou for your quick response!

Regards Vishwas Iyer

On Tue, 3 Mar, 2020, 16:04 szebedy, notifications@github.com wrote:

The code in this repository was developed and tested on Ubuntu 16.04. It probably will not work on other operating systems or versions. Please see README.md

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/szebedy/autonomous-drone/issues/14?email_source=notifications&email_token=AKZUAUUUYSPF2KSXICQKZFDRFUL6TA5CNFSM4K7FAAZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENT2V6I#issuecomment-593996537, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKZUAUUAO3MEBAIUDUQMY63RFUL6TANCNFSM4K7FAAZA .

dssdyx commented 4 years ago

I dont think it's the problem with Ubuntu 18.04, because I have complied successfully using Ubuntu 18.04. Maybe your Eigen version is not suited with the code. My verision is 3.3.4.

dssdyx commented 4 years ago

And you have to change whycon/src/ros/whycon_nodelet.cpp "PLUGINLIB_DECLARE_CLASS(whycon, WhyconNodelet, whycon::WhyconNodelet, nodelet::Nodelet)" to "PLUGINLIB_EXPORT_CLASS(whycon::WhyconNodelet, nodelet::Nodelet) "