From 26d65da692d92c58dac5504ab04e8e1e68e6bd6c Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Fri, 11 Dec 2020 17:43:49 -0800 Subject: [PATCH] Add doc-string and fix typo in existing code Signed-off-by: Steve Peters --- gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h | 8 ++++---- gazebo_ros/src/gazebo_ros_api_plugin.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h b/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h index 0177a1dd9..8ef2a981e 100644 --- a/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h +++ b/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h @@ -138,16 +138,16 @@ class GazeboRosApiPlugin : public SystemPlugin /// \brief advertise services void advertiseServices(); - /// \brief + /// \brief Callback for a subscriber connecting to LinkStates ros topic. void onLinkStatesConnect(); - /// \brief + /// \brief Callback for a subscriber connecting to ModelStates ros topic. void onModelStatesConnect(); - /// \brief + /// \brief Callback for a subscriber disconnecting from LinkStates ros topic. void onLinkStatesDisconnect(); - /// \brief + /// \brief Callback for a subscriber disconnecting from ModelStates ros topic. void onModelStatesDisconnect(); /// \brief Function for inserting a URDF into Gazebo from ROS Service Call diff --git a/gazebo_ros/src/gazebo_ros_api_plugin.cpp b/gazebo_ros/src/gazebo_ros_api_plugin.cpp index 8fbce410c..b635385f2 100644 --- a/gazebo_ros/src/gazebo_ros_api_plugin.cpp +++ b/gazebo_ros/src/gazebo_ros_api_plugin.cpp @@ -578,7 +578,7 @@ void GazeboRosApiPlugin::onLinkStatesDisconnect() { pub_link_states_event_.reset(); if (pub_link_states_connection_count_ < 0) // should not be possible - ROS_ERROR_NAMED("api_plugin", "One too mandy disconnect from pub_link_states_ in gazebo_ros.cpp? something weird"); + ROS_ERROR_NAMED("api_plugin", "One too many disconnect from pub_link_states_ in gazebo_ros.cpp? something weird"); } } @@ -589,7 +589,7 @@ void GazeboRosApiPlugin::onModelStatesDisconnect() { pub_model_states_event_.reset(); if (pub_model_states_connection_count_ < 0) // should not be possible - ROS_ERROR_NAMED("api_plugin", "One too mandy disconnect from pub_model_states_ in gazebo_ros.cpp? something weird"); + ROS_ERROR_NAMED("api_plugin", "One too many disconnect from pub_model_states_ in gazebo_ros.cpp? something weird"); } } @@ -1091,7 +1091,7 @@ bool GazeboRosApiPlugin::getWorldProperties(gazebo_msgs::GetWorldProperties::Req for (unsigned int i = 0; i < world_->GetModelCount(); i ++) res.model_names.push_back(world_->GetModel(i)->GetName()); #endif - gzerr << "disablign rendering has not been implemented, rendering is always enabled\n"; + gzerr << "disabling rendering has not been implemented, rendering is always enabled\n"; res.rendering_enabled = true; //world->GetRenderEngineEnabled(); res.success = true; res.status_message = "GetWorldProperties: got properties";