introlab / rtabmap_ros

RTAB-Map's ROS package.
http://wiki.ros.org/rtabmap_ros
BSD 3-Clause "New" or "Revised" License
997 stars 556 forks source link

PluginlibFactory: The plugin for class 'rtabmap_ros/MapGraph' failed to load. Error: According to the loaded plugin descriptions the class rtabmap_ros/MapGraph with base class type rviz::Display does not exist. #1191

Open leslie-fig opened 3 months ago

leslie-fig commented 3 months ago

I ran into this issue after downloading a navigation package and following the Readme file to execute the mapping command。By the way,it didn't work though I had install rtabmap-rviz packages.

matlabbe commented 3 months ago

Humm, can you do a sudo apt update && sudo apt upgrade ? Also if you built rtabmap_ros from source, clean your catkin or ros2 ws and rebuild everything. There are maybe unsync libraries.

leslie-fig commented 3 months ago

Humm, can you do a sudo apt update && sudo apt upgrade ? Also if you built rtabmap_ros from source, clean your catkin or ros2 ws and rebuild everything. There are maybe unsync libraries. Ok,I will try the method you offered me later。

leslie-fig commented 3 months ago

Humm, can you do a sudo apt update && sudo apt upgrade ? Also if you built rtabmap_ros from source, clean your catkin or ros2 ws and rebuild everything. There are maybe unsync libraries.

Humm, can you do a sudo apt update && sudo apt upgrade ? Also if you built rtabmap_ros from source, clean your catkin or ros2 ws and rebuild everything. There are maybe unsync libraries.

There is another issue I met that was "Failed to create the global_planner/GlobalPlanner planner, are you sure it is properly registered and that the containing library is built? Exception: According to the loaded plugin descriptions the class global_planner/GlobalPlanner with base class type nav_core::BaseGlobalPlanner does not exist. Declared types are carrot_planner/CarrotPlanner evolutionary_planner/EvolutionaryPlanner graph_planner/GraphPlanner lazy_planner/LazyPlanner navfn/NavfnROS sample_planner/SamplePlanner"。And some of the content above like "evolutionary_planner/EvolutionaryPlanner graph_planner/GraphPlanner lazy_planner/LazyPlanner" is in my other project when I was launching a navigation file。

matlabbe commented 3 months ago

Doublecheck if library containing nav_core::BaseGlobalPlanner is installed.

leslie-fig commented 3 months ago

Can u tell me how to check this problem that whether I'v installed the plugin or not?I'm not good at it。😭😭😭

leslie-fig commented 3 months ago

Doublecheck if library containing nav_core::BaseGlobalPlanner is installed.

2a4a2ff4-0f19-4ace-bff6-3f1b6191c91f The picture I show you that's my navigation launch file.And I have installed global-planner using "ros-noetic-global-planner" 。I found the solution that was using the command above to install nav_core::BaseGlobalPlanner.But the bug still remains,And I think why I can't solve this problem because of the error in the later paragraph.Weird 4e5a7f8d-4361-44e1-9d7b-6ede1977950c

matlabbe commented 2 months ago

ros-noetic-global-planner should have worked (as it declares that plugin here). You could try this planner instead (which seems to be installed in your error msg):

<param name="base_global_planner" value="navfn/NavfnROS"/>