-
Notifications
You must be signed in to change notification settings - Fork 84
Include ordering in cpp and header files
Giuseppe Silano edited this page Feb 27, 2018
·
2 revisions
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
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