Skip to content

Commit

Permalink
Load the URDF to the resource_manager before parsing it to CM
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Jan 22, 2024
1 parent ef7deef commit f71b223
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gz_ros2_control/src/gz_ros2_control_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,11 @@ void GazeboSimROS2ControlPlugin::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(node_->get_logger(), "Error initializing URDF to resource manager!");
}
try {
this->dataPtr->robot_hw_sim_loader_.reset(
new pluginlib::ClassLoader<gz_ros2_control::GazeboSimSystemInterface>(
Expand Down

0 comments on commit f71b223

Please sign in to comment.