yuxiang-gao / drivenet_ros

Test ROS package of NVIDIA Driveworks sample
2 stars 6 forks source link

cmake #1

Open kerimyener opened 6 years ago

kerimyener commented 6 years ago

Hello @DavidGogh I have been working on drivepx2 for 1 months. I recently found your code and I appreciate it. But I could not run it. Could you tell me what do you mean by "need to manually change the directories for driveworks and driveworks lib. I used ccmake to do it. "? driveworks and driveworks lib have already been declared in cmakelist.

yuxiang-gao commented 6 years ago

Hi @kerimyener This is just a crude, proof-of-concept project to try compiling driveworks examples in ROS and I didn't expect anyone to notice it. I haven't worked on this project for a while so my recollection could be a little fuzzy. First of all, when you say you couldn't run it, I take that you meant you couldn't compile it. I don't think your problems are from driveworks dir, though. don't mind the readme. But you still need to figure out your driveworks dir and change the CMakeList accordingly. One crucial part I didn't mention in the readme (my bad) is that when I was working on this, Nvidia's sample codes need to be cross-compiled on a PC first (They promised to fix this in the next update), so in order to compile their sample code in ROS I had to cross-compile the sample and copy the entire cmake folder generated on PC to ROS directory, which is the cmake folder you see in my package. Therefore, I suggest you try to generate the cmake files and replace the cmake folder in my repo first since my cmake files are not likely to be compatible with your system. After that there are still few things to do, please refer to the comment in line 9-13 in Cmakelist.txt. Hope this helps.