How to use Eclipse IDE for developing Ros2 packages?
In the past with ROS1, a simple command like catkin build MY_ROS1_PACKAGE_NAME --force-cmake -G"Eclipse CDT4 - Unix Makefiles"
would generate the necessary CMake project settings, so it could be imported in Eclipse via the Import > Existing Project
way. Does anyone know how to do this for ROS2 packages built with colcon? It seems that the idea of building individual packages from the workspace has changed and now we required to build the entire workspace.
Even after following the instructions in https://index.ros.org/doc/ros2/Tutori.... I am not able to Execute/Debug a node within Eclipse.
I'm new to ROS2, but I've been using ROS1 for quite a while. I'm probably missing some conceptual understanding of how colcon works, but it won't hurt to ask if there are any developers using ROS2 in Eclipse that can provide some insight.
we use qtcreator but i think eclipse will be similar (you'll need to look at cmake4eclipse in the eclipse market, and do read the help without reading the help you won't get there) : first open a terminal and then source the setup.sh from your ROS2 installation and from your ROS2 workspace. then launch qtcreator (and probably eclipse) from that terminal. after that, you'll be able to treat ros2 packages as ordinary cmake projects. for qtcreator enable the (disabled by default) clang plugins to get useful code insight.