Skip to content

Commit

Permalink
Add doc-string and fix typo in existing code
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters committed Dec 12, 2020
1 parent 9c9821c commit 26d65da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions gazebo_ros/src/gazebo_ros_api_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand All @@ -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");
}
}

Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 26d65da

Please sign in to comment.