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]>
  • Loading branch information
saikishor and ahcorde authored Jan 24, 2024
1 parent fc1543f commit 5a94805
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 5a94805

Please sign in to comment.