How to add a new nodelet to a ROS nodelet manager located in a different package [closed]

asked 2022-03-24 12:39:54 -0500

bonjiman gravatar image

I'm new to ROS (and CMake, especially) and I've been searching for answers to this question for awhile.

First, I'm using ROS1 Noetic on Ubuntu 20.04 LTS

I am using a LiDAR sensor on my project, and I am using a ROS driver package provided by the manufacturer. Their package is written using nodelets: one nodelet acts as the driver/publisher and a second nodelet acts as a subscriber that assembles ROS bags. I've written a nodelet source file of my own that does some processing on the data published by the LiDAR driver, and I'd like to patch this nodelet into the driver's nodelet manager. I'd like to put this nodelet (and the others I'll be writing) in their own package, while keeping the manufacturer-provided code in its own, separate package.

I made my package and linked the manufacturer's package as a dependency, wrote my nodelet source file in the same namespace as the manufacturer's nodelets (#include'ing the library from the manufacturer's ROS package), made my nodelets.xml file, edited my package.xml to export the nodelets.xml file, tried to write an appropriate CMakeLists.txt file, and then created a .launch file to launch the manufacturer's manager/nodelets followed by my own nodelet.

When I run catkin_make, everything builds without throwing any errors, but when I try to run everything I get the following messages in the terminal:

process[rosout-1]: started with pid [14738]

started core service [/rosout]

process[cepton_manager-2]: started with pid [14745]

process[cepton_driver-3]: started with pid [14747]

process[cepton_subscriber-4]: started with pid [14748]

process[cepton_pruner-5]: started with pid [14750]

process[cepton_rviz-6]: started with pid [14755]

[cepton_pruner-5] process has died [pid 14750, exit code 255, cmd /opt/ros/noetic/lib/nodelet/nodelet load vt_cepton/PrunerNodelet cepton_manager __name:=cepton_pruner

As you can see, the manufacturer's manager and driver load as expected, but I have trouble attaching my nodelet to the manufacturer's manager.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by bonjiman
close date 2022-03-26 16:09:13.160318

Comments

I'm not sure why the [INFO] and [ERROR] lines aren't showing

bonjiman gravatar image bonjiman  ( 2022-03-24 12:32:35 -0500 )edit