ipab-slmc / exotica

Extensible Optimization Framework
https://ipab-slmc.github.io/exotica
BSD 3-Clause "New" or "Revised" License
150 stars 70 forks source link

Decide on standard clang-format style #131

Closed wxmerkt closed 5 years ago

wxmerkt commented 7 years ago

E.g. Google

VladimirIvan commented 7 years ago

On top of that, we also need to revisit the naming conventions:

VladimirIvan commented 7 years ago

So here are some proposals: Formatting:

Naming convention:

Additional convention for humanoid robots.

wxmerkt commented 7 years ago

I'd opt for clang-format-3.8 Google style. ROS style is not uniform and changing, the CLang isn't really tested. clang-format (and the different versions) is available on all platforms.

Regarding naming convention, no major preference but I'd go with a big standard as well. Not to be 100% strict with that but good to keep as a guideline.

VladimirIvan commented 6 years ago

Formatting fixed in #141.

Todo: fix naming the convention.

wxmerkt commented 6 years ago

C++

Python

VladimirIvan commented 5 years ago

I went through the google style guide and PEP8 and further specified the style where there were multiple options. I also added suggestions for package and directory naming convention based off ROS standards.

Packages, files and directories

For files in scripts/, if they are Python file:

C++

Formatting:

Python