intel / collision-avoidance-library

A framework for testing and benchmarking collision avoidance strategies
Apache License 2.0
81 stars 39 forks source link

Problem with basic tutorial #140

Open alfred316 opened 6 years ago

alfred316 commented 6 years ago

I am trying to work through the basic tutorial for the collision avoidance library after going through the steps in the Readme (https://github.com/intel/collision-avoidance-library) to install all the components correctly and get the coav-control command running. I was able to install realsense, gazebo, and set up the library correctly and have generated the libcoav library files in the /user/local/lib directories. However, I did not go the simulator steps under "simulation and automated tests" or the "deploy to intel aero" steps. I am not sure if I am supposed to do those yet, maybe you can shed some insight on that and maybe that will help with my following problem with the basic tutorial found here in the wiki: https://github.com/intel/collision-avoidance-library/wiki/TutorialBasic

I got the first part to work, which has us include the common.hh (I had to change the include line to ../src/common/common.hh for it to find the right file) but I am having trouble with the linking of the sensors/avoidance/common/vehicles/detection libraries as they were not created separately but rather are in libcoav which I include. I managed to get around that by removing the link to those libraries and add the correct include directory in my cmake gui and got the first step to run, but when I try to do the vehicle step I get an error telling me that "In function void __gnu_cxx::new_allocator<MavQuadCopter>::construct<MavQuadCopter>(MavQuadCopter*)': myapp.cc:(.text._ZN9__gnu_cxx13new_allocatorI13MavQuadCopterE9constructIS1_JEEEvPT_DpOT0_[_ZN9__gnu_cxx13new_allocatorI13MavQuadCopterE9constructIS1_JEEEvPT_DpOT0_]+0x32): undefined reference toMavQuadCopter::MavQuadCopter()'"

I feel like I missed some step somewhere. Can you shed some insight? I can provide screenshots and code if more specific information is needed.

Thank you for your time.

rchiossi commented 6 years ago

Which distro are you using? I'll try to reproduce the tutorial using the same environment.

alfred316 commented 6 years ago

Ubuntu 16.04.1.

thank you for your time! I appreciate it