-
Notifications
You must be signed in to change notification settings - Fork 84
ROS Interface Plugin
Giuseppe Silano edited this page Feb 5, 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
How to create
- Creating ROS Plugins for Gazebo
- Gazebo and Gazebo ROS Installation
- Gazebo Topic Naming Conventions
- ROS Interface Plugin
- Setup virtual keyboard joystick
How to install
How to generate
How to set
- Setting up CrazyS as Fixed Wing HiL Simulation (Pixhawk, Mavros, Mavlink, QGC)
- Setting up the CrazyS Simulator
How to develop
- Include ordering in cpp and header files
- Interfacing CrazyS through MATLAB
- Interfacing CrazyS with TravisCI
- Interfacing CrazyS with GitHub Action
- Package Versioning
- Software Specifications
- Specifying constants and default values
- Working With Meshes in Gazebo
More information