rdf_loader second constructor needs ros_name default variable set too #3538
+4
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Steps to reproduce:
When calling RobotModelLoader::configure at the statement below
moveit2/moveit_ros/planning/robot_model_loader/src/robot_model_loader.cpp
Line 111 in 7d6e2ab
As shown currently ros_name_ is not set in the second constructor for the rd_loader_
moveit2/moveit_ros/planning/rdf_loader/src/rdf_loader.cpp
Line 91 in 7d6e2ab
Then when attempting to create a kinematic plugin loader below at line 268
moveit2/moveit_ros/planning/robot_model_loader/src/robot_model_loader.cpp
Line 268 in 7d6e2ab
The getRobotDescription() method returns ros_name_ which is currently set to "":
moveit2/moveit_ros/planning/rdf_loader/include/moveit/rdf_loader/rdf_loader.hpp
Line 85 in 7d6e2ab
moveit2/moveit_ros/planning/kinematics_plugin_loader/include/moveit/kinematics_plugin_loader/kinematics_plugin_loader.hpp
Line 61 in 7d6e2ab
At line 260 of kinematics_plugin_loader the kinematics_param_prefix is set with an empty string from robot_desription_ leading to a string starting with "_kinematics."
moveit2/moveit_ros/planning/kinematics_plugin_loader/src/kinematics_plugin_loader.cpp
Line 260 in 7d6e2ab
moveit2/moveit_ros/planning/kinematics_plugin_loader/src/kinematics_plugin_loader.cpp
Line 265 in 7d6e2ab
This cases the error to be logged:
moveit2/moveit_ros/planning/kinematics_plugin_loader/src/kinematics_plugin_loader.cpp
Line 270 in 7d6e2ab
[DEBUG 1753159891.197749171] [operation_solver.moveit.core.robot_state]: No kinematics solver instantiated for group 'manipulator' (setFromIK() at /home/ros/ros2/src/moveit2/moveit_core/robot_state/src/robot_state.cpp:1863)Checklist