Netbeans, ROS and debug
Hi guys, I want to develop and debug packages in ROS with Netbeans. I followed the Instructions at link text but I have some questions:
catkin_make is creating all his stuff inside my myworkspace/build/mypackage
(caktin, catkin_generated, MakeFile, etc.) and the executable in myworkspace/devel/lib/mypackage
but if I do it with Netbeans, all this stuff is inside myworkspace/src/mypackage
.
Is this a problem (e.g., ambiguity during compiling/running)?
When I compile with Netbeans and then with catkin_make
rosrun says that there are two executables and I have to choose. Is there a way to do something clean (e.g., putting all catkin/cmake/make stuff in a separate folder and the executable in a folder like mypackage/bin
even if I call catkin_make on the workspace? Why catkin is forcing us to have one place to compile all the packages in a folder far from them?
EDIT: After losing so much time I ended with this solution (I hope will be appreciated):
File -> New Project -> New Project with existing source
Next
In the folder with existing source myworkspace/src/mypackage
Custom
Next
configure script: myworkspace/src/CMakeLists.txt
This is the GLOBAL cmakefile of ROS, not the package one
configure arguments: -DCATKIN_DEVEL_PREFIX=myworkspace/devel
WITH ABSOLUTE PATH
run the configure script in subfolder: ../build
so that he's pointing to the global build space
Next until the end
This is the best I could. If anybody knows a CLEAN method to specify programmatically where to put Build Space, Devel Space and Install space inside the project CMakeLists.txt, please tell me