Other Parts Discussed in Thread: IWR6843AOP, IWR6843
I started with the ROS Driver Demo with an IWR6843AOP and everything works fine there. I use Ubuntu 18.04.
Now I want to use your GTRACK algorithm to tracking targets in the ROS environment. Therefore I created a new ROS packages "gtrack_minimal". This package contains the class "gtrackROS", which includes the "gtrack.h" - file from the GTRACK Algorithm and a file "gtrackHdl.cpp", which is the executable and includes the main function.
So in gtrackHdl.cpp main I create an object of gtrackROS and call a member function. In this member function the gtrack_create function is called, but I get the error "undefined reference to 'gtrack-create'".
The question is why?
I assume, that the library has to be linked within the CMake file, but I don't know how.
Furthermore I'm not sure where to implement the Dependencies (gtrack_alloc(), gtrack_free(), gtrack_log()).
I added my code as .zip file.
File structure:
- catkin_ws
- build
- devel
- src
- gtrack_minimal
-include
- gtrackROS.h (#include gtrack.h)
- src
- gtrackHdl.cpp (#include gtrackROS.h)
- CMakeList.txt
- package.xml
- other packages, for example ti_mmwave_rospkg
- CMakeList.txt (include directory: /home/user/ti/sdk..../ti/alg/gtrack/)
Thanks in Advance!
Best Regards,
Anne-Mira