moveit / moveit2

:robot: MoveIt for ROS 2
https://moveit.ai/
BSD 3-Clause "New" or "Revised" License
983 stars 493 forks source link

Namespace collision with plugin factory for class rviz_default_plugins::displays::InteractiveMarkerDisplay. #2823

Open ycheng517 opened 2 months ago

ycheng517 commented 2 months ago

Description

When RViz2 is launched with moveit's MotionPlanning plugin, a severe warning is printed onto the screen related to moveit overriding InteractiveMarkerDisplay. Is there any way to make the warning go away?

Your environment

Steps to reproduce

Run RViz2 with the moveit_ros_visualization/MotionPlanning plugin specified in the config.

Expected behaviour

No severe warnings.

Actual behaviour

A severe warning is printed onto the screen related to moveit overriding InteractiveMarkerDisplay.

Backtrace or Console output

[rviz2-2] Warning: class_loader.impl: SEVERE WARNING!!! A namespace collision has occurred with plugin factory for class rviz_default_plugins::displays::InteractiveMarkerDisplay. New factory will OVERWRITE existing one. This situation occurs when libraries containing plugins are directly linked against an executable (the one running right now generating this message). Please separate plugins out into their own library or just don't link against the library and use either class_loader::ClassLoader/MultiLibraryClassLoader to open.
[rviz2-2]          at line 321 in /opt/ros/iron/include/class_loader/class_loader/class_loader_core.hpp
github-actions[bot] commented 2 weeks ago

This issue is being labeled as stale because it has been open 45 days with no activity. It will be automatically closed after another 45 days without follow-ups.