Skip to content

Commit

Permalink
Fix urdf
Browse files Browse the repository at this point in the history
  • Loading branch information
MNikoliCC committed Dec 11, 2024
1 parent 19a481a commit 1540a91
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion webots_ros2_control/src/Ros2Control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,15 @@ namespace webots_ros2_control {
rclcpp_lifecycle::State active_state(State::PRIMARY_STATE_ACTIVE, hardware_interface::lifecycle_state_names::ACTIVE);
resourceManager->set_component_state(controlHardware[i].name, active_state);

resourceManager->load_urdf(urdfString, false, false);
resourceManager->load_urdf(
"<robot name=\"default_robot\">"
" <ros2_control name=\"default_control\" type=\"hardware_interface/DefaultHardware\">"
" <hardware>"
" <plugin>hardware_interface/DefaultPlugin</plugin>"
" </hardware>"
" </ros2_control>"
"</robot>",
false, false);
}
#endif

Expand Down

0 comments on commit 1540a91

Please sign in to comment.