Skip to content

Commit

Permalink
Load the URDF to the resource_manager before parsing it to CM (#222)
Browse files Browse the repository at this point in the history
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 5a94805)
  • Loading branch information
saikishor authored and mergify[bot] committed Jan 24, 2024
1 parent 196d96f commit 8092c42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ign_ros2_control/src/ign_ros2_control_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,12 @@ void IgnitionROS2ControlPlugin::Configure(
std::unique_ptr<hardware_interface::ResourceManager> resource_manager_ =
std::make_unique<hardware_interface::ResourceManager>();

try {
resource_manager_->load_urdf(urdf_string, false, false);
} catch (...) {
RCLCPP_ERROR(
this->dataPtr->node_->get_logger(), "Error initializing URDF to resource manager!");
}
try {
this->dataPtr->robot_hw_sim_loader_.reset(
new pluginlib::ClassLoader<ign_ros2_control::IgnitionSystemInterface>(
Expand Down

0 comments on commit 8092c42

Please sign in to comment.