ros-perception / image_common

Common code for working with images in ROS
http://www.ros.org/wiki/image_common
124 stars 219 forks source link

Added rclcpp component to Republish #275

Closed ahcorde closed 6 months ago

ahcorde commented 1 year ago

These changes allow to use the republisher as a rclcpp_component and as a normal node.

An example of how to use this:

ros2 run image_transport republish --in_transport compressed in/compressed:=/camera/image/compressed out/compressed:=/camera/republish/compressed out:=/camera/republish/image_raw
ahcorde commented 6 months ago

When using --out_transport the app is crashing.

ahcorde commented 6 months ago

Yep, but I have now this awesome message

Warning: class_loader.ClassLoader: SEVERE WARNING!!! Attempting to unload library while objects created by this loader exist in the heap! You should delete your objects before attempting to unload the library or destroying the ClassLoader. The library will NOT be unloaded.
         at line 127 in /home/ahcorde/ros2_rolling/src/ros/class_loader/src/class_loader.cpp
ahcorde commented 6 months ago

Error is fixed too. The loader need to keep alive too

mikeferguson commented 6 months ago

Honestly - probably 70% of the ROS codebase that uses pluginlib has that error on shutdown

ahcorde commented 6 months ago
ahcorde commented 6 months ago