Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
destogl committed Apr 1, 2024
1 parent d432409 commit 567ec15
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gz_ros2_control/src/gz_ros2_control_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ class GZResourceManager : public hardware_interface::ResourceManager
GZResourceManager(const GZResourceManager &) = delete;

// Called from Controller Manager when robot description is initialized from callback
bool load_and_initialize_components(const std::string & urdf, const unsigned int update_rate) override
bool load_and_initialize_components(
const std::string & urdf,
const unsigned int update_rate) override
{
components_are_loaded_and_initialized_ = true;

Expand Down Expand Up @@ -337,10 +339,6 @@ void GazeboSimROS2ControlPlugin::Configure(
if (ns.empty() || ns[0] != '/') {
ns = '/' + ns;
}

// if (ns.length() > 1) {
// this->dataPtr->robot_description_node_ = ns + "/" + this->dataPtr->robot_description_node_;
// }
}

// Get list of remapping rules from SDF
Expand Down Expand Up @@ -442,7 +440,9 @@ void GazeboSimROS2ControlPlugin::Configure(

// Wait for CM to receive robot description from the topic and then initialize Resource Manager
while (!this->dataPtr->controller_manager_->is_resource_manager_initialized()) {
RCLCPP_WARN(this->dataPtr->node_->get_logger(), "Waiting RM to load and initialize hardware...");
RCLCPP_WARN(
this->dataPtr->node_->get_logger(),
"Waiting RM to load and initialize hardware...");
std::this_thread::sleep_for(std::chrono::microseconds(2000000));
}

Expand Down

0 comments on commit 567ec15

Please sign in to comment.