-
Notifications
You must be signed in to change notification settings - Fork 30
ROS Interface Plugin
Giuseppe Silano edited this page Apr 7, 2019
·
3 revisions
The ROS interface plugin (gazebo_ros_interface_plugin.cpp/.hpp
) serves as a message communication interface between the Gazebo and ROS frameworks.
Connection messages are the way of dynamically setting up Gazebo topic to ROS topic routing, and vice-versa.
Note that "connection" messages must be sent to the ROS interface plugin AFTER it has been loaded. Because the plugin loading order is somewhat arbitrary, this means that the connection messages cannot be sent in the Load()
method of other plugins. Instead, they have to be sent in the OnUpdate()
method.
You will see the following syntax in many plugins:
void GazeboPlugin::OnUpdate(const common::UpdateInfo& _info) {
if(!pubs_and_subs_created_) {
CreatePubsAndSubs();
pubs_and_subs_created_ = true;
}
}
How to add
- Adding a Camera to BebopS
- Adding a Custom wind field to your world
- Adding an IMU to BebopS
- Adding an 1D Laser
How to create
- Creating ROS Plugins for Gazebo
- Gazebo and Gazebo ROS Installation
- Gazebo Topic Naming Conventions
- ROS Interface Plugin
How to install
How to generate
How to set
How to develop
- Include ordering in cpp and header files
- Interfacing BebopS through MATLAB
- Interfacing BebopS with TravisCI
- Package Versioning
- Software Specifications
- Specifying constants and default values
- Working With Meshes in Gazebo
More information