I've been trying to use Jetbrains CLion IDE for ROS programming, and for now it's working quite well. I'm able to run and debug ROS nodes, but I am having troubles with a node which uses the ImageTransport::subscribeCamera, which raises an exception when running it with the debugger.
The error message is:
[ INFO] [1448964578.745547058]: Connected to master at [localhost:11311]
Traceback (most recent call last):
File "/opt/ros/indigo/bin/catkin_find", line 11, in <module>
from catkin.find_in_workspaces import find_in_workspaces
ImportError: No module named catkin.find_in_workspaces
terminate called after throwing an instance of 'image_transport::TransportLoadException'
what(): Unable to load plugin for transport 'raw', error string:
Could not find library corresponding to plugin image_transport/raw_sub. Make sure the plugin description XML file has the correct name of the library and that the library actually exists.
Signal: SIGABRT (Aborted)
This does not happen when the debugger is not used (i.e. running it from CLion with the 'play' button), and neither happens when debugging the binary with gdb in the command line, in which cases the node seems to run correctly. I suspect it may be due to the Import Error that is shown before the exception, though I have not much idea about why this could be. I'm running CLion from a ROS-ready bash terminal.
Any idea on this?
Thank you in advance.
Originally posted by gcc05 on ROS Answers with karma: 5 on 2015-12-01
Post score: 0
Original comments
Comment by deliang on 2016-12-08:
how to setup Clion to debug ROS nodes within it? thanks!