ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

The easiest/simplest way you can do this without modifying much of your code right now, is by creating a ros package, and put all of your source in a folder within that package (i.e /camera_project/catkin_ws/src/stereo_camera_lib/). Then you can just create a node, which instantiates the class that runs everything. To make it even simpler, make sure all of the things that start your camera processing is in constructor of the class you are instantiating. So now at this point you should pretty much have 1 main line of code that starts everything. Its up to you how you want to spit your data through a rostopic. You dont really need a IDE to do that.

I dont 100% know how to correctly link your own libraries to a executable, so you can look at the CMakeList reference and try to figure out on how to link one.

The easiest/simplest way you can do this without modifying much of your code right now, is by creating a ros package, and put all of your source in a folder within that package (i.e /camera_project/catkin_ws/src/stereo_camera_lib/). Then you can just create a node, which instantiates the class that runs everything. To make it even simpler, make sure all of the things that start your camera processing is in constructor of the class you are instantiating. So now at this point you should pretty much have 1 main line of code that starts everything. Its up to you how you want to spit your data through a rostopic. You dont really need a IDE to do that.

I dont 100% know how to correctly link your own libraries to a executable, so you can look at the CMakeList reference and try to figure out on how to link one.


EDIT: To answer your question about the std print functions, ROS has pre-defined macros that already use these to print to screen. I would recommend using the ROS logging macros since they give you the capability switch between logging to a screen, or to a file, as well as set different debugging levels.

The easiest/simplest way you can do this without modifying much of your code right now, is by creating a ros package, and put all of your source in a folder within that package (i.e /camera_project/catkin_ws/src/stereo_camera_lib/). Then you can just create a node, which instantiates the class that runs everything. To make it even simpler, make sure all of the things that start your camera processing is in constructor of the class you are instantiating. So now at this point you should pretty much have 1 main line of code that starts everything. Its up to you how you want to spit your data through a rostopic. You dont really need a IDE to do that.

I dont 100% know how to correctly link your own libraries to a executable, so you can look at the CMakeList reference and try to figure out on how to link one.


EDIT: To answer your question about the std print functions, ROS has pre-defined macros that already use these to print to screen. I would recommend using the ROS logging macros since they give you the to capability switch between logging to a screen, or to a file, as well as set different debugging levels.