File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
rviz_common/src/rviz_common Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,17 +79,17 @@ void ToolManager::initialize()
79
79
// get a list of available tool plugin class ids
80
80
auto plugins = factory_->getDeclaredPlugins ();
81
81
// define a list of preferred tool names (they will be listed first in the toolbar)
82
- std::vector<const char *> preferred_tool_names = {
82
+ std::vector<const char *> preferred_tool_class_ids = {
83
83
" rviz_default_plugins/MoveCamera" ,
84
84
" rviz_default_plugins/Interact" ,
85
85
" rviz_default_plugins/Select" ,
86
86
" rviz_default_plugins/SetInitialPose" ,
87
87
" rviz_default_plugins/SetGoal" ,
88
88
};
89
89
// attempt to load each preferred tool in order
90
- for (const auto & preferred_tool_name : preferred_tool_names ) {
90
+ for (const auto & preferred_tool_class_id : preferred_tool_class_ids ) {
91
91
for (const auto & plugin : plugins) {
92
- if (plugin.name .toStdString () == preferred_tool_name ) {
92
+ if (plugin.id .toStdString () == preferred_tool_class_id ) {
93
93
addTool (plugin);
94
94
}
95
95
}
You can’t perform that action at this time.
0 commit comments