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 8612b02
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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,12 @@ 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(
this->dataPtr->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 8612b02

Please sign in to comment.