-
Notifications
You must be signed in to change notification settings - Fork 30
Include ordering in cpp and header files
Giuseppe Silano edited this page Jan 27, 2019
·
1 revision
In .cpp
files, put:
- The corresponding header
- A block of system includes
- A block of includes from non-system packages (3rd party, viwls-graph, Eigen, etc.)
- A block of includes from this package
Separate the blocks by vspace, and alphabetize within each block. For example, for a file foo.cpp
in my-package
:
#include "my-package/foo.h"
#include <memory>
#include <pthread.h>
#include <string>
#include <Eigen/Core>
#include <epipolar-matching/matcher.h>
#include <glog/logging.h>
#include <vi-map/map.h>
#include "my-package/bar.h"
#include "my-package/baz.h"
Header file includes should follow the same structure.
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