Is it possible to build and run a cpp nodelet without Catkin or rosbuild??
This is similar to link text but with using Nodelets instead of nodes. Thanks.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Yes, it is possible, although I wouldn't recommend it due to the difficulty of reproducing all the functionality offered by Catkin. rosbuild is easier to do without; you can just call CMake manually on your CMakeLists.txt
file.
The main difference of building a nodelet from building a node is that you need to build a shared library rather than an executable.
Other nodes will be using pluginlib
to discover and load the nodelet (ie: shared library), and pluginlib
uses rospkg
. The latter will only consider directories with a manifest in them as "ROS packages", so at the very minimum you'd have to place a package.xml
with the correct contents in a directory. That manifest could then point to wherever the shared library is which hosts the nodelet class.
As "a directory with a manifest" is basically the definition of a package (at least at the file system level), theoretically this could work, but you'd essentially still be creating a package.
Edit: that's assuming the consumers of your nodelet-not-built-using-Catkin are in fact regular ROS nodes.
Edit 2: perhaps also good to mention: Catkin the CMake macros/functions/syntactic sugar != catkin_make
(ie: the tool). Those are often confused/conflated.
Asked: 2022-01-05 14:26:09 -0500
Seen: 220 times
Last updated: Jan 05 '22
ROS was unable to find the package name while creating new moveit configuration package?
How to catch nodelet shutdown signal?
Implement shared memory data publishing between nodelets [closed]
Can robot_localization be used with Noetic?
Cannot locate node of type [rf2o_laser_odometry_node]
what's the key-id in trusted.gpg.d?
Trying to make my first ROS program using Visual Studio
Uncertain behavior of hand eye calibration
How to make catkin_make use correct opencv version ?
How to merge two LaserScans to one LaserScan with different frame_ids